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:
Update rpath to use parent directory of OpenMP_omp_LIBRARY, which is set by find_package(OpenMP)
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:
OpenMP_omp_LIBRARY
, which is set byfind_package(OpenMP)