-
-
Notifications
You must be signed in to change notification settings - Fork 776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ROCm 6 #8319
Open
Azusachan
wants to merge
2
commits into
cupy:main
Choose a base branch
from
Azusachan:rocm-6.0
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Support ROCm 6 #8319
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ROCm 6 introduced various changes on its API. In particular, * Removal of gcnarch from hipDeviceProp_t structure * Renaming of ‘memoryType’ in hipPointerAttribute_t structure to ‘type’ This patch allows cupy to be built on this version.
kmaehashi
added
cat:enhancement
Improvements to existing features
to-be-backported
Pull-requests to be backported to stable branch
prio:medium
labels
May 7, 2024
From 05233251a78e86bd269f79272561de22991843a1 Mon Sep 17 00:00:00 2001
From: Yiyang Wu <xgreenlandforwyy@gmail.com>
Date: Thu, 23 May 2024 20:41:14 +0800
Subject: [PATCH] Add ROCm 6 in runtime_version
---
cupy_backends/cuda/libs/_cnvrtc.pxi | 3 +++
1 file changed, 3 insertions(+)
diff --git a/cupy_backends/cuda/libs/_cnvrtc.pxi b/cupy_backends/cuda/libs/_cnvrtc.pxi
index 9f02b5522..b2b06aa4f 100644
--- a/cupy_backends/cuda/libs/_cnvrtc.pxi
+++ b/cupy_backends/cuda/libs/_cnvrtc.pxi
@@ -139,5 +139,8 @@ cdef SoftLink _get_softlink():
elif runtime_version < 6_00_00000:
# ROCm 5.x
libname = 'libamdhip64.so.5'
+ elif runtime_version < 7_00_00000:
+ # ROCm 6.x
+ libname = 'libamdhip64.so.6'
return SoftLink(libname, prefix, mandatory=True)
--
2.44.0 |
@littlewu2508 the comment should be |
Thanks, I've edited the patch |
Berrysoft
reviewed
May 23, 2024
case 1 /* hipMemoryTypeDevice */: | ||
attributes->type = (hipMemoryType)2; /* cudaMemoryTypeDevice */ | ||
return status; | ||
#elif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
#elif | |
#else |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cat:enhancement
Improvements to existing features
prio:medium
to-be-backported
Pull-requests to be backported to stable branch
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ROCm 6 introduced various changes on its API. In particular,
This patch provides support on ROCm 6.0.0 and above.