Commit 112b88d
authored
Particularly, this PR implements layout conversion when a CGA contains
more than one CTA. In such cases, a Triton tensor is split into multiple
blocks, with each block being handled by a CTA.
```
block0 | block1
----------------
block2 | block3
```
If data transfer is required from block0 to block3, this PR cannot
handle it, and we use `isCrossCTAConversion` to check this condition.
1 parent b24fa65 commit 112b88d
File tree
5 files changed
+49
-21
lines changed- include/triton
- Dialect/TritonGPU/IR
- Tools
- lib
- Conversion/TritonGPUToLLVM
- Dialect/TritonGPU/IR
- Tools
5 files changed
+49
-21
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
51 | 60 | | |
52 | 61 | | |
53 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
| |||
Lines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
371 | 370 | | |
372 | 371 | | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | 372 | | |
377 | 373 | | |
378 | 374 | | |
| |||
419 | 415 | | |
420 | 416 | | |
421 | 417 | | |
422 | | - | |
423 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
424 | 423 | | |
425 | 424 | | |
426 | 425 | | |
| |||
437 | 436 | | |
438 | 437 | | |
439 | 438 | | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
445 | 444 | | |
446 | 445 | | |
447 | 446 | | |
| |||
459 | 458 | | |
460 | 459 | | |
461 | 460 | | |
462 | | - | |
| 461 | + | |
| 462 | + | |
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
| 466 | + | |
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
872 | 883 | | |
873 | 884 | | |
874 | 885 | | |
| |||
925 | 936 | | |
926 | 937 | | |
927 | 938 | | |
928 | | - | |
929 | | - | |
| 939 | + | |
| 940 | + | |
930 | 941 | | |
931 | | - | |
932 | | - | |
| 942 | + | |
| 943 | + | |
933 | 944 | | |
934 | 945 | | |
935 | 946 | | |
| |||
1020 | 1031 | | |
1021 | 1032 | | |
1022 | 1033 | | |
| 1034 | + | |
1023 | 1035 | | |
1024 | 1036 | | |
1025 | 1037 | | |
| |||
1039 | 1051 | | |
1040 | 1052 | | |
1041 | 1053 | | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1042 | 1060 | | |
1043 | | - | |
1044 | | - | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
1045 | 1064 | | |
1046 | 1065 | | |
1047 | 1066 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | | - | |
| 643 | + | |
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
| |||
0 commit comments