Skip to content

Commit cc860cc

Browse files
committed
modified arch modules to support RSNT_CUSTOM_ROOT too
1 parent a228a29 commit cc860cc

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

modules/arch/avx.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
if (mode() ~= "spider") then
2-
prepend_path("MODULEPATH","/cvmfs/soft.computecanada.ca/custom/modules-avx")
2+
local custom_root = os.getenv("RSNT_CUSTOM_ROOT") or "/cvmfs/soft.computecanada.ca/custom"
3+
prepend_path("MODULEPATH", custom_root .. "/modules-avx")
34
setenv("EBVERSIONARCH","avx")
45
end

modules/arch/avx2.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
if (mode() ~= "spider") then
2-
prepend_path("MODULEPATH","/cvmfs/soft.computecanada.ca/custom/modules-avx2")
2+
local custom_root = os.getenv("RSNT_CUSTOM_ROOT") or "/cvmfs/soft.computecanada.ca/custom"
3+
prepend_path("MODULEPATH", custom_root .. "/modules-avx2")
34
setenv("EBVERSIONARCH","avx2")
45
end

modules/arch/avx512.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
if (mode() ~= "spider") then
2-
prepend_path("MODULEPATH","/cvmfs/soft.computecanada.ca/custom/modules-avx512")
2+
local custom_root = os.getenv("RSNT_CUSTOM_ROOT") or "/cvmfs/soft.computecanada.ca/custom"
3+
prepend_path("MODULEPATH", custom_root .. "/modules-avx512")
34
setenv("EBVERSIONARCH","avx512")
45
end

modules/arch/sse3.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
if (mode() ~= "spider") then
2-
prepend_path("MODULEPATH","/cvmfs/soft.computecanada.ca/custom/modules-sse3")
2+
local custom_root = os.getenv("RSNT_CUSTOM_ROOT") or "/cvmfs/soft.computecanada.ca/custom"
3+
prepend_path("MODULEPATH", custom_root .. "/modules-sse3")
34
setenv("EBVERSIONARCH","sse3")
45
end

0 commit comments

Comments
 (0)