@@ -15,7 +15,7 @@ local eessi_version = myModuleVersion()
1515local eessi_repo = " /cvmfs/software.eessi.io"
1616local eessi_prefix = pathJoin (eessi_repo , " versions" , eessi_version )
1717local 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" )
1919local eessi_os_type = " linux"
2020-- for RISC-V clients we need to do some overrides, as things are stored in different CVMFS repositories
2121if (subprocess (" uname -m" ):gsub (" \n $" ," " ) == " riscv64" ) then
@@ -53,7 +53,7 @@ function eessiDebug(text)
5353 end
5454end
5555function 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
8484end
8585function 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)
131131eessiDebug (" Setting EESSI_SOFTWARE_SUBDIR to " .. eessi_software_subdir )
132132setenv (" EESSI_PREFIX" , eessi_prefix )
133133eessiDebug (" Setting EESSI_PREFIX to " .. eessi_prefix )
134+ setenv (" EESSI_INIT_PREFIX" , eessi_init_prefix )
135+ eessiDebug (" Setting EESSI_INIT_PREFIX to " .. eessi_init_prefix )
134136setenv (" EESSI_EPREFIX" , eessi_eprefix )
135137eessiDebug (" Setting EPREFIX to " .. eessi_eprefix )
136138prepend_path (" PATH" , pathJoin (eessi_eprefix , " bin" ))
0 commit comments