Skip to content

Commit 2e3767b

Browse files
committed
allow end users to add a family name to the EESSI module
1 parent 1b0b8f9 commit 2e3767b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

init/modules/EESSI/2023.06.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@ if isDir(eessi_module_path_accel) then
173173
eessiDebug("Using site accelerator modules at: " .. eessi_module_path_site_accel)
174174
end
175175

176+
-- allow sites to add a family directive to the EESSI module,
177+
-- e.g. for preventing that users load two different/incompatible stacks at the same time
178+
family_name = os.getenv("EESSI_MODULE_FAMILY_NAME")
179+
if family_name then
180+
family(family_name)
181+
end
182+
176183
-- allow sites to make the EESSI module sticky by defining EESSI_MODULE_STICKY (to any value)
177184
load_message = "Module for EESSI/" .. eessi_version .. " loaded successfully"
178185
if os.getenv("EESSI_MODULE_STICKY") then

0 commit comments

Comments
 (0)