Bugfixes for the HIP package on new versions of ROCm#21822
Bugfixes for the HIP package on new versions of ROCm#21822bvanessen wants to merge 2 commits intospack:developfrom
Conversation
versions of HIP. Fixed rocm-path environment variable to point to the ROCm path rather than the rocm-dev-libs variable. Added a definition of the HIP_CLANG_INCLUDE_PATH, which is not properly identified because Spack wraps the compiler up in a Spack specific path, which prevents proper detection of the Clang compiler headers.
|
@becker33 @scheibelp @haampie @balos1 Here are some fixes that enable the HIP package to work for my on LC. |
|
@srekolam @arjun-raj-kuppala can you review? |
|
Will take a look tomorrow! |
|
i am trying out a few packages with this change ..right now i built [email protected],@3.8.0.. will update abt the progress in an hour or so. |
|
@bvanessen can you share the output of the following without this change to I'm curious why some of your variables are not set correctly with the external build |
|
this is breaking @3.7.0 for rocblas, rocrand packages.. 20 Run Build Command(s):/usr/bin/gmake cmTC_60d2b/fast && /usr/bin/gmake -f CMakeFiles/cmTC_60d2b.dir/build.make CMakeFi
|
Here is what I get However, I also see the following build errors: So I am not sure what is happening, but explicitly setting the environment variable allowed it to work for me. |
I was just able to test the current PR 21822 without manually setting the environment variable and it doesn't work for me. I can try the new PR 21852 later, but I don't expect it to work without that variable. |
|
Ah, this issue is caused by find_package(hip) which is bad at locating clang. Can you try the following: |
|
The hip cmake script tries to link to clang's builtins lib even for host code (the hip::host target). In spack there is a patch to drop that behavior, since it was intended to only add half precision support to device code (the hip::device target). Obviously if you use an external hip install you don't have that patch. There's an open PR to drop this in hip itself, so you can show your support: ROCm/hip#2219 |
Yes if I specifically set the HIP CXX compiler it works without defining the CLANG include path in the HIP package. |
|
Closing this in favor of #21852 |
Fixed the rocm-dev-libs path when HIP is an external package for newer
versions of HIP. Fixed rocm-path environment variable to point to the
ROCm path rather than the rocm-dev-libs variable. Added a definition
of the HIP_CLANG_INCLUDE_PATH, which is not properly identified
because Spack wraps the compiler up in a Spack specific path, which
prevents proper detection of the Clang compiler headers.