Skip to content
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

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from

Conversation

davidbeckingsale
Copy link
Member

Inspired by #596 , but doesn't support hipcc

SetupBLT.cmake Outdated Show resolved Hide resolved
.gitlab/build_tioga.yml Outdated Show resolved Hide resolved
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)
Copy link
Member

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.

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?

EXPORTABLE ${BLT_EXPORT_THIRDPARTY}
DEPENDS_ON blt_hip_runtime
Copy link
Member

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?

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.

3 participants