[Mlir-commits] [mlir] 64466b7 - [mlir][test] Add emulator to the mlir-cpu-runner invocation
Andrzej Warzynski
llvmlistbot at llvm.org
Thu Jul 20 12:09:08 PDT 2023
Author: Andrzej Warzynski
Date: 2023-07-20T19:08:23Z
New Revision: 64466b777bec33f5830c08bacf07b2e30c0ae4a2
URL: https://github.com/llvm/llvm-project/commit/64466b777bec33f5830c08bacf07b2e30c0ae4a2
DIFF: https://github.com/llvm/llvm-project/commit/64466b777bec33f5830c08bacf07b2e30c0ae4a2.diff
LOG: [mlir][test] Add emulator to the mlir-cpu-runner invocation
In https://reviews.llvm.org/D146917, MLIR's LIT configuration was
updated to allow us to use `mlir-cpu-runner` to run Arm SVE integration
tests. That update broke the following buildbot that doesn't support
SVE:
https://lab.llvm.org/buildbot/#/builders/179/builds/6704
While that bot doesn't support SVE, it can run SVE tests under
emulation. This patch makes sure that whenever an Arm emulator is set
(via `RM_EMULATOR_EXECUTABLE` CMake variable), it is used to run both
`lli` _and_ `mlir-cpu-runner`.
I am sending this without a review as it's a rather trivial change and I
want to quickly fix the spurious bot failure.
Added:
Modified:
mlir/test/Integration/lit.local.cfg
Removed:
################################################################################
diff --git a/mlir/test/Integration/lit.local.cfg b/mlir/test/Integration/lit.local.cfg
index 034e16e3bbb22b..12429d412cd45e 100644
--- a/mlir/test/Integration/lit.local.cfg
+++ b/mlir/test/Integration/lit.local.cfg
@@ -40,11 +40,13 @@ def configure_aarch64_lli_and_mcr_cmd():
emulation_cmd = (
f"{config.arm_emulator_executable} {config.arm_emulator_options}"
)
- lli_cmd = f"{emulation_cmd} {lli_cmd}"
if config.arm_emulator_mlir_cpu_runner_executable:
mcr_cmd = config.arm_emulator_mlir_cpu_runner_executable
+ lli_cmd = f"{emulation_cmd} {lli_cmd}"
+ mcr_cmd = f"{emulation_cmd} {mcr_cmd}"
+
return (lli_cmd, mcr_cmd)
More information about the Mlir-commits
mailing list