Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpi: add tioga compiler/MPI to tests #11

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading