ROCm / rocBLAS

Next generation BLAS implementation for ROCm platform
https://rocm.docs.amd.com/projects/rocBLAS/en/latest/
Other
331 stars 152 forks source link

Properly locate libomp.so when installed in clang target subdirectory. #1416

Closed estewart08 closed 3 months ago

estewart08 commented 3 months ago

An upstream llvm change enables LLVM_ENABLE_PER_TARGET_RUNTIME_DIR by default for the openmp build. This installs the openmp libraries into /opt/rocm-ver/llvm/lib/x86_64-unknown-linux-gnu instead of /opt/rocm-ver/llvm/lib. Currenty, rocBLAS only uses /lib.

Since rocBLAS uses hipcc by default, find_package(OpenMP) will properly locate the openmp library. Use OpenMP_omp_LIBRARY to extract parent directory from variable for rpath.

Summary of proposed changes: