-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not serialize-deserialize module before calling aie2xclbin (#685)
This PR does a few things 1) Before pulling mlir-aie into iree-amd-aie, it was required to serialize-deserialize IR, to call the aie2xclbin program. But we now use aie2xclbin as a library function, not a shell out. So no serialization-deserialization needed. 2) This PR moves dma-to-npu closer to lower-to-aie pass. I think we'd eventually like to change the lowering of npu instructions from ``` amdaie dialect -> aie dialect -> npu ``` to ``` amdaie dialect -> npu ``` , because the amdaie and aie dialects are very similar and this indirection doesn't provide us with anything afaict. Making that change is currently not possible (dma-to-npu must currently run after stateful transform pass), this change is a step in that direction though Test changes: I removed some CHECKs for ` aiex.runtime_sequence` in tests/samples, because that's now sucked into the LX instructions (sequence of integers). In my mind the tests in tests/samples are only useful to check that compilation doesn't error/crash, so IMO removing CHECK lines there is fine. 3) General clean-up, for example we don't need aiex-to-standard pass anymore.
- Loading branch information
Showing
23 changed files
with
204 additions
and
397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
compiler/plugins/target/AMD-AIE/aie/test/aiex_standard_lowering.mlir
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.