nod-ai / iree-amd-aie

IREE plugin repository for the AMD AIE accelerator
Apache License 2.0
69 stars 30 forks source link

[CI] Fix for bug in `aie-compilation-flags` option #917

Closed newling closed 10 hours ago

newling commented 15 hours ago

Fix for untested use of run.py

User passes in the following flag to run.py

 --aie-compilation-flags AIE_COMPILATION_FLAGS
                        Additional flags to pass to the AIE compiler, for all tests. Example, to print the IR between passes during compilation you might have: --aie_compilation_flags="--mlir-print-ir-before-all --mlir-print-ir-module-scope --aie2xclbin-print-ir-before-all --aie2xclbin-print-ir-module-scope"'

The change in https://github.com/nod-ai/iree-amd-aie/pull/911 introduced a bug, where the flags option (string) is split character-by-character. This PR fixes it is that it splits it whitespace.