Skip to content

Commit 464dcba

Browse files
authored
Merge pull request #919 from trz42/2023.06-rebuild_cuda_module_files_2
{2023.06}[2023a,2023b] rebuild CUDA/* module files (take 2)
2 parents 69853c2 + 3228f79 commit 464dcba

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

EESSI-remove-software.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,12 @@ if [ $EUID -eq 0 ]; then
116116
if [ -f ${easystack_file} ]; then
117117
echo_green "Software rebuild(s) requested in ${easystack_file}, so determining which existing installation have to be removed..."
118118
# we need to remove existing installation directories first,
119-
# so let's figure out which modules have to be rebuilt by doing a dry-run and grepping "someapp/someversion" for the relevant lines (with [R])
119+
# so let's figure out which modules have to be rebuilt by doing a
120+
# dry-run and grepping "someapp/someversion" for the relevant
121+
# lines (with [R] or [F])
122+
# * [F] $CFGS/s/someapp/someapp-someversion.eb (module: someapp/someversion)
120123
# * [R] $CFGS/s/someapp/someapp-someversion.eb (module: someapp/someversion)
121-
rebuild_apps=$(eb --allow-use-as-root-and-accept-consequences --dry-run-short --rebuild --easystack ${easystack_file} | grep "^ \* \[R\]" | grep -o "module: .*[^)]" | awk '{print $2}')
124+
rebuild_apps=$(eb --allow-use-as-root-and-accept-consequences --dry-run-short --rebuild --easystack ${easystack_file} | grep "^ \* \[[FR]\]" | grep -o "module: .*[^)]" | awk '{print $2}')
122125
for app in ${rebuild_apps}; do
123126
# Returns e.g. /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/modules/all:
124127
app_modulepath=$(module --terse av ${app} 2>&1 | head -n 1 | sed 's/://')
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# 2025.02.15
2+
# We need to update the module files for all CUDA installations to add
3+
# additional directories to LIBRARY_PATH.
4+
# See https://github.com/easybuilders/easybuild-easyblocks/pull/3516
5+
easyconfigs:
6+
- CUDA-12.1.1.eb:
7+
options:
8+
accept-eula-for: CUDA
9+
force: True
10+
include-easyblocks-from-commit: 3469151ce7e4f85415c877dee555aeea7691c757
11+
- CUDA-12.4.0.eb:
12+
options:
13+
accept-eula-for: CUDA
14+
include-easyblocks-from-commit: 3469151ce7e4f85415c877dee555aeea7691c757

0 commit comments

Comments
 (0)