Skip to content

ci: fix MPI tests on daint with CUDA-aware Open MPI, pin wheel tests to ubuntu-24.04 - #1834

Draft
edopao wants to merge 3 commits into
GridTools:masterfrom
edopao:fix/ci-config
Draft

edopao wants to merge 3 commits into
GridTools:masterfrom
edopao:fix/ci-config

Conversation

@edopao

@edopao edopao commented Dec 3, 2026 •

Copy link
Copy Markdown

Summary

The MPI CI job on daint broke because the Cray PE is gone from the host, so its MPICH can no longer be mounted into the container. The container now ships CUDA-aware Open MPI, and a single ctest launches each test with mpiexec -n 4:

 ci/base.Dockerfile
-  MPICH 3.3.2
+  Open MPI 5.0.10 --with-cuda   # build fails if CUDA support is missing
 ci/build.Dockerfile
-  GT_TESTS_MPI_WITH_MPI_EXECUTABLE=OFF
+  GT_TESTS_MPI_WITH_MPI_EXECUTABLE=ON
 ci/cscs.yml  test_aarch64_mpi
-  SLURM_NTASKS=4, cray_shasta + host Cray MPICH mounts
+  SLURM_NTASKS=1, 4 GPUs, PRTE_MCA_ras/plm=^slurm

Also pins the Python package workflow's container jobs to ubuntu-24.04. On ubuntu-latest (26.04), the preinstalled Python 3.11 has no working ssl inside the gridtools-base container (TODO: revert when the images are rebuilt).

Evidence

  • Before: MPI job fails to start (job); test-wheel (3.11) can't install nox (run).
    After: 7/7 MPI tests pass, CPU and GPU (job); wheel tests pending.

Merge Danger

Door: two-way. CI-only, revert to undo.

Blast Radius: CI. All jobs using the base image now build with Open MPI.

🤖 Generated with Claude Code

@edopao

edopao commented Dec 3, 2026

Copy link
Copy Markdown
Author

cscs-ci run

@gridtoolsjenkins

Copy link
Copy Markdown
Collaborator

Hi there, this is jenkins continuous integration...
Do you want me to verify this patch?

@edopao

edopao commented Dec 3, 2026

Copy link
Copy Markdown
Author

cscs-ci run

@edopao

edopao commented Dec 3, 2026

Copy link
Copy Markdown
Author

cscs-ci run

9 similar comments
@edopao

edopao commented Dec 3, 2026

Copy link
Copy Markdown
Author

cscs-ci run

@edopao

edopao commented Dec 3, 2026

Copy link
Copy Markdown
Author

cscs-ci run

@edopao

edopao commented Dec 3, 2026

Copy link
Copy Markdown
Author

cscs-ci run

@edopao

edopao commented Dec 3, 2026

Copy link
Copy Markdown
Author

cscs-ci run

@edopao

edopao commented Dec 3, 2026

Copy link
Copy Markdown
Author

cscs-ci run

@edopao

edopao commented Dec 3, 2026

Copy link
Copy Markdown
Author

cscs-ci run

@edopao

edopao commented Dec 3, 2026

Copy link
Copy Markdown
Author

cscs-ci run

@edopao

edopao commented Dec 3, 2026

Copy link
Copy Markdown
Author

cscs-ci run

@edopao

edopao commented Dec 3, 2026

Copy link
Copy Markdown
Author

cscs-ci run

edopao and others added 2 commits December 3, 2026 18:29
The MPI test job no longer works on daint: the Cray PE is not available
under /opt/cray/pe anymore, so the host MPICH/PMI libraries can no longer
be mounted into the container and the container fails to start.

- Build CUDA-aware Open MPI 5.0.10 in the base image instead of MPICH
  3.3.2, which is not GPU-aware (GPU MPI tests segfault) and also failed
  a CPU halo exchange test. CUDA support lives in run-time loadable
  components, so libmpi does not depend on the CUDA driver, which is not
  available at image build time; the build fails if this is not the case.
- Run ctest from a single Slurm task and launch each MPI test with the
  container's 'mpiexec -n 4' (GT_TESTS_MPI_WITH_MPI_EXECUTABLE=ON).
  Running ctest concurrently in 4 Slurm tasks hangs before starting any
  test. PRRTE is told to ignore Slurm so that all ranks run locally.
- Check Open MPI's CUDA support with ompi_info on the GPU node.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ubuntu-latest is now Ubuntu 26.04, where setup-python picks the runner's
preinstalled Python 3.11 built for 26.04; inside the gridtools-base
container its ssl module is unusable and pip cannot reach PyPI, so the
test-wheel (3.11) job fails. Pin the runner until the base images are
rebuilt on a newer Ubuntu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@edopao edopao changed the title ci: edit config ci: fix MPI tests on daint with CUDA-aware Open MPI, pin wheel tests to ubuntu-24.04 Dec 3, 2026
The MPI test driver picked the GPU from MV2_COMM_WORLD_LOCAL_RANK or
SLURM_LOCALID. When the ranks are started by mpiexec inside a single
Slurm task (as in CI now), all of them inherit SLURM_LOCALID=0 and use
the same GPU. Read Open MPI's and MPICH's local rank variables first.

Log the rank, local rank source, and GPU (with PCI ID) for each rank, and
print it in CI for one GPU MPI test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@edopao

edopao commented Dec 4, 2026

Copy link
Copy Markdown
Author

cscs-ci run

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants