Skip to content

Commit ce3dbc8

Browse files
Merge pull request #482 from Treece-Burgess/09-17-2025-cuda-explicitly-set-paths
PAPI CI: Explicitly set path to `libcupti.so` and `libcudart.so` to avoid error while loading shared libraries
2 parents 7338010 + 87abcdb commit ce3dbc8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/ci_individual_component.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ fi
4949

5050
## Set the cuda component or the nvml component environment variable
5151
if [ "$COMPONENT" = "cuda" ] || [ "$COMPONENT" = "nvml" ]; then
52+
module unload glibc
5253
export MODULEPATH=$MODULEPATH:/apps/spacks/cuda/share/spack/modules/linux-rocky9-skylake_avx512/
5354
module load cuda/12.8.0
5455
export PAPI_CUDA_ROOT=$ICL_CUDA_ROOT
56+
export LD_LIBRARY_PATH=$PAPI_CUDA_ROOT/lib64:$PAPI_CUDA_ROOT/extras/CUPTI/lib64:$LD_LIBRARY_PATH
5557
fi
5658

5759
# --- Configure and Build PAPI ---

.github/workflows/ci_papi_framework.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ case "$COMPONENTS" in
4848
export MODULEPATH=$MODULEPATH:/apps/spacks/cuda/share/spack/modules/linux-rocky9-skylake_avx512/
4949
module load cuda/12.8.0
5050
export PAPI_CUDA_ROOT=$ICL_CUDA_ROOT
51+
export LD_LIBRARY_PATH=$PAPI_CUDA_ROOT/lib64:$PAPI_CUDA_ROOT/extras/CUPTI/lib64:$LD_LIBRARY_PATH
5152
;;
5253
esac
5354

0 commit comments

Comments
 (0)