Shorten the tests of the wheels in cibuildwheel

Open
#155 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@robertodr is already working on this.

Since Dec 1, 2026.

  • #156 by @robertodr — open

Assessment

This issue has not been assessed yet.

Description

ci request

🤖 AI text below 🤖

Follows #116, closed: a prebuilt image would save about a minute per CUDA wheel job. Most of the wheel jobs' time is their tests.

Where the time goes. The nightly run 46571915144, x86-64 cu12 wheel (build-dist.yml, "Build the wheel": 14.1 minutes):

Step Time
before_all (OpenBLAS, the CUDA toolkit, MPI) 2.0 min
Compiling 3.0 min
Tests in the container, cp311 4.2 min
Tests in the container, cp314 4.3 min

aarch64 is the same pattern: 2.0 + 1.6 + 2.3 + 2.1 minutes.

What the tests run. tools/cibw/run-tests.sh runs pytest -m "not slow" and a two-rank run, once per MPI family (MPICH, Open MPI). cibuildwheel runs it for cp311 and cp314 (build = ["cp311-*", "cp314-*"]), but the wheel is a single abi3 wheel. So each job runs the fast suite four times. In a CUDA wheel, without a GPU, these tests run the host path, which the CPU wheel's jobs test as well. The CUDA wheel then gets its own GPU job, Test the cu12 wheel on a GPU (15.6 minutes), which runs the suite on the device.

What could change

  • CUDA wheels in the container: a smoke test instead of the suite. For each MPI family: the extension of that family loads, one small solve on the host, and the two-rank run. The GPU job tests the engine.
  • The second Python: the abi3 wheel is the same file. On cp314, a smoke test (import, one solve, the two-rank run) checks that it loads on the newest Python. The suite runs on cp311.
  • Releases: decide whether deploy.yml's wheel build keeps the full tests. A release is rare, and its wheels are the ones users install.

To measure: "Build the wheel" of a CUDA job and of a CPU job before and after, on a pull request and in the nightly run.

Dominant language
C++
Stars
3
Forks
0
Avg merge
2d 1h
Merged PRs (30d)
29

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Algorithmiq/exa-dmrg

All issues in Algorithmiq/exa-dmrg

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.