Skip to content

Commit d668ada

Browse files
author
Caspar van Leeuwen
committed
Move installation of CUDA SDK back down, reverting the move from EESSI#54. This will make sure the rebuild of EESSI-extend is done before building the CUDA in host-injections. That's essentially, as the fix in EESSI-extend is needed to make the CUDA in host-injections step pass
1 parent 33393f5 commit d668ada

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

EESSI-install-software.sh

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -247,29 +247,6 @@ if [ ! -f ${_lmod_sitepackage_file} ]; then
247247
python3 ${TOPDIR}/create_lmodsitepackage.py ${_eessi_software_path}
248248
fi
249249

250-
# Install full CUDA SDK and cu* libraries in host_injections
251-
# (This is done *before* configuring EasyBuild as it may rely on an older EB version)
252-
# Hardcode this for now, see if it works
253-
# TODO: We should make a nice yaml and loop over all CUDA versions in that yaml to figure out what to install
254-
# Allow skipping CUDA SDK install in e.g. CI environments
255-
echo "Going to install full CUDA SDK and cu* libraries under host_injections if necessary"
256-
temp_install_storage=${TMPDIR}/temp_install_storage
257-
mkdir -p ${temp_install_storage}
258-
if [ -z "${skip_cuda_install}" ] || [ ! "${skip_cuda_install}" ]; then
259-
${EESSI_PREFIX}/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh \
260-
-t ${temp_install_storage} \
261-
--accept-cuda-eula \
262-
--accept-cudnn-eula
263-
else
264-
echo "Skipping installation of CUDA SDK and cu* libraries in host_injections, since the --skip-cuda-install flag was passed"
265-
fi
266-
267-
# Install NVIDIA drivers in host_injections (if they exist)
268-
if nvidia_gpu_available; then
269-
echo "Installing NVIDIA drivers for use in prefix shell..."
270-
${EESSI_PREFIX}/scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh
271-
fi
272-
273250
echo ">> Configuring EasyBuild..."
274251

275252
# Make sure EESSI-extend is not loaded, and configure location variables for a
@@ -316,6 +293,30 @@ echo "DEBUG: before loading EESSI-extend // EASYBUILD_INSTALLPATH='${EASYBUILD_I
316293
source $TOPDIR/load_eessi_extend_module.sh ${EESSI_VERSION}
317294
echo "DEBUG: after loading EESSI-extend // EASYBUILD_INSTALLPATH='${EASYBUILD_INSTALLPATH}'"
318295

296+
# Install full CUDA SDK and cu* libraries in host_injections
297+
# (This is done *before* configuring EasyBuild as it may rely on an older EB version)
298+
# Hardcode this for now, see if it works
299+
# TODO: We should make a nice yaml and loop over all CUDA versions in that yaml to figure out what to install
300+
# Allow skipping CUDA SDK install in e.g. CI environments
301+
echo "Going to install full CUDA SDK and cu* libraries under host_injections if necessary"
302+
temp_install_storage=${TMPDIR}/temp_install_storage
303+
mkdir -p ${temp_install_storage}
304+
if [ -z "${skip_cuda_install}" ] || [ ! "${skip_cuda_install}" ]; then
305+
${EESSI_PREFIX}/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh \
306+
-t ${temp_install_storage} \
307+
--accept-cuda-eula \
308+
--accept-cudnn-eula
309+
else
310+
echo "Skipping installation of CUDA SDK and cu* libraries in host_injections, since the --skip-cuda-install flag was passed"
311+
fi
312+
313+
# Install NVIDIA drivers in host_injections (if they exist)
314+
if nvidia_gpu_available; then
315+
echo "Installing NVIDIA drivers for use in prefix shell..."
316+
${EESSI_PREFIX}/scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh
317+
fi
318+
319+
319320
if [ ! -z "${shared_fs_path}" ]; then
320321
shared_eb_sourcepath=${shared_fs_path}/easybuild/sources
321322
echo ">> Using ${shared_eb_sourcepath} as shared EasyBuild source path"

0 commit comments

Comments
 (0)