mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4029] [CLOSED] [Engine] apply the existing sm_120 default and fix the native build on RTX 50 #4883
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#4883
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/4029
Author: @pschaub
Created: 10/25/2026
Status: ❌ Closed
Base:
main← Head:cmake-cuda-arch-default📝 Commits (1)
d55d80aCUDA: 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
nativebuilds on an RTX 50. The default itself is unchanged.Related discussion
#4023
Approach
enable_language(CUDA), unlessCUDAARCHSis set.nativebecomes CMake's detected architecture before the 12x -> 12xa rewrite.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:
7dd5cf18arch 75, this brancharch 120. WithCUDAARCHS=86:86. With-DCMAKE_CUDA_ARCHITECTURES=89:89.native, targetstrata_mmq_w4a4: main fails with the ptxas error from the issue; this branch builds it forsm_120a.native, targetstrata: builds,strata.exe --versionprintsstrata 0.1.49.2.Failed:
none observed
Not run:
Limits
allandall-majorstill compile the W4A4 unit for plain sm_120, which ptxas refuses as it did fornative(not tried).CMAKE_CUDA_ARCHITECTURES_NATIVEis 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.