[PR #4029] [CLOSED] [Engine] apply the existing sm_120 default and fix the native build on RTX 50 #4883

Closed
opened 2026-11-07 16:31:04 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4029
Author: @pschaub
Created: 10/25/2026
Status: ❌ Closed

Base: main ← Head: cmake-cuda-arch-default


📝 Commits (1)

  • d55d80a CUDA: apply the existing 120 default, resolve native for the W4A4 unit

📊 Changes

2 files changed (+12 additions, -6 deletions)

View changed files

📝 CMakeLists.txt (+8 -3)
📝 docs/INSTALL.md (+4 -3)

📄 Description

Problem and result

Fixes #4023. The existing 120 default in CMakeLists.txt now applies (without an architecture option the build was for 75), and native builds on an RTX 50. The default itself is unchanged.

#4023

Approach

  • The existing 120 default moves before enable_language(CUDA), unless CUDAARCHS is set.
  • For the W4A4 unit, native becomes CMake's detected architecture before the 12x -> 12xa rewrite.
  • docs/INSTALL.md names the architecture per card instead of native.

Builds that pass the architectures explicitly (setup.py, release scripts) are unchanged.

Validation

Windows 11, RTX 5090, CUDA 13.4, CMake 3.31.6, Ninja, MSVC 2022.

Passed:

  • Configure without the option: main 7dd5cf18 arch 75, this branch arch 120. With CUDAARCHS=86: 86. With -DCMAKE_CUDA_ARCHITECTURES=89: 89.
  • native, target strata_mmq_w4a4: main fails with the ptxas error from the issue; this branch builds it for sm_120a.
  • native, target strata: builds, strata.exe --version prints strata 0.1.49.2.

Failed:
none observed

Not run:

  • Serving a model with the rebuilt engine.
  • RTX 20/30/40 without the option, which now get a 120 build.
  • Linux, HIP, SYCL, Metal: the change is CUDA-only.

Limits

  • all and all-major still compile the W4A4 unit for plain sm_120, which ptxas refuses as it did for native (not tried).
  • CMAKE_CUDA_ARCHITECTURES_NATIVE is not documented by CMake. If it is missing, the unit behaves as before.

🔄 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/4029 **Author:** [@pschaub](https://github.com/pschaub) **Created:** 10/25/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `cmake-cuda-arch-default` --- ### 📝 Commits (1) - [`d55d80a`](https://github.com/Niko1221/Strata/commit/d55d80a68927cfd49e4d0584ed9b0ef68c362ae5) CUDA: apply the existing 120 default, resolve native for the W4A4 unit ### 📊 Changes **2 files changed** (+12 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+8 -3) 📝 `docs/INSTALL.md` (+4 -3) </details> ### 📄 Description ## Problem and result Fixes #4023. The existing 120 default in CMakeLists.txt now applies (without an architecture option the build was for 75), and `native` builds on an RTX 50. The default itself is unchanged. ## Related discussion #4023 ## Approach - The existing 120 default moves before `enable_language(CUDA)`, unless `CUDAARCHS` is set. - For the W4A4 unit, `native` becomes CMake's detected architecture before the 12x -> 12xa rewrite. - docs/INSTALL.md names the architecture per card instead of `native`. Builds that pass the architectures explicitly (setup.py, release scripts) are unchanged. ## Validation Windows 11, RTX 5090, CUDA 13.4, CMake 3.31.6, Ninja, MSVC 2022. **Passed:** - Configure without the option: main 7dd5cf18 `arch 75`, this branch `arch 120`. With `CUDAARCHS=86`: `86`. With `-DCMAKE_CUDA_ARCHITECTURES=89`: `89`. - `native`, target `strata_mmq_w4a4`: main fails with the ptxas error from the issue; this branch builds it for `sm_120a`. - `native`, target `strata`: builds, `strata.exe --version` prints `strata 0.1.49.2`. **Failed:** none observed **Not run:** - Serving a model with the rebuilt engine. - RTX 20/30/40 without the option, which now get a 120 build. - Linux, HIP, SYCL, Metal: the change is CUDA-only. ## Limits - `all` and `all-major` still compile the W4A4 unit for plain sm_120, which ptxas refuses as it did for `native` (not tried). - `CMAKE_CUDA_ARCHITECTURES_NATIVE` is not documented by CMake. If it is missing, the unit behaves as before. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:31:04 +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#4883
No description provided.