-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from fgeorgatos/fgeorgatos-Lmod-7.5.1
Lmod 7.6.x, bugfixed .spec and paraphernalia; attempt to deliver SETTARG for all
- Loading branch information
Showing
9 changed files
with
117 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
-- System wide default modules that get loaded | ||
-- This is referenced by LMOD_SYSTEM_DEFAULT_MODULES | ||
|
||
function chomp(s) | ||
s = string.gsub(s, '^%s+', '') | ||
s = string.gsub(s, '%s+$', '') | ||
s = string.gsub(s, '[\n\r]+', ' ') | ||
return s | ||
end | ||
|
||
local uid, status = chomp(capture("/usr/bin/id -u")) | ||
|
||
if uid == "0" then | ||
load("shared", "cmd", "cmsh", "cluster-tools", "slurm") | ||
else | ||
load("shared") -- DEFAULT_MODULES_OTHER | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# -*- lua -*- | ||
propT = { | ||
state = { | ||
validT = { experimental = 1, testing = 1, obsolete = 1 }, | ||
displayT = { | ||
experimental = { short = "(E)", long = "(E)", color = "blue", doc = "Experimental", }, | ||
testing = { short = "(T)", long = "(T)", color = "green", doc = "Testing", }, | ||
obsolete = { short = "(O)", long = "(O)", color = "red", doc = "Obsolete", }, | ||
}, | ||
}, | ||
lmod = { | ||
validT = { sticky = 1 }, | ||
displayT = { | ||
sticky = { short = "(S)", long = "(S)", color = "red", doc = "Module is Sticky, requires --force to unload or purge", }, | ||
}, | ||
}, | ||
arch = { | ||
validT = { mic = 1, offload = 1, gpu = 1, }, | ||
displayT = { | ||
["mic:offload"] = { short = "(*)", long = "(m,o)", color = "blue", doc = "built for host, native MIC and offload to the MIC", }, | ||
["mic"] = { short = "(m)", long = "(m)", color = "blue", doc = "built for host and native MIC", }, | ||
["offload"] = { short = "(o)", long = "(o)", color = "blue", doc = "built for offload to the MIC only",}, | ||
["gpu"] = { short = "(g)", long = "(g)", color = "red" , doc = "built for GPU",}, | ||
["gpu:mic"] = { short = "(gm)", long = "(g,m)", color = "red" , doc = "built natively for MIC and GPU",}, | ||
["gpu:mic:offload"] = { short = "(@)", long = "(g,m,o)", color = "red" , doc = "built natively for MIC and GPU and offload to the MIC",}, | ||
}, | ||
}, | ||
status = { | ||
validT = { active = 1, }, | ||
displayT = { | ||
active = { short = "(L)", long = "(L)", color = "yellow", doc = "Module is loaded", }, | ||
}, | ||
}, | ||
} | ||
scDescriptT = { | ||
{ | ||
["dir"] = "/dev/shm/lmod/cacheDir", | ||
["timestamp"] = "/dev/shm/lmod/system.txt", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters