Skip to content

Commit 1ff11e3

Browse files
committed
set EESSI_INIT_PREFIX, rename eessi_archdetect_prefix to eessi_init_prefix
1 parent 5c85b38 commit 1ff11e3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

init/modules/EESSI/2023.06.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ local eessi_version = myModuleVersion()
1515
local eessi_repo = "/cvmfs/software.eessi.io"
1616
local eessi_prefix = pathJoin(eessi_repo, "versions", eessi_version)
1717
local eessi_compat_prefix = pathJoin(eessi_prefix, "compat")
18-
local eessi_archdetect_prefix = pathJoin(eessi_prefix, "init")
18+
local eessi_init_prefix = pathJoin(eessi_prefix, "init")
1919
local eessi_os_type = "linux"
2020
-- for RISC-V clients we need to do some overrides, as things are stored in different CVMFS repositories
2121
if (subprocess("uname -m"):gsub("\n$","") == "riscv64") then
@@ -53,7 +53,7 @@ function eessiDebug(text)
5353
end
5454
end
5555
function archdetect_cpu()
56-
local script = pathJoin(eessi_archdetect_prefix, 'lmod_eessi_archdetect_wrapper.sh')
56+
local script = pathJoin(eessi_init_prefix, 'lmod_eessi_archdetect_wrapper.sh')
5757
-- make sure that we grab the value for architecture before the module unsets the environment variable (in unload mode)
5858
local archdetect_options = os.getenv("EESSI_ARCHDETECT_OPTIONS") or (os.getenv("EESSI_ARCHDETECT_OPTIONS_OVERRIDE") or "")
5959
if not os.getenv("EESSI_ARCHDETECT_OPTIONS_OVERRIDE") then
@@ -83,7 +83,7 @@ function archdetect_cpu()
8383
end
8484
end
8585
function archdetect_accel()
86-
local script = pathJoin(eessi_archdetect_prefix, 'lmod_eessi_archdetect_wrapper_accel.sh')
86+
local script = pathJoin(eessi_init_prefix, 'lmod_eessi_archdetect_wrapper_accel.sh')
8787
-- for unload mode, we need to grab the value before it is unset
8888
local archdetect_accel = os.getenv("EESSI_ACCEL_SUBDIR") or (os.getenv("EESSI_ACCELERATOR_TARGET_OVERRIDE") or "")
8989
if not os.getenv("EESSI_ACCELERATOR_TARGET_OVERRIDE") then
@@ -131,6 +131,8 @@ setenv("EESSI_SOFTWARE_SUBDIR", eessi_software_subdir)
131131
eessiDebug("Setting EESSI_SOFTWARE_SUBDIR to " .. eessi_software_subdir)
132132
setenv("EESSI_PREFIX", eessi_prefix)
133133
eessiDebug("Setting EESSI_PREFIX to " .. eessi_prefix)
134+
setenv("EESSI_INIT_PREFIX", eessi_init_prefix)
135+
eessiDebug("Setting EESSI_INIT_PREFIX to " .. eessi_init_prefix)
134136
setenv("EESSI_EPREFIX", eessi_eprefix)
135137
eessiDebug("Setting EPREFIX to " .. eessi_eprefix)
136138
prepend_path("PATH", pathJoin(eessi_eprefix, "bin"))

0 commit comments

Comments
 (0)