Skip to content

Commit f5e784c

Browse files
committed
Use get_has_h100() in StdEnv/2020.lua
From ComputeCanada/software-stack-config#107
1 parent 5759cfe commit f5e784c

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

modules/StdEnv/2020.lua

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,7 @@ require("os")
44
load("CCconfig")
55
load("gentoo/2020")
66

7-
local h100_clusters = {"rorqual", "nibi", "fir", "trillium", "tamia", "killarney", "vulcan"}
8-
local cluster = os.getenv("CC_CLUSTER")
9-
local has_h100 = (os.getenv("RSNT_HAS_H100") or "false") == "true"
10-
for index, value in ipairs(h100_clusters) do
11-
if value == cluster then
12-
has_h100 = true
13-
end
14-
end
15-
16-
if (has_h100) then
7+
if get_has_h100() == "true" then
178
pushenv("LMOD_ADMIN_FILE", "/cvmfs/soft.computecanada.ca/config/lmod/admin_2025.list")
189
elseif (mode() == "spider") then
1910
-- set by gentoo/2020 module

0 commit comments

Comments
 (0)