From 275edb404b8c9a63a445fa6ad181de8d69d34e4f Mon Sep 17 00:00:00 2001 From: Alan O'Cais Date: Fri, 11 Oct 2024 18:38:51 +0200 Subject: [PATCH 1/2] Put a Lmod-relevant wrapper in place for archdetect accelerator detection --- init/lmod_eessi_archdetect_wrapper_accel.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 init/lmod_eessi_archdetect_wrapper_accel.sh diff --git a/init/lmod_eessi_archdetect_wrapper_accel.sh b/init/lmod_eessi_archdetect_wrapper_accel.sh new file mode 100644 index 0000000000..d4a0038cb5 --- /dev/null +++ b/init/lmod_eessi_archdetect_wrapper_accel.sh @@ -0,0 +1,2 @@ +# This can be leveraged by the source_sh() feature of Lmod +export EESSI_ACCEL_SUBDIR=$($(dirname $(readlink -f $BASH_SOURCE))/eessi_archdetect.sh accelpath) From 90a80dace2a4cc953f082b71d0deb4577e05a3ec Mon Sep 17 00:00:00 2001 From: Alan O'Cais Date: Fri, 11 Oct 2024 18:42:46 +0200 Subject: [PATCH 2/2] Make sure the wrapper is shipped --- install_scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install_scripts.sh b/install_scripts.sh index 11c7fc2a9f..09a4c5847f 100755 --- a/install_scripts.sh +++ b/install_scripts.sh @@ -86,7 +86,8 @@ TOPDIR=$(dirname $(realpath $0)) # Copy for init directory init_files=( bash eessi_archdetect.sh eessi_defaults eessi_environment_variables eessi_software_subdir_for_host.py - minimal_eessi_env README.md test.py lmod_eessi_archdetect_wrapper.sh + minimal_eessi_env README.md test.py lmod_eessi_archdetect_wrapper.sh lmod_eessi_archdetect_wrapper_accel.sh + ) copy_files_by_list ${TOPDIR}/init ${INSTALL_PREFIX}/init "${init_files[@]}"