[Mlir-commits] [mlir] [mlir][SVE] Add e2e for 1D depthwise WC convolution (PR #85225)

Benjamin Maxwell llvmlistbot at llvm.org
Sat Mar 23 09:56:04 PDT 2024


================
@@ -0,0 +1,60 @@
+// DEFINE: %{compile} =  mlir-opt %s \
+// DEFINE:    -transform-interpreter -test-transform-dialect-erase-schedule \
+// DEFINE:    -one-shot-bufferize="bufferize-function-boundaries" -lower-vector-mask -cse -canonicalize -convert-vector-to-scf -arm-sve-legalize-vector-storage \
+// DEFINE:    -convert-vector-to-llvm="enable-arm-sve" -test-lower-to-llvm -o %t
+// DEFINE: %{entry_point} = conv
+// DEFINE: %{run} = %mcr_aarch64_cmd %t -e %{entry_point} -entry-point-result=void --march=aarch64 --mattr="+sve"\
+// DEFINE:    -shared-libs=%mlir_runner_utils,%mlir_c_runner_utils
+
+// RUN: %{compile} | %{run} | FileCheck %s
----------------
MacDue wrote:

Here you've both using input + output files (via `-o`), but also piping things. This seems to work when `%mcr_aarch64_cmd` is an emulator, but if you replace it with `mlir-cpu-runner` (on SVE hardware) the test fails on the first run (but works on the second run). 

https://github.com/llvm/llvm-project/pull/85225


More information about the Mlir-commits mailing list