Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Revert "Add back barrier after asserts (#5043)"" #2657

Merged
merged 3 commits into from
Nov 11, 2024

Conversation

anmyachev
Copy link
Contributor

@anmyachev anmyachev commented Nov 8, 2024

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).

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 <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
@anmyachev
Copy link
Contributor Author

@victor-eds thanks for review!

@anmyachev anmyachev merged commit 26781e4 into main Nov 11, 2024
4 checks passed
@anmyachev anmyachev deleted the amyachev/issue2644 branch November 11, 2024 14:45
alexbaden pushed a commit that referenced this pull request Nov 13, 2024
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 <anatoly.myachev@intel.com>
(cherry picked from commit 26781e4)
@anmyachev anmyachev restored the amyachev/issue2644 branch November 13, 2024 11: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.

Reland upstream commit 92a4fad
2 participants