-
Notifications
You must be signed in to change notification settings - Fork 139
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 HIP as language in CMake #3581
Comments
Note: spack already supports 3.21.4, so we'll have no trouble with this update in the nightlies and soon to be added hip builds |
Waiting until nitrogen is back online. |
If I remove https://github.com/QMCPACK/qmcpack/blob/develop/CMakeLists.txt#L792
Linking succeeds if I replace |
Why "/usr/bin/c++" is used for linking? |
I guess you are trying legacy CUDA code path. Then GCC is OK. I think the key question is who adds Here is from using find_package(HIP)
Maybe rocm 4.5 does better? It seems you are using 4.3. |
At the moment I have I haven't tried |
Since CMake 3.21, HIP can be used a language just like CUDA.
Right now we need both
find_package(HIP)
andfind_package(hip)
. The former one needs findHIP module but it is not always available, for example AOMP release doesn't include this file. So I have to do funny gymnastics to use FindHIP.cmake from /opt/rocm but point it to the hip in the AOMP installation. hip-config.cmake is the recommended way and it works with /opt/rocm and AOMP installation. So we'd better to remove the former legacy module ASAP.Note that: 3.21.3 is needed as some change was made https://cmake.org/cmake/help/latest/release/3.21.html#id3
The text was updated successfully, but these errors were encountered: