Consider dropping sm_75 from the CUDA wheels once CI has other GPU runners

Open
#138 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
32/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
cmake, python

Research direction

First check whether CI has an available GPU runner with compute capability 8.0 or newer; the issue says the current T4 runners cannot test wheels after dropping 75-real. Read build-dist.yml and inspect its cu12 and cu13 wheel tests, then review the default and comment in pyproject.toml, the job memory comment in CMakeLists.txt, and the two named documentation files. Done means the runner change is in place and all listed architecture references are updated consistently.

Written by the indexing model from the issue text.

Description

ci idea

🤖 AI text below 🤖

What is the idea?

Drop 75-real (Turing: T4, RTX 20xx, Quadro RTX) from the architectures of the gpu-dmrg-cu12 and gpu-dmrg-cu13 x86_64 wheels, the default in pyproject.toml (75-real;80-real;90). This hinges on finding other GPU runners for CI: our only GPU runners are T4s.

What we would gain

  • Smaller x86_64 wheels: one cubin fewer per kernel.
  • Shorter CUDA builds: nvcc compiles a file's architectures one after the other.

What we would lose

  • The GPU tests of the wheels. build-dist.yml tests both CUDA wheels on gpu-t4-4-core-custom and gpu-t4-4-core-cuda13. Without 75-real the wheels have no code a T4 can run: machine code for 8.0 doesn't run on 7.5, and the PTX of 9.0 only on 9.0 and newer. The check of #122 then stops every run with a RuntimeError. (The GPU job of test.yml builds from source with its own architecture, 75, so it is not affected.)
  • Turing users of the wheels. They are few in production: the engine computes in FP64, which Turing runs at 1/32 of its FP32 rate (about 0.25 TFLOPS on a T4). The target clusters (Leonardo: A100, MareNostrum5: H100, JUPITER: GH200) are all 8.0 or newer.
  • The default also applies to source builds (just build, pip install .): on a Turing card they would have to set the architecture.

Nothing forces the drop: CUDA 13 removed Maxwell, Pascal and Volta, but still supports Turing.

Before dropping it

  • A GPU runner of compute capability 8.0 or newer (an A100, L4 or newer) for the wheel tests of build-dist.yml, for both cu12 and cu13.
  • Then update the default and its comment in pyproject.toml, the comment on the job memory in CMakeLists.txt, docs/content/docs/installation.mdx (the GPUs of the x86_64 wheels) and docs/developer-guide/cpp.md.

A middle way, if the wheels must stay testable on a T4: 75-virtual instead of 75-real. The T4 would compile the PTX at the first run, but the wheel would hardly shrink, since PTX is often as large as the machine code.

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.