nod-ai / iree-amd-aie

IREE plugin repository for the AMD AIE accelerator
Apache License 2.0
46 stars 23 forks source link

Add peeled matmul to objectfifo sample #367

Closed jtuyls closed 1 month ago

jtuyls commented 1 month ago

Example of peeled matmul lowering to AIE objectfifo. This can be temporary until the pipeline is set up and an e2e example can be created. In the meantime, this will ensure that the initial example stays functional.

Abhishek-Varma commented 1 month ago

It's okay to check in this for now. But we'd like to have a similar test with the IR from pack-peel pipeline. @Abhishek-Varma can you first try to use the same iree-opt flags on top of this IR https://gist.github.com/yzhang93/62f142bc71c7a9c247f98c71b2ccee4c?

Hi @yzhang93 - This is an invalid IR - this doesn't take into account the thread ID mapping.

I'll continue looking at the IR journey via the current Pack-Peel pipeline (with the current known missing pieces) and see with the same flags (as well as the C++ pipeline).

yzhang93 commented 1 month ago

Hi @yzhang93 - This is an invalid IR - this doesn't take into account the thread ID mapping.

Yes, this was generated before that fixing PR, you just need to manually modify the corresponding block ID to thread ID. The other parts should be the same.