-
Notifications
You must be signed in to change notification settings - Fork 61
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
Use enable_language(HIP) #702
base: develop
Are you sure you want to change the base?
Conversation
cmake/thirdparty/BLTSetupHIP.cmake
Outdated
EXPORTABLE ${BLT_EXPORT_THIRDPARTY} | ||
GLOBAL ${_blt_hip_is_global}) | ||
|
||
# Hard-copy inheritable properties instead of depending on hip::device so that we can export | ||
# all required information in our target blt_hip | ||
blt_inherit_target_info(TO blt_hip FROM hip::device OBJECT FALSE) | ||
#blt_inherit_target_info(TO blt_hip FROM hip::device OBJECT FALSE) |
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.
Remove dead code and fix comments please.
host-configs/llnl/toss_4_x86_64_ib_cray/[email protected][email protected]_hip.cmake
Outdated
Show resolved
Hide resolved
Co-authored-by: Chris White <[email protected]>
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.
Thanks, David!
@@ -41,32 +47,7 @@ message(STATUS "ROCM path: ${ROCM_PATH}") | |||
message(STATUS "HIP version: ${hip_VERSION}") | |||
|
|||
# AMDGPU_TARGETS should be defined in the hip-config.cmake that gets "included" via find_package(hip) | |||
# This file is also what hardcodes the --offload-arch flags we're removing here | |||
if(DEFINED AMDGPU_TARGETS) |
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.
It seems like there's no longer a point for having AMDGPU_TARGETS.
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.
Or is it used internally by hip's CMake setup?
EXPORTABLE ${BLT_EXPORT_THIRDPARTY} | ||
DEPENDS_ON blt_hip_runtime |
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.
If this depends on blt_hip_runtime, shouldn't the target be created after the blt_hip_runtime target is created?
Inspired by #596 , but doesn't support hipcc