[Mlir-commits] [mlir] 5c6d8a7 - [MLIR] Only substitute `mlir-spirv-cpu-runner` tool if enabled
Christian Sigg
llvmlistbot at llvm.org
Tue Sep 13 06:42:27 PDT 2022
Author: Christian Sigg
Date: 2022-09-13T15:42:14+02:00
New Revision: 5c6d8a74e1b090f37cf3ddb13be86ac1dcb4beac
URL: https://github.com/llvm/llvm-project/commit/5c6d8a74e1b090f37cf3ddb13be86ac1dcb4beac
DIFF: https://github.com/llvm/llvm-project/commit/5c6d8a74e1b090f37cf3ddb13be86ac1dcb4beac.diff
LOG: [MLIR] Only substitute `mlir-spirv-cpu-runner` tool if enabled
This tool is only used if `MLIR_ENABLE_SPIRV_CPU_RUNNER` was specified and should only be substituted in that case. Alternatively, we could make the substitution optional.
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D133752
Added:
Modified:
mlir/test/lit.cfg.py
Removed:
################################################################################
diff --git a/mlir/test/lit.cfg.py b/mlir/test/lit.cfg.py
index 9c530d8e7cbeb..0b9452946a454 100644
--- a/mlir/test/lit.cfg.py
+++ b/mlir/test/lit.cfg.py
@@ -66,11 +66,13 @@
'mlir-cpu-runner',
'mlir-linalg-ods-yaml-gen',
'mlir-reduce',
- 'mlir-spirv-cpu-runner',
'mlir-pdll',
'not',
]
+if config.enable_spirv_cpu_runner:
+ tools.extend(['mlir-spirv-cpu-runner'])
+
# The following tools are optional
tools.extend([
ToolSubst('toy-ch1', unresolved='ignore'),
More information about the Mlir-commits
mailing list