Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error message for InlineExecutables with unsupported variants. (#…
…14593) Fixes #14587 (cc @dcaballe ). `--iree-execution-model=inline-static` only works with `--iree-hal-target-backends=vmvx-inline`. It was crashing when other backends were used, so this adds a check and error log. Sample logs: ``` D:\dev\projects\iree (inline-error-message) λ ..\iree-build\tools\iree-compile.exe -iree-input-type=stablehlo --iree-hal-target-backends=llvm-cpu --iree-hal-target-backends=llvm-cpu --iree-llvmcpu-target-triple=x86_64-unknown-linux-gnu --iree-execution-model=inline-static ./tests/e2e/stablehlo_ops/add.mlir -o ../iree-tmp/add.vmfb ./tests/e2e/stablehlo_ops/add.mlir:0:0: error: InlineStatic execution model is not compatible with hal target 'llvm-cpu' ./tests/e2e/stablehlo_ops/add.mlir:0:0: note: see current operation: "builtin.module"() ({ ... ```
- Loading branch information