Skip to content

Commit 5cb08a6

Browse files
authored
Merge pull request #266 from casparvl/2026.06-module
Add 2026.06 init scripts
2 parents 73788f4 + 967ed7d commit 5cb08a6

6 files changed

Lines changed: 17 additions & 9 deletions

File tree

EESSI-install-software.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ echo "Going to install full CUDA SDK and cu* libraries under host_injections if
327327
temp_install_storage=${TMPDIR}/temp_install_storage
328328
mkdir -p ${temp_install_storage}
329329
if [ -z "${skip_cuda_install}" ] || [ ! "${skip_cuda_install}" ]; then
330-
${EESSI_PREFIX}/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh \
330+
${TOPDIR}/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh \
331331
-t ${temp_install_storage} \
332332
--accept-cuda-eula \
333333
--accept-cudnn-eula
@@ -339,7 +339,7 @@ fi
339339
if nvidia_gpu_available; then
340340
echo "Installing NVIDIA drivers for use in prefix shell..."
341341
# Site installs override EESSI_CVMFS_REPO, but link_nvidia_host_libraries should always use the usptream EESSI CVMFS repo
342-
EESSI_CVMFS_REPO=/cvmfs/software.eessi.io ${EESSI_PREFIX}/scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh
342+
EESSI_CVMFS_REPO=/cvmfs/software.eessi.io ${TOPDIR}/scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh
343343
fi
344344

345345
# Now that we are done with all installs that should go the /cvmfs/software.eessi.io

init/eessi_defaults

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ else
1919
export EESSI_SOFTWARE_LAYER_VERSION_SUFFIX=""
2020
fi
2121

22-
# use different defaults for RISC-V clients
22+
# Set defaults for EESSI_CVMFS_REPO and EESSI_INIT_PREFIX
23+
export EESSI_CVMFS_REPO="${EESSI_CVMFS_REPO_OVERRIDE:=/cvmfs/software.eessi.io}"
24+
export EESSI_INIT_PREFIX="${EESSI_CVMFS_REPO}/versions/${EESSI_VERSION}/init"
25+
26+
# Overwrite with different defaults for RISC-V clients if they use EESSI version 2023.06, 20240402 or 2025.06
2327
if [[ $(uname -m) == "riscv64" ]]; then
2428
if [[ "${EESSI_VERSION}" == "2023.06" ]] || [[ "${EESSI_VERSION}" == "20240402" ]]; then
2529
export EESSI_CVMFS_REPO="${EESSI_CVMFS_REPO_OVERRIDE:=/cvmfs/riscv.eessi.io}"
@@ -39,10 +43,8 @@ if [[ $(uname -m) == "riscv64" ]]; then
3943
echo "software installations are provided by the EESSI development repository at ${EESSI_CVMFS_REPO}."
4044
fi
4145
fi
42-
else
43-
export EESSI_CVMFS_REPO="${EESSI_CVMFS_REPO_OVERRIDE:=/cvmfs/software.eessi.io}"
44-
export EESSI_INIT_PREFIX="${EESSI_CVMFS_REPO}/versions/${EESSI_VERSION}/init"
4546
fi
47+
4648
# use archdetect by default, unless otherwise specified
4749
export EESSI_USE_ARCHDETECT="${EESSI_USE_ARCHDETECT:=1}"
4850
export EESSI_USE_ARCHSPEC="${EESSI_USE_ARCHSPEC:=0}"

init/modules/EESSI/2023.06.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ if (
5454
LmodError("The EESSI development repository dev.eessi.io is not mounted on your system.\n" ..
5555
"This is required for RISC-V systems.")
5656
end
57+
-- RISCV and EESSI 2026.06 or later
58+
else
59+
if not os.getenv("EESSI_INIT_RISCV_SUPPRESS_SUPPORT_WARNING") then
60+
LmodWarning("You are loading EESSI " .. eessi_version .. " on a system with RISC-V CPU. The RISC-V target is only partially supported by this EESSI version. You may find that some modules which are available for other targets are not available for this target. (set EESSI_INIT_RISCV_SUPPRESS_SUPPORT_WARNING=1 in your environment to suppress this warning)")
61+
end
5762
end
5863
end
5964
setenv("EESSI_VERSION_DEFAULT", eessi_version)

init/modules/EESSI/2026.06.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2023.06.lua

install_scripts.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ compare_and_copy() {
8080
else
8181
echo "File has changed in the PR"
8282
fi
83-
# Use cat to retain existing permissions, set umask to world readable in case the target file does not yet exist.
84-
(umask 022 && cat "$source_file" > "$destination_file")
83+
# Use cp --preserve=mode to preserve the permissions as they are defined in the GH repo
84+
cp --preserve=mode "$source_file" "$destination_file"
8585
echo "File $source_file copied to $destination_file"
8686
else
8787
case $? in

scripts/gpu_support/nvidia/install_cuda_and_libraries.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ if [ ${#PROCESSED_EASYSTACK_FILES[@]} -gt 0 ]; then
295295
echo_green "- ${EASYSTACK_FILE}"
296296
done
297297
else
298-
fatal_error "Error: No matching CUDA easystack files were successfully found/processed in ${NVIDIA_EASYSTACKS_DIRECTORY}!"
298+
echo_yellow "Warning: No matching CUDA easystack files were successfully found/processed in ${NVIDIA_EASYSTACKS_DIRECTORY}!"
299299
fi
300300

301301
# Remove the temporary directory

0 commit comments

Comments
 (0)