Commit 4646456
Siyuan Feng
[Unity] Support simple dynamic-shape-aware fusion
This PR adds support for simple dynamic-shape-aware fusion, which is the first step towards supporting dynamic shapes. The main changes are as follows:
- Fix FuncStructInfo in well-formed checks
- Renew symbolic var defs in fuse_ops to prevent malformed functions1 parent 559fac7 commit 4646456
File tree
6 files changed
+105
-5
lines changed- 3rdparty
- src/relax
- analysis
- ir
- transform
- tests/python/relax
6 files changed
+105
-5
lines changed- docs/annotated.html+1-1
- docs/default__mma__core__simt_8h_source.html+1-1
- docs/hierarchy.html+1-1
- docs/namespacecutlass_1_1transform.html+1-1
- docs/pitch__linear__thread__map_8h.html+1-1
- docs/pitch__linear__thread__map_8h_source.html+1-1
- docs/structcutlass_1_1transform_1_1TransposePitchLinearThreadMap2DThreadTile.html+1-1
- examples/41_fused_multi_head_attention/attention_scaling_coefs_updater.h+152-17
- examples/41_fused_multi_head_attention/debug_utils.h+7-46
- examples/41_fused_multi_head_attention/default_fmha_grouped.h+6-6
- examples/41_fused_multi_head_attention/epilogue_pipelined.h
- examples/41_fused_multi_head_attention/epilogue_rescale_output.h
- examples/41_fused_multi_head_attention/epilogue_thread_apply_logsumexp.h
- examples/41_fused_multi_head_attention/find_default_mma.h-2
- examples/41_fused_multi_head_attention/fmha_grouped.h+11-132
- examples/41_fused_multi_head_attention/fused_multihead_attention_fixed_seqlen.cu+2-7
- examples/41_fused_multi_head_attention/kernel_forward.h+52-437
- examples/41_fused_multi_head_attention/mma_from_smem.h+23-263
- examples/41_fused_multi_head_attention/transform/tile_smem_loader.h-88
- include/cutlass/gemm/device/base_grouped.h+1-1
- include/cutlass/gemm/kernel/gemm_universal_streamk.h+126-52
- include/cutlass/gemm/threadblock/threadblock_swizzle_streamk.h+9-2
- include/cutlass/transform/pitch_linear_thread_map.h+1-1
- test/unit/common/cutlass_unit_test.h+1-1
- tools/library/scripts/generator.py+16-36
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
405 | 417 | | |
406 | 418 | | |
407 | 419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| 755 | + | |
755 | 756 | | |
756 | 757 | | |
757 | 758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
344 | 345 | | |
345 | 346 | | |
346 | 347 | | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
347 | 384 | | |
348 | 385 | | |
349 | 386 | | |
| |||
466 | 503 | | |
467 | 504 | | |
468 | 505 | | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
473 | 510 | | |
474 | 511 | | |
475 | 512 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
523 | 536 | | |
524 | 537 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1254 | 1254 | | |
1255 | 1255 | | |
1256 | 1256 | | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
1257 | 1294 | | |
1258 | 1295 | | |
0 commit comments