-
Notifications
You must be signed in to change notification settings - Fork 321
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
An issue in ConvertKrnlToAffine Pass used in PR#2756 #2773
Comments
@chentong319 Do you have any suggestions to solve this issue? @AlexandreEichenberger if you have additional suggestions, please let me know. |
This sample works when I add
|
A quick answer is that Krnl.RegionOp has to be used for nested krnl.loop. I will schedule a discussion meeting after I spend sometime on this. |
@chentong319 Thanks for your comments.
|
This issue was observed when applying
--convert-krnl-to-affine
to generated KrnlIR in PR #2756 . In the PR, following kinds of KrnlIR are generated, and lowered to affine by using--convert-krnl-to-affine
, but I got an error in some cases.Example to reproduce the error:
Command : onnx-mlir-opt --convert-krnl-to-affine issue-ng.mlir.txt
This file includes single MatMulOp in ForkOp and the results of MatMulOp is used in AddOp.
Other observations:
No error: When removing the AddOp after ParallelOp, the error disappeared. (file: issue-ok.mlir.txt)
No error: When comments out
scf.if
, the error disappeared (file: issue-ok2.mlir.txt)Error: Comment out
krnl.parallel
, the error still appeared.The text was updated successfully, but these errors were encountered: