Skip to content

Commit 79cfb20

Browse files
authored
Merge pull request #35 from ComputeCanada/lmod_cache
Lmod cache
2 parents f066790 + 86ec11c commit 79cfb20

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

modules/gentoo/2020.lua.core

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ else
6161
setenv("PIP_CONFIG_FILE", "/cvmfs/soft.computecanada.ca/config/python/pip-gentoo.conf")
6262
end
6363
setenv("MII_INDEX_FILE", "/cvmfs/soft.computecanada.ca/custom/mii/data/" .. arch .. "_" .. vendor_id)
64+
if os.getenv("RSNT_ENABLE_LMOD_CACHE") == "yes" then
65+
append_path("LMOD_RC", "/cvmfs/soft.computecanada.ca/config/lmod/lmodrc/cache_" .. arch .. "_" .. vendor_id .. ".lua")
66+
end
6467

6568
-- also make easybuild and easybuild-generated modules accessible
6669
prepend_path("PATH", "/cvmfs/soft.computecanada.ca/easybuild/bin")

modules/nixpkgs/16.09.lua.core

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ else
7070
setenv("PIP_CONFIG_FILE", "/cvmfs/soft.computecanada.ca/config/python/pip.conf")
7171
end
7272
setenv("MII_INDEX_FILE", "/cvmfs/soft.computecanada.ca/custom/mii/data/" .. arch .. "_" .. cpu_vendor_id)
73+
if os.getenv("RSNT_ENABLE_LMOD_CACHE") == "yes" then
74+
append_path("LMOD_RC", "/cvmfs/soft.computecanada.ca/config/lmod/lmodrc/cache_" .. arch .. "_" .. cpu_vendor_id .. ".lua")
75+
end
7376

7477
-- also make easybuild and easybuild-generated modules accessible
7578
prepend_path("PATH", "/cvmfs/soft.computecanada.ca/easybuild/bin")

0 commit comments

Comments
 (0)