Files
clang-p2996/mlir/test/Integration/Dialect/Vector/CPU/AMX/lit.local.cfg
Vladislav Vinogradov 505afd1e64 [mlir] Clean up boolean flags usage in LIT tests
* Call `llvm_canonicalize_cmake_booleans` for all CMake options,
  which are propagated to `lit.local.cfg` files.
* Use Python native boolean values instead of strings for such options.

This fixes the cases, when CMake variables have values other than `ON` (like `TRUE`).
This might happen due to IDE integration or due to CMake preset usage.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D110073
2021-10-12 11:44:48 +03:00

16 lines
445 B
INI

import sys
# AMX tests must be enabled via build flag.
if not config.mlir_run_amx_tests:
config.unsupported = True
# No JIT on win32.
if sys.platform == 'win32':
config.unsupported = True
if config.intel_sde_executable:
# Run test in emulator (Intel SDE): AMX needs Sapphire Rapids CPU.
config.substitutions.append(('%lli', config.intel_sde_executable + ' -spr -- lli'))
else:
config.substitutions.append(('%lli', 'lli'))