Skip to content

Commit

Permalink
Merge branch 'add_lammps_2023a' of github.com:laraPPr/software-layer …
Browse files Browse the repository at this point in the history
…into add_lammps_2023a
  • Loading branch information
lara committed Feb 15, 2024
2 parents 8151ef1 + 2bb6fcd commit 7b8890b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions create_lmodrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,28 @@
end
end
local function openmpi_load_hook(t)
-- disable smcuda BTL when loading OpenMPI module for aarch64/neoverse_v1,
-- to work around hang/crash due to bug in OpenMPI;
-- see https://gitlab.com/eessi/support/-/issues/41
local frameStk = require("FrameStk"):singleton()
local mt = frameStk:mt()
local moduleName = string.match(t.modFullName, "(.-)/")
local cpuTarget = os.getenv("EESSI_SOFTWARE_SUBDIR") or ""
if (moduleName == "OpenMPI") and (cpuTarget == "aarch64/neoverse_v1") then
local msg = "Adding '^smcuda' to $OMPI_MCA_btl to work around bug in OpenMPI"
LmodMessage(msg .. " (see https://gitlab.com/eessi/support/-/issues/41)")
local ompiMcaBtl = os.getenv("OMPI_MCA_btl")
if ompiMcaBtl == nil then
setenv("OMPI_MCA_btl", "^smcuda")
else
setenv("OMPI_MCA_btl", ompiMcaBtl .. ",^smcuda")
end
end
end
hook.register("load", cuda_enabled_load_hook)
hook.register("load", openmpi_load_hook)
"""

def error(msg):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ easyconfigs:
options:
from-pr: 19573
- scikit-learn-1.3.1-gfbf-2023a.eb
- snakemake-8.4.2-foss-2023a.eb:
options:
from-pr: 19646
- LAMMPS-2Aug2023_update2-foss-2023a-kokkos.eb:
# see https://github.com/easybuilders/easybuild-easyconfigs/pull/19471
# see https://github.com/easybuilders/easybuild-easyblocks/pull/3036
Expand Down

0 comments on commit 7b8890b

Please sign in to comment.