Skip to content

Use enable_language(HIP) #702

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

Merged
merged 24 commits into from
Mar 10, 2025
Merged

Conversation

davidbeckingsale
Copy link
Member

Inspired by #596 , but doesn't support hipcc

Copy link
Member

@adayton1 adayton1 left a 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)
Copy link
Member

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.

Copy link
Member

@adayton1 adayton1 Feb 4, 2025

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see it in CMake's source, maybe it is in the FindRocm source. I would have expected this to only be used as a backwards compatiblity and maybe just set the CMake variable.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could do backwards compatibility but I think removal might be best since we are going to be having breaking BLT changes soon

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am okay with that as well.

@davidbeckingsale davidbeckingsale merged commit 3c95aa1 into develop Mar 10, 2025
8 checks passed
@white238 white238 deleted the feature/enable_language_hip branch March 10, 2025 21:25
@@ -87,14 +68,10 @@ else()
endif()

blt_import_library(NAME blt_hip
COMPILE_FLAGS ${_blt_hip_compile_flags}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed this: _blt_hip_compile_flags is still set above but it is now unused. Is the fix for --rocm-path with crayftn no longer needed? @davidbeckingsale @white238

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants