[all-commits] [llvm/llvm-project] 5fa893: [mlir] add support for verification in integration...

Tobias Gysi via All-commits all-commits at lists.llvm.org
Tue Feb 9 08:56:04 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5fa893cc383bd5737cdba631c5ff2054ed08380a
      https://github.com/llvm/llvm-project/commit/5fa893cc383bd5737cdba631c5ff2054ed08380a
  Author: Tobias Gysi <tobias.gysi at gmail.com>
  Date:   2021-02-09 (Tue, 09 Feb 2021)

  Changed paths:
    M mlir/include/mlir/ExecutionEngine/RunnerUtils.h
    M mlir/integration_test/Dialect/Linalg/CPU/benchmark_matmul.mlir
    M mlir/integration_test/Dialect/Linalg/CPU/benchmark_matmul_column_major.mlir
    M mlir/integration_test/Dialect/Linalg/CPU/benchmark_matmul_column_major_as_row_major.mlir
    M mlir/integration_test/Dialect/Linalg/CPU/benchmark_matmul_i8_i8_i32.mlir
    M mlir/lib/ExecutionEngine/RunnerUtils.cpp

  Log Message:
  -----------
  [mlir] add support for verification in integration tests

The patch extends the runner utils by verification methods that compare two memrefs. The methods compare the content of the two memrefs and print success if the data is identical up to a small numerical error. The methods are meant to simplify the development of integration tests that for example compare optimized and unoptimized code paths (cf. the updates to the linalg matmul integration tests).

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D96326




More information about the All-commits mailing list