-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add e2e and lit tests for ukernel+dcg mix #517
Conversation
This fix should get the example to work: Xilinx/mlir-air#656. |
Thanks @erwei-xilinx , the e2e matmul works with mixed ukernel and dcg now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you rebase your PR and check if it passes ci?
17c673a
to
0a21c52
Compare
return %matmul_add : tensor<?x?x?x?xbf16> | ||
} | ||
// CHECK: func @zero_fill_matmul_elmwise | ||
// CHECK: iree_codegen.ukernel.generic "zero_bf16" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would include // CHECK-NOT: linalg.fill
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these empty lines.
#The flag '--iree-amdaie-path-to-ukernels' currently does not work, | ||
#see for example https: // github.com/nod-ai/iree-amd-aie/issues/340 | ||
#Therefore we need to manually copy(or link) the mm.o file to the | ||
#directory in which iree - compile is run.iree - compile is run in the | ||
#output directory.Create the softlink only if it is has not already | ||
#been created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Please add/remove spaces for this comment.
Question: Will this issue be fixed next?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't planning on looking at it next
compilation_flags="${compilation_flags} --iree-amdaie-enable-ukernels=all" | ||
|
||
# The flag '--iree-amdaie-path-to-ukernels' currently does not work, | ||
# see for example https://github.com/nod-ai/iree-amd-aie/issues/340 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a full stop at the end of this line.
# The flag '--iree-amdaie-path-to-ukernels' currently does not work, | ||
# see for example https://github.com/nod-ai/iree-amd-aie/issues/340 | ||
# Therefore we need to manually copy (or link) the mm.o file to the | ||
# directory in which iree - compile is run.iree - compile is run in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still see some format issue.
-> iree-comple is run. iree-compile ...
a3def8d
to
c7c5464
Compare
This PR adds a test where we use a microkernel for a matmul, and directly generated code for a subsequent elementwise operation -- ie we mix ukernel with direct code generation.