[PR #3595] [CLOSED] [Engine] the experimental CUDA 12 build runs on the Maxwell cards (sm_50) #4703

Closed
opened 2026-11-07 15:38:27 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3595
Author: @msprengholz
Created: 10/21/2026
Status: ❌ Closed

Base: main ← Head: feature/maxwell-sm50-cuda12-build


📝 Commits (1)

  • a174318 Maxwell (sm_50): the experimental CUDA 12 build runs on the Maxwell cards

📊 Changes

6 files changed (+61 additions, -49 deletions)

View changed files

📝 CMakeLists.txt (+7 -6)
📝 docs/OLDER_GPUS.md (+2 -0)
📝 setup.py (+36 -28)
📝 src/core/device.cu (+4 -4)
📝 tools/test_setup_choices.py (+7 -8)
📝 tools/test_setup_older_gpus.py (+5 -3)

📄 Description

The problem

CUDA 13 dropped Maxwell, so a Maxwell card needs the experimental CUDA 12 engine. That engine refused every
card below compute capability 6.0, although the kernels compile for Maxwell and a GTX TITAN X (sm_52) is a
12 GB card with enough memory for a small model. The gate was the only thing in the way.

What this changes

  • CMakeLists.txt: the experimental build's lowest architecture is 5.0 (it was 6.0). The release CUDA 13
    engine still needs 7.5.
  • setup.py: setup's card choice admits the Maxwell cards (sm_50/52) for the CUDA 12 engine, and still
    refuses Kepler (sm_35), for which no engine code exists.
  • src/core/device.cu: the engine's own check says "5.0 or newer" in the experimental build.
  • tools/test_setup_choices.py, tools/test_setup_older_gpus.py: the tests follow (50 and 19 tests).

Nothing else changes: the release engine, the HIP engine, the SYCL engine and the Metal engine are untouched.

Validation

Environment: GeForce GTX TITAN X (sm_52, 12,288 MiB), driver 580.178.04, Linux 6.2 (CachyOS), CUDA 12.9 at
/opt/cuda, host compiler g++-14. Engine built with
-DCMAKE_CUDA_ARCHITECTURES=50 -DSTRATA_EXPERIMENTAL_SM60=ON (the build-cuda12 folder).

Passed

  • python tools/test_setup_choices.py - 50 tests, OK.
  • python tools/test_setup_older_gpus.py - 19 tests, OK.
  • python tools/test_setup_configs.py - OK.
  • cmake --build build-cuda12 -j 8 - clean, no warnings from the changed files.
  • On the card: the engine loads the Gyro-S model, serves it and answers (the profile in the next PR:
    bench/results/2026-10-21-gyro-titanx, a real request, 201 tokens decoded, 77 s).

Failed

  • None.

Not run

  • The HIP, SYCL and Metal engines: this change does not touch their sources, and this PC has no ROCm and no
    Intel toolchain. The CUDA 13 release engine was not built here either (only CUDA 12.9 is installed).

The next pull request

The profile of this card is in the next PR: the GPU's kernels under Nsight Systems, the bottleneck analysis
and the one change that measured faster there (the dense projections' FP16 GEMMs as cublasSgemm on FP32
copies, opt-in STRATA_DENSE_F32=1, 1.18-1.65x for the big shapes, bitwise on 5,201 chunk sizes).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3595 **Author:** [@msprengholz](https://github.com/msprengholz) **Created:** 10/21/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/maxwell-sm50-cuda12-build` --- ### 📝 Commits (1) - [`a174318`](https://github.com/Niko1221/Strata/commit/a1743189043bd181f7d8e5ba23189a2f11262c64) Maxwell (sm_50): the experimental CUDA 12 build runs on the Maxwell cards ### 📊 Changes **6 files changed** (+61 additions, -49 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+7 -6) 📝 `docs/OLDER_GPUS.md` (+2 -0) 📝 `setup.py` (+36 -28) 📝 `src/core/device.cu` (+4 -4) 📝 `tools/test_setup_choices.py` (+7 -8) 📝 `tools/test_setup_older_gpus.py` (+5 -3) </details> ### 📄 Description ## The problem CUDA 13 dropped Maxwell, so a Maxwell card needs the experimental CUDA 12 engine. That engine refused every card below compute capability 6.0, although the kernels compile for Maxwell and a GTX TITAN X (sm_52) is a 12 GB card with enough memory for a small model. The gate was the only thing in the way. ## What this changes - `CMakeLists.txt`: the experimental build's lowest architecture is 5.0 (it was 6.0). The release CUDA 13 engine still needs 7.5. - `setup.py`: setup's card choice admits the Maxwell cards (sm_50/52) for the CUDA 12 engine, and still refuses Kepler (sm_35), for which no engine code exists. - `src/core/device.cu`: the engine's own check says "5.0 or newer" in the experimental build. - `tools/test_setup_choices.py`, `tools/test_setup_older_gpus.py`: the tests follow (50 and 19 tests). Nothing else changes: the release engine, the HIP engine, the SYCL engine and the Metal engine are untouched. ## Validation Environment: GeForce GTX TITAN X (sm_52, 12,288 MiB), driver 580.178.04, Linux 6.2 (CachyOS), CUDA 12.9 at /opt/cuda, host compiler g++-14. Engine built with `-DCMAKE_CUDA_ARCHITECTURES=50 -DSTRATA_EXPERIMENTAL_SM60=ON` (the `build-cuda12` folder). **Passed** - `python tools/test_setup_choices.py` - 50 tests, OK. - `python tools/test_setup_older_gpus.py` - 19 tests, OK. - `python tools/test_setup_configs.py` - OK. - `cmake --build build-cuda12 -j 8` - clean, no warnings from the changed files. - On the card: the engine loads the Gyro-S model, serves it and answers (the profile in the next PR: `bench/results/2026-10-21-gyro-titanx`, a real request, 201 tokens decoded, 77 s). **Failed** - None. **Not run** - The HIP, SYCL and Metal engines: this change does not touch their sources, and this PC has no ROCm and no Intel toolchain. The CUDA 13 release engine was not built here either (only CUDA 12.9 is installed). ## The next pull request The profile of this card is in the next PR: the GPU's kernels under Nsight Systems, the bottleneck analysis and the one change that measured faster there (the dense projections' FP16 GEMMs as `cublasSgemm` on FP32 copies, opt-in `STRATA_DENSE_F32=1`, 1.18-1.65x for the big shapes, bitwise on 5,201 chunk sizes). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:38:27 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4703
No description provided.