Skip to content

fix(cmake): derive conservative minimum CUDA architecture - #542

Draft
da-beda wants to merge 2 commits into
Luce-Org:mainfrom
da-beda:fix/cuda-arch-min-sm
Draft

fix(cmake): derive conservative minimum CUDA architecture#542
da-beda wants to merge 2 commits into
Luce-Org:mainfrom
da-beda:fix/cuda-arch-min-sm

Conversation

@da-beda

@da-beda da-beda commented Jul 18, 2026

Copy link
Copy Markdown

Fixes mixed-architecture builds that previously treated the first CMAKE_CUDA_ARCHITECTURES entry as the minimum. The parser validates supported suffix forms, rejects indeterminate or malformed values, computes the true minimum, and shares normalized values across capability gates.

Validation:

  • four pure-CMake permutation, suffix, duplicate, and rejection groups pass
  • the combined branch configures and compiles successfully for CMAKE_CUDA_ARCHITECTURES=70 with CUDA 12.0 on dual Tesla V100S
  • exact-contract, security, and the full server unit suite pass in that SM70 build

Hosted CI coverage is included.

knauerp and others added 2 commits July 28, 2026 15:30
Build BF16 WMMA kernels in an SM80-only object target because CUDA_ARCHITECTURES is target-scoped. Align CUDA launcher return types with their declarations so successful launches are not treated as failures.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants