Skip to content

Commit

Permalink
mpi: add tioga compiler/MPI to tests
Browse files Browse the repository at this point in the history
Problem: we don't test the MPIs and compilers on
Tioga.

Let's do that.
  • Loading branch information
wihobbs committed Feb 13, 2024
1 parent e073769 commit 4f99b72
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,22 @@ default:
- make -j $(nproc) check
- make -j $(nproc) install

.test-coral2:
extends: .lc-variables
variables:
PYTHON: "/usr/bin/python3"
debug: t
FLUX_TESTS_LOGFILE: t
script:
- cd ${CI_DIRECTORY}
- export PKG_CONFIG_PATH=${CORE_INSTALL_PREFIX}/lib/pkgconfig:$(pkg-config --variable pc_path pkg-config)
- git clone https://github.com/flux-framework/flux-coral2
- cd flux-coral2
- ./autogen.sh
- ./configure --prefix=${CORE_INSTALL_PREFIX}
- make -j $(nproc) check
- make -j $(nproc) install

.test-core-mpi:
extends: .lc-variables
## this will need coral2 XOR pmix depending on system (hopefully both eventually)
Expand Down Expand Up @@ -116,6 +132,22 @@ quartz-core-build:
- .build-core
- .quartz
stage: build

tioga-coral2-test:
needs: ["tioga-core-build"]
extends:
- .test-coral2
- .tioga
stage: test

tioga-mpi-test:
needs: ["tioga-core-build", "tioga-coral2-test"]
extends:
- .test-core-mpi
- .tioga
variables:
LLNL_FLUX_SCHEDULER_PARAMETERS: "-N 2 -q pci"
stage: test

quartz-core-test:
needs: ["quartz-core-build"]
Expand Down
13 changes: 12 additions & 1 deletion mpi/outer_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,23 @@ abort
version
"

tioga_COMPILERS="
gcc
cce
"

tioga_MPIS="
cray-mpich
"

MPIS="${LCSCHEDCLUSTER}_MPIS"
COMPILERS="${LCSCHEDCLUSTER}_COMPILERS"

for mpi in ${!MPIS}; do
for compiler in ${!COMPILERS}; do
if [[ $mpi == "openmpi" ]]; then
if [[ $mpi == "cray-mpich" ]]; then
EXTRA_FLUX_SUBMIT_OPTIONS="-o pmi=cray-pals" flux batch -N2 -n4 --flags=waitable --output=kvs $MPI_TESTS_DIRECTORY/inner_script.sh $mpi $compiler
elif [[ $mpi == "openmpi" ]]; then
EXTRA_FLUX_SUBMIT_OPTIONS="-o pmi=pmix" flux batch -N2 -n4 --flags=waitable --output=kvs $MPI_TESTS_DIRECTORY/inner_script.sh $mpi $compiler
else
flux batch -N2 -n4 --flags=waitable --output=kvs $MPI_TESTS_DIRECTORY/inner_script.sh $mpi $compiler
Expand Down

0 comments on commit 4f99b72

Please sign in to comment.