Skip to content

Commit e482cab

Browse files
authored
Merge pull request #319 from trz42/rebuild_openmpi_and_remove_hook
{2023.06}[foss/2022b,foss/2023a,foss/2023b] REBUILD OpenMPI v4.1.{4,5,6}
2 parents d82cf8a + d8e08c8 commit e482cab

File tree

2 files changed

+10
-21
lines changed

2 files changed

+10
-21
lines changed

create_lmodsitepackage.py

-21
Original file line numberDiff line numberDiff line change
@@ -145,31 +145,10 @@
145145
end
146146
end
147147
148-
local function eessi_openmpi_load_hook(t)
149-
-- disable smcuda BTL when loading OpenMPI module for aarch64/neoverse_v1,
150-
-- to work around hang/crash due to bug in OpenMPI;
151-
-- see https://gitlab.com/eessi/support/-/issues/41
152-
local frameStk = require("FrameStk"):singleton()
153-
local mt = frameStk:mt()
154-
local moduleName = string.match(t.modFullName, "(.-)/")
155-
local cpuTarget = os.getenv("EESSI_SOFTWARE_SUBDIR") or ""
156-
if (moduleName == "OpenMPI") and (cpuTarget == "aarch64/neoverse_v1") then
157-
local msg = "Adding '^smcuda' to $OMPI_MCA_btl to work around bug in OpenMPI"
158-
LmodMessage(msg .. " (see https://gitlab.com/eessi/support/-/issues/41)")
159-
local ompiMcaBtl = os.getenv("OMPI_MCA_btl")
160-
if ompiMcaBtl == nil then
161-
setenv("OMPI_MCA_btl", "^smcuda")
162-
else
163-
setenv("OMPI_MCA_btl", ompiMcaBtl .. ",^smcuda")
164-
end
165-
end
166-
end
167-
168148
-- Combine both functions into a single one, as we can only register one function as load hook in lmod
169149
-- Also: make it non-local, so it can be imported and extended by other lmodrc files if needed
170150
function eessi_load_hook(t)
171151
eessi_cuda_enabled_load_hook(t)
172-
eessi_openmpi_load_hook(t)
173152
end
174153
175154
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# 2024-04-13
2+
# Rebuild all OpenMPI 4.1.x versions due to an issue with smcuda:
3+
# https://github.com/open-mpi/ompi/issues/12270
4+
# https://github.com/open-mpi/ompi/pull/12344
5+
# https://github.com/easybuilders/easybuild-easyconfigs/pull/19940
6+
# Note, we don't need the easyconfig PR because it is included in EasyBuild 4.9.1
7+
easyconfigs:
8+
- OpenMPI-4.1.4-GCC-12.2.0.eb:
9+
- OpenMPI-4.1.5-GCC-12.3.0:
10+
- OpenMPI-4.1.6-GCC-13.2.0:

0 commit comments

Comments
 (0)