We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 811dd7f + 5325fda commit f331263Copy full SHA for f331263
eessi_container.sh
@@ -457,6 +457,12 @@ if [[ ${SETUP_NVIDIA} -eq 1 ]]; then
457
mkdir -p ${EESSI_USR_LOCAL_CUDA}
458
BIND_PATHS="${BIND_PATHS},${EESSI_VAR_LOG}:/var/log,${EESSI_USR_LOCAL_CUDA}:/usr/local/cuda"
459
[[ ${VERBOSE} -eq 1 ]] && echo "BIND_PATHS=${BIND_PATHS}"
460
+ if [[ "${NVIDIA_MODE}" == "install" ]] ; then
461
+ # We need to "trick" our LMOD_RC file to allow us to load CUDA modules even without a CUDA driver
462
+ # (this works because we build within a container and the LMOD_RC recognises that)
463
+ touch ${EESSI_TMPDIR}/libcuda.so
464
+ export SINGULARITY_CONTAINLIBS="${EESSI_TMPDIR}/libcuda.so"
465
+ fi
466
fi
467
468
0 commit comments