-
Notifications
You must be signed in to change notification settings - Fork 772
avoid that path to CUDA stubs library is linked via RPATH to hipSYCL's librt-backend-cuda.so library #14590
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
Conversation
|
@stigrj I doubt this problem is related to the changes in easybuilders/easybuild-easyblocks#2561, but more with the changes in easybuilders/easybuild-easyblocks#2373, which make changes to ensure that the stubs library is considered before the It seems like the I also see this: So the added configure option is not used at all? I was also going to propose to add a sanity check command that checks the output produced by |
|
Thanks, @boegel. I tested this successfully on two different HPC systems a month ago, but now trying to reproduce I don't see the same behavior as I remember. I need some time to load the problem back into mental cache |
|
Ok, there's definitely a typo, should be |
|
Working patch for this issue presented here: #15074 |
|
Closing this since Sorry for not getting back to this @stigrj If this is still relevant, please consider opening a new pull request using a more recent toolchain |
For whatever reason, this change in the
cuda.pyeasyblock triggered an error in thehipSYCLbuild.Before this easyblock change the
hipSYCLCMake installation reportswhich allows it to pick up the correct runtime CUDA library, i.e. the
CUDAcore"stub" library when building on a machine without a CUDA driver, but a proper CUDA lib when running on a CUDA machine. After said easyblock change thehipSYCLinstallation instead reportswhich fixes the runtime path to the stub library, even if a proper CUDA lib is present on the machine.
The proposed change will again set the runtime path to empty
""so that the expected behavior is retained. Not sure if the original correct behavior was a result of "two wrongs make a right", but at least the-DWITH_INSTALL_RPATH_USE_LINK_PATH=OFFoptions seems appropriate here.