Skip to content

cuda: nvfp4_experts32 uses common/cp_async.cuh's non-caching loads (fixes red main) - #2085

Merged
ashhart merged 1 commit into
mainfrom
lead/fixred-nvfp4-b32-loads
Nov 4, 2026
Merged

ashhart merged 1 commit into
mainfrom
lead/fixred-nvfp4-b32-loads

Conversation

@ashhart

@ashhart ashhart commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Main is red at 785da95: tools/zig/cuda_common_check.py finds three local ld.global.nc.L1 copies in zig/kernels/cuda/nvfp4_experts32.cu, added by #2041. The rule allows none outside common/.

This drops the file's local ld_nc, ld_nc2 and ld_nc1 and takes tf_common::ld_nc, ld_nc2 and ld_nc32 from common/cp_async.cuh instead. The inline asm is the same, so the code is unchanged: on sm_121 the kernel's SASS is identical to main's (42,779 lines, cmp equal). cuda_common_check.py now reports 0 violations.

@ashhart
ashhart merged commit 85b34e9 into main Nov 4, 2026
7 checks passed
@ashhart
ashhart deleted the lead/fixred-nvfp4-b32-loads branch November 10, 2026 16:34
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.

1 participant