Skip to content

Commit

Permalink
Merge pull request #919 from trz42/2023.06-rebuild_cuda_module_files_2
Browse files Browse the repository at this point in the history
{2023.06}[2023a,2023b] rebuild CUDA/* module files (take 2)
  • Loading branch information
bedroge authored Feb 18, 2025
2 parents 69853c2 + 3228f79 commit 464dcba
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
7 changes: 5 additions & 2 deletions EESSI-remove-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,12 @@ if [ $EUID -eq 0 ]; then
if [ -f ${easystack_file} ]; then
echo_green "Software rebuild(s) requested in ${easystack_file}, so determining which existing installation have to be removed..."
# we need to remove existing installation directories first,
# 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])
# 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] or [F])
# * [F] $CFGS/s/someapp/someapp-someversion.eb (module: someapp/someversion)
# * [R] $CFGS/s/someapp/someapp-someversion.eb (module: someapp/someversion)
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}')
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}')
for app in ${rebuild_apps}; do
# Returns e.g. /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/modules/all:
app_modulepath=$(module --terse av ${app} 2>&1 | head -n 1 | sed 's/://')
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 2025.02.15
# We need to update the module files for all CUDA installations to add
# additional directories to LIBRARY_PATH.
# See https://github.com/easybuilders/easybuild-easyblocks/pull/3516
easyconfigs:
- CUDA-12.1.1.eb:
options:
accept-eula-for: CUDA
force: True
include-easyblocks-from-commit: 3469151ce7e4f85415c877dee555aeea7691c757
- CUDA-12.4.0.eb:
options:
accept-eula-for: CUDA
include-easyblocks-from-commit: 3469151ce7e4f85415c877dee555aeea7691c757

0 comments on commit 464dcba

Please sign in to comment.