Skip to content

Commit

Permalink
comment code for 'tricks' to override GPU checks
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed May 25, 2024
1 parent c1a7590 commit e020246
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions eessi_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -463,16 +463,16 @@ if [[ ${SETUP_NVIDIA} -eq 1 ]]; then
mkdir -p ${EESSI_USR_LOCAL_CUDA}
BIND_PATHS="${BIND_PATHS},${EESSI_VAR_LOG}:/var/log,${EESSI_USR_LOCAL_CUDA}:/usr/local/cuda"
[[ ${VERBOSE} -eq 1 ]] && echo "BIND_PATHS=${BIND_PATHS}"
if [[ "${NVIDIA_MODE}" == "install" ]] ; then
# No GPU so we need to "trick" Lmod to allow us to load CUDA modules even without a CUDA driver
# (this variable means EESSI_OVERRIDE_GPU_CHECK=1 will be set inside the container)
export SINGULARITYENV_EESSI_OVERRIDE_GPU_CHECK=1
# We need to "trick" our LMOD_RC file to allow us to load CUDA modules even without a CUDA driver
# (this works because we build within a container and the LMOD_RC recognises that)
touch ${EESSI_TMPDIR}/libcuda.so
export SINGULARITY_CONTAINLIBS="${EESSI_TMPDIR}/libcuda.so"
echo "Applied hacks to trick Lmod to allow us to load CUDA modules"
fi
#if [[ "${NVIDIA_MODE}" == "install" ]] ; then
# # No GPU so we need to "trick" Lmod to allow us to load CUDA modules even without a CUDA driver
# # (this variable means EESSI_OVERRIDE_GPU_CHECK=1 will be set inside the container)
# export SINGULARITYENV_EESSI_OVERRIDE_GPU_CHECK=1
# # We need to "trick" our LMOD_RC file to allow us to load CUDA modules even without a CUDA driver
# # (this works because we build within a container and the LMOD_RC recognises that)
# touch ${EESSI_TMPDIR}/libcuda.so
# export SINGULARITY_CONTAINLIBS="${EESSI_TMPDIR}/libcuda.so"
# echo "Applied hacks to trick Lmod to allow us to load CUDA modules"
#fi
fi
fi

Expand Down

0 comments on commit e020246

Please sign in to comment.