From 39b58d02cf5901d0b8985e3720dca2fca53b6adf Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Thu, 15 Oct 2026 16:16:57 +0200 Subject: [PATCH] Make sure /.singularity.d/libs gets added to the LD_LIBRARY_PATH inside the startprefix environment, so that nvidia-smi also works there --- bot/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot/build.sh b/bot/build.sh index a60054fe..2ea1038f 100755 --- a/bot/build.sh +++ b/bot/build.sh @@ -306,6 +306,9 @@ for ACCEL_OVERRIDE in "${EESSI_ACCELERATOR_TARGET_OVERRIDES[@]}"; do if nvidia_gpu_available && nvidia_gpu_has_compute_capability "${nvidia_cc}" ; then echo "bot/build.sh: GPU with the requested compute capability is available, using '--nvidia all'" BUILD_STEP_ARGS_ACCEL+=("--nvidia" "all") + # Make sure that LD_LIBRARY_PATH gets set correctly in the startprefix environment + # See https://github.com/EESSI/software-layer/pull/1461#issuecomment-6194230190 + export EESSI_PROPAGATE_INTO_PREFIX_LD_LIBRARY_PATH=/.singularity.d/libs/ else echo "bot/build.sh: no GPU with the requested compute capability is available, using '--nvidia install'" BUILD_STEP_ARGS_ACCEL+=("--nvidia" "install")