Xilinx / mlir-air

MIT License
71 stars 26 forks source link

External Function Call and Passthrough Examples #655

Closed hunhoffe closed 1 week ago

hunhoffe commented 1 week ago

The most important contribution of this PR is to add an example of calling an external function in the mlir-air Python bindings. This is implemented in the programming_examples/passthrough/passthrough_kernel example. Small changes to HerdOp were necessary to support this, as well as the addition of some helper functions similar to those in mlir-aie.

The documentation for the passthrough example is mostly taken from mlir-aie. For completeness, I also include examples doing data passthrough with data movement with DMAs and channels.