mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3595] [CLOSED] [Engine] the experimental CUDA 12 build runs on the Maxwell cards (sm_50) #4703
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4703
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
a174318Maxwell (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 13engine still needs 7.5.
setup.py: setup's card choice admits the Maxwell cards (sm_50/52) for the CUDA 12 engine, and stillrefuses 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(thebuild-cuda12folder).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.bench/results/2026-10-21-gyro-titanx, a real request, 201 tokens decoded, 77 s).Failed
Not run
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
cublasSgemmon FP32copies, 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.