Fix build failure for the openmp-target example when building in docker. (#197)

- Add cmake formatting rule for `rocprofiler-systems-custom-compilation`
- Resolve build failure observed with the `openmp-target` example when building in some environments
  - Observed in our docker images
  - Ensure `libomptarget-amdgpu-gfx*.bc` files are found
Tá an tiomantas seo le fáil i:
David Galiffi
2025-05-05 21:49:46 -04:00
tiomanta ag GitHub
tuismitheoir f7c7cd297e
tiomantas 96b31d92c3
D'athraigh 4 comhad le 26 breiseanna agus 10 scriosta
+7
Féach ar an gComhad
@@ -93,6 +93,13 @@ else
# discard the compiler from the command
shift
if [ -n "$(basename ${ROCPROFSYS_COMPILER} | egrep 'amdclang|amdllvm')" ]; then
# this ensures the libomptarget-amdgpu-gfx*.bc files are found
LLVM_LIB_DIR=$(cd $(dirname $(realpath ${ROCPROFSYS_COMPILER}))/../lib && pwd)
debug-message export LIBRARY_PATH=${LLVM_LIB_DIR}:${LIBRARY_PATH}
export LIBRARY_PATH=${LLVM_LIB_DIR}:${LIBRARY_PATH}
fi
debug-message ${ROCPROFSYS_COMPILER} $@
# execute ${ROCPROFSYS_COMPILER} (again, usually nvcc_wrapper)
${ROCPROFSYS_COMPILER} $@