-
Notifications
You must be signed in to change notification settings - Fork 52
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
HIP Runtime Linker Errors #538
Comments
The How do you support HIP compilation in your application? |
Perhaps I'm just misusing the library. According to this issue in ROCm repo, we set C++ compiler to hip clang and link against |
For additional context:
|
We ran into this issue with RAJA - would you like me to raise an issue on that repo as well? After removing the hip_runtime targets manually our entire stack built and ran successfully. |
I'm hopeful that #541 will help - if you would like to try and build and install that branch and see if the issue goes away that would be super helpful. I can than make the same change to RAJA. |
The fix has been merged into develop and I have validated the patch myself. Thanks for the help! |
Describe the bug
Exported CMake targets explicitly link against target
hip_runtime
, although hip_runtime is just a collection of headers and not a concrete library afaik (is hip_runtime an interface/alias cmake target internal to umpire's cmake?).To circumvent this, I build Umpire and then manually remove
hip_runtime
from array on line 76 of<prefix>/share/umpire/cmake/umpire-targets.cmake
. From there I'm able to build all of my targets that depend on umpire and hip.Expected behavior
Import Umpire's cmake targets without passing explicit
-lhip_runtime
link library to user's targets.Compilers & Libraries (please complete the following information):
I'll have to ensure hardware on early access machines can be discussed here... @pelesh please advise.
Additional context
Installed using spack fwiw.
If I'm simply using the imported cmake targets incorrectly, please let me know. Thank you!
The text was updated successfully, but these errors were encountered: