Files
Niko1221 c43678bf23 fix(inkling2/cuda): the FP4 sm_120 file gets sm_120a also when the architectures come from CMAKE_CUDA_ARCHITECTURES ("120-real")
ink_moe_fp4_sm120.cu uses the block-scaled FP4 MMA, which only exists for the arch-specific targets sm_120a / sm_121a. cuda/CMakeLists.txt mapped
120 -> 120a (121 -> 121a) only when STRATA_INK_CUDA_ARCHS held the bare number. A build that inherits CMAKE_CUDA_ARCHITECTURES such as
"61-real;120-real;89-real" (build_cuda_linux.sh does not pass STRATA_INK_CUDA_ARCHS; the INTEG and GRID builds hit it) matched nothing, built the
file for plain compute_120 and ptxas failed ("mma with block scale not supported on sm_120").

- ink_sm120a.cmake: ink_sm120a_archs() maps every entry of the form 12[01]a?(-real|-virtual)? to 12[01]a with the suffix kept
  (120 -> 120a, 120-real -> 120a-real, 120-virtual -> 120a-virtual, 121-real -> 121a-real); other entries drop out; a list without a Blackwell
  entry is returned as it is. cuda/CMakeLists.txt calls it instead of the inline loop. The other CUDA files keep the list as it was given.
- tests/cmake/ink_sm120a_test.cmake (ctest ink_sm120a_cmake, cmake -P, no compiler): 13 cases, among them "61-real;120-real;89-real" ->
  "120a-real" and "75-real;86-real;89-real;120-real;120-virtual" -> "120a-real;120a-virtual".
- Configure check on a CUDA 12.8 box, CMAKE_CUDA_ARCHITECTURES="61-real;120-real;89-real", no STRATA_INK_CUDA_ARCHS: the FP4 file's gencode was
  compute_120 before and is compute_120a after; ink_cuda_backend.cu keeps compute_61 / 89 / 120.
2026-11-23 15:50:49 +01:00
..