Skip to content

Commit 89e3b81

Browse files
authored
Merge pull request #92 from bedroge/riscv_eprefix_fix
set `$EPREFIX` correctly for RISC-V clients
2 parents 02333d4 + 3a4b55c commit 89e3b81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

init/modules/EESSI/2023.06.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ conflict("EESSI")
1414
local eessi_version = myModuleVersion()
1515
local eessi_repo = "/cvmfs/software.eessi.io"
1616
local eessi_prefix = pathJoin(eessi_repo, "versions", eessi_version)
17+
local eessi_compat_prefix = pathJoin(eessi_prefix, "compat")
1718
local eessi_archdetect_prefix = pathJoin(eessi_prefix, "init")
1819
local eessi_os_type = "linux"
1920
-- for RISC-V clients we need to do some overrides, as things are stored in different CVMFS repositories
@@ -22,6 +23,7 @@ if (subprocess("uname -m"):gsub("\n$","") == "riscv64") then
2223
eessi_version = os.getenv("EESSI_VERSION_OVERRIDE") or "20240402"
2324
eessi_repo = "/cvmfs/riscv.eessi.io"
2425
eessi_prefix = pathJoin(eessi_repo, "versions", eessi_version)
26+
eessi_compat_prefix = pathJoin(eessi_prefix, "compat")
2527
if mode() == "load" then
2628
LmodMessage("RISC-V architecture detected, but there is no RISC-V support yet in the production repository.\n" ..
2729
"Automatically switching to version " .. eessi_version .. " of the RISC-V development repository " .. eessi_repo .. ".\n" ..
@@ -105,7 +107,7 @@ local archdetect_accel = archdetect_accel()
105107
local eessi_cpu_family = archdetect:match("([^/]+)")
106108
local eessi_software_subdir = archdetect
107109
-- eessi_eprefix is the base location of the compat layer, e.g., /cvmfs/software.eessi.io/versions/<EESSI_VERSION>/compat/linux/x86_64
108-
local eessi_eprefix = pathJoin(eessi_prefix, "compat", eessi_os_type, eessi_cpu_family)
110+
local eessi_eprefix = pathJoin(eessi_compat_prefix, eessi_os_type, eessi_cpu_family)
109111
-- eessi_software_path is the location of the software installations, e.g.,
110112
-- /cvmfs/software.eessi.io/versions/<EESSI_VERSION>/software/linux/x86_64/amd/zen3
111113
local eessi_software_path = pathJoin(eessi_prefix, "software", eessi_os_type, eessi_software_subdir)

0 commit comments

Comments
 (0)