Commit ed5e2fe
authored
[FIX][TIRx][CUDA] Support SM100 weight-stationary B collectors (#20329)
The SM100 `tcgen05.mma.ws` SS/TS entries omit the collector-B modifier
slot, preventing callers from expressing weight-stationary B reuse
through the PTX namespace. Add the existing optional B0–B3
fill/use/lastuse/discard domain to both entries, preserving calls that
omit the qualifier.
Also reject modifier-domain and operand-count mismatches during code
generation, before stale table/codegen layouts can emit malformed CUDA
helpers. Add dispatch and parser round-trip regressions, SM100
certification for all WS variants, and stale-layout diagnostics. Make
the test source helper accept an explicit target so the existing SM107
collector test compiles at its required architecture.
Validation with CUDA 13.4 NVCC/NVRTC and a matching worktree FFI:
- PTX dialect, conversion, and address suites: 179 non-skipped cases
passed across the full run and targeted reruns.
- Full-table NVCC/ptxas certification: **32/32 shards passed**,
including predicated helpers and address-offset samples at their
declared architectures.
- Regenerated IDE stubs: no diff needed; the tokens already exist in the
ti16 families.
- Changed-file pre-commit hooks and `git diff --check` passed.
Closes #20328.1 parent 7fca2e1 commit ed5e2fe
3 files changed
Lines changed: 95 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
189 | 195 | | |
190 | 196 | | |
191 | 197 | | |
| |||
199 | 205 | | |
200 | 206 | | |
201 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
202 | 214 | | |
203 | 215 | | |
204 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11529 | 11529 | | |
11530 | 11530 | | |
11531 | 11531 | | |
| 11532 | + | |
11532 | 11533 | | |
11533 | 11534 | | |
11534 | 11535 | | |
| |||
11538 | 11539 | | |
11539 | 11540 | | |
11540 | 11541 | | |
| 11542 | + | |
11541 | 11543 | | |
11542 | 11544 | | |
11543 | 11545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
2340 | 2340 | | |
2341 | 2341 | | |
2342 | 2342 | | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
2343 | 2417 | | |
2344 | 2418 | | |
2345 | 2419 | | |
| |||
2405 | 2479 | | |
2406 | 2480 | | |
2407 | 2481 | | |
2408 | | - | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
2409 | 2485 | | |
2410 | 2486 | | |
2411 | 2487 | | |
| |||
4144 | 4220 | | |
4145 | 4221 | | |
4146 | 4222 | | |
4147 | | - | |
| 4223 | + | |
4148 | 4224 | | |
4149 | 4225 | | |
4150 | 4226 | | |
| |||
0 commit comments