Skip to content
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

How to use the performance modeling tool air-runner? #904

Open
Albresky opened this issue Feb 20, 2025 · 1 comment
Open

How to use the performance modeling tool air-runner? #904

Albresky opened this issue Feb 20, 2025 · 1 comment

Comments

@Albresky
Copy link

I've successfully built the mlir-aie, mlir-air, xaienginev2, and other related infrastructures, and the test example vector_matrix_multiplication is also built as expected. Now, I am looking for a tool to simulate this program without an on board execution. Is air-runner the right tool for this(Is this tool used to validate air disigned by user)?

And, I've found the documentation page and the manual for air-runner by using the -h option, but that document is quite vague and the manual info is too detailed. I would appreciate it if some examples could be provided to demonstrate how to use this tool in a real project.

@erwei-xilinx
Copy link
Collaborator

Hi @Albresky, air-runner isn't expected to be used to validate an air design. It is expected to simulate the execution of a design on a hypothetical spatial platform (which you could customize in the arch.json passed in as an argument). air-runner can generate a simulated execution trace, which details the parallelizm theoretically achievable by your design if executed on the specified architecture.

Here is one matmul example that was simulated by the air-runner: https://github.com/Xilinx/mlir-air/blob/main/mlir/test/Util/Runner/cost_function/mac_bf16.mlir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants