Closed hunhoffe closed 2 weeks ago
I'm happy to make a PR for this, if others think this is a reasonable change. If there is some history behind the current format that needs to be taken into account, I'm happy to hear it!
There is no history other than the simplest thing was implemented. Any improvements are welcome!
Great! Closing because I've created a PR for consideration: https://github.com/Xilinx/mlir-air/pull/634
I was trying to use the
compile()
andload()
methods ofXRTBackend
when I was doing some debugging recently. I realized theload()
method takes amodule: air.ir.Module
as an argument which is then never used.This is confusing.
The abstract base class (
AirBackend
) is flexible, because we can specify a uniqueCompiledArtifact
forXRTBackend
. I think this confusion would be fixed if theCompiledArgument
for theXRTBackend
were something like (in pseudo code):e.g., the compiled artifacts are a pair of files (or file paths) pointing to the xclbin and instruction file.
I'm happy to make a PR for this, if others think this is a reasonable change. If there is some history behind the current format that needs to be taken into account, I'm happy to hear it!