Commit 2ffef01
Closes #2644
The error (more details:
#2644 (comment))
seems to be that the operation is incorrectly inserted into the block.
My best guess is that we need to explicitly insert a barrier at the
beginning of the `thenBlock`. However I don't know the exact reason why
this code works for nvidia (maybe because of the different number of
instructions that initially replace `"gpu.barrier"() : () -> ()` however
I'm not sure).
```bash
python: /home/runner/work/triton/triton/llvm-project/llvm/include/llvm/ADT/ilist_iterator.h:168: llvm::ilist_iterator::reference llvm::ilist_iterator<llvm::ilist_detail::node_options<mlir::Operation, true, false, void, false, void>, false, false>::operator*() const [OptionsT = llvm::ilist_detail::node_options<mlir::Operation, true, false, void, false, void>, IsReverse = false, IsConst = false]: Assertion `!NodePtr->isKnownSentinel()' failed.
Aborted (core dumped)
```
---------
Signed-off-by: Anatoly Myachev <[email protected]>
(cherry picked from commit 26781e4)
1 parent 85682e4 commit 2ffef01
File tree
3 files changed
+11
-6
lines changed- lib/Conversion/TritonGPUToLLVM
- python/triton/language
- test/Conversion
3 files changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
45 | | - | |
46 | | - | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| |||
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
| 88 | + | |
82 | 89 | | |
83 | 90 | | |
84 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1729 | 1729 | | |
1730 | 1730 | | |
1731 | 1731 | | |
1732 | | - | |
1733 | | - | |
1734 | | - | |
1735 | | - | |
1736 | 1732 | | |
1737 | 1733 | | |
1738 | 1734 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1842 | 1842 | | |
1843 | 1843 | | |
1844 | 1844 | | |
| 1845 | + | |
| 1846 | + | |
1845 | 1847 | | |
1846 | 1848 | | |
1847 | 1849 | | |
| |||
0 commit comments