You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first, installing AOMP as user works and an OpenMP example works also.
I managed to install AOMP on Gentoo Linux.
So currently the bitcode files (*.bc) are in "/usr/lib64" and "/usr/lib64/libdevice" instead in "[path_to_AOMP]/lib" and "[path_to_AOMP]/lib/libdevice".
Clang(AOMP) does not find the bitcode files. If I copy the bitcode files to the directories used by the AOMP installation it works.
Of couse I could install the files accordingly.
Sorry, Ignore last comment. I need to fix the new AMDGPU OpenMP driver. Hopefully I can get this in AOMP11.6-2 . If I get this fix in the next release the above advice on setting HIP_DEVICE_LIB_PATH will work.
The current strategy for aomp to find bc files is to invoke the compiler from the install folder. The driver will look for the bc files by using a path relative to the location of the clang binary. We are not planning on extending or changing this.
Adding environment variables to instruct the driver of the location of the files is possible, but undesirable in trunk: think about having a new set of env variables for each language and architecture match.
Let me know if you have more questions about this. Will close for now. Thanks!
Hi,
first, installing AOMP as user works and an OpenMP example works also.
I managed to install AOMP on Gentoo Linux.
So currently the bitcode files (*.bc) are in "/usr/lib64" and "/usr/lib64/libdevice" instead in "[path_to_AOMP]/lib" and "[path_to_AOMP]/lib/libdevice".
Clang(AOMP) does not find the bitcode files. If I copy the bitcode files to the directories used by the AOMP installation it works.
Of couse I could install the files accordingly.
But in https://github.com/ROCm-Developer-Tools/amd-llvm-project/blob/a71d014b68d3f029905fe50dd7ec5c5322c4f5dd/clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp#L405 I think it should be possible to give another directory where Clang(AOMP) searches for bitcode files. But it does not work either.
So my question: Is it possible to give Clang(AOMP) a hint to the location of the bitcode files?
The text was updated successfully, but these errors were encountered: