-
Notifications
You must be signed in to change notification settings - Fork 129
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
ROCm 6.0 replaces all __HIP_PLATFORM_HCC__ with __HIP_PLATFORM_AMD__ #1106
Conversation
CMakeLists.txt
Outdated
@@ -243,7 +243,7 @@ if( DEFINED CK_OVERRIDE_HIP_VERSION_PATCH ) | |||
endif() | |||
message(STATUS "Build with HIP ${HIP_VERSION}") | |||
link_libraries(hip::device) | |||
add_compile_definitions(__HIP_PLATFORM_HCC__=1) | |||
add_compile_definitions(__HIP_PLATFORM_AMD__=1) |
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.
We need to find a way to make this backward compatible
if(CK_hip_VERSION VERSION_GREATER_EQUAL 6.0.23494) | ||
add_compile_definitions(__HIP_PLATFORM_AMD__=1) | ||
else() | ||
add_compile_definitions(__HIP_PLATFORM_HCC__=1) | ||
endif() |
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.
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.
@illsilin could we remove them? Since CK uses offline compiler at the moment. Or this is noop and will not have any effects.
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.
I don't think we use those macros in CK, so it makes no difference.
ref: ROCm/MIOpen#2617 (comment)