Skip to content

Commit 9a8b438

Browse files
committed
ci: also install mvapich2
mvapich2 is not available on aarch64, so only add it to the package list on other architectures. Generated with Claude Code (https://claude.ai/code) Signed-off-by: Adrian Reber <areber@redhat.com>
1 parent dad566a commit 9a8b438

1 file changed

Lines changed: 24 additions & 17 deletions

File tree

tests/ci/setup_slurm_and_run_tests.sh

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,31 @@ fi
1919
"${PKG[@]}" remove lmod-defaults-*-ohpc || true
2020

2121
# Then install slurm and needed packages
22-
"${PKG[@]}" install \
23-
hostname \
24-
make \
25-
openssh-clients \
26-
which \
27-
sudo \
28-
psmisc \
29-
autoconf \
30-
automake \
31-
libtool \
32-
prun-ohpc \
33-
openmpi5-"${COMPILER_FAMILY}"-ohpc \
34-
mpich-"${COMPILER_FAMILY}"-ohpc \
35-
lmod-defaults-"${COMPILER_FAMILY}"-openmpi5-ohpc \
36-
slurm-slurmd-ohpc \
37-
slurm-slurmctld-ohpc \
38-
slurm-example-configs-ohpc \
22+
INSTALL_PKGS=(
23+
hostname
24+
make
25+
openssh-clients
26+
which
27+
sudo
28+
psmisc
29+
autoconf
30+
automake
31+
libtool
32+
prun-ohpc
33+
openmpi5-"${COMPILER_FAMILY}"-ohpc
34+
mpich-"${COMPILER_FAMILY}"-ohpc
35+
lmod-defaults-"${COMPILER_FAMILY}"-openmpi5-ohpc
36+
slurm-slurmd-ohpc
37+
slurm-slurmctld-ohpc
38+
slurm-example-configs-ohpc
3939
slurm-ohpc
40+
)
41+
42+
if [ "$(uname -m)" != "aarch64" ]; then
43+
INSTALL_PKGS+=(mvapich2-"${COMPILER_FAMILY}"-ohpc)
44+
fi
45+
46+
"${PKG[@]}" install "${INSTALL_PKGS[@]}"
4047

4148
# Install rebuilt packages (if any)
4249
# shellcheck disable=SC2046 # (we want the words to be split)

0 commit comments

Comments
 (0)