Skip to content

Commit

Permalink
Delete duplicated tests in iree/test/e2e/ (#5446)
Browse files Browse the repository at this point in the history
Also delete unnecessary flags in iree/test/e2e and iree/compiler/Dialect/HAL/Target/LLVM/test/smoketest.mlir

Part of #5442
  • Loading branch information
hanhanW authored Apr 19, 2021
1 parent 292d4d7 commit 1bd938c
Show file tree
Hide file tree
Showing 27 changed files with 10 additions and 460 deletions.
2 changes: 1 addition & 1 deletion iree/compiler/Dialect/HAL/Target/LLVM/test/smoketest.mlir
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: iree-opt -split-input-file -iree-hal-transformation-pipeline -iree-hal-target-backends=dylib-llvm-aot --iree-flow-dispatch-linalg-on-tensors -iree-codegen-llvm-experimental-linalg-on-tensors %s | IreeFileCheck %s
// RUN: iree-opt -split-input-file -iree-hal-transformation-pipeline -iree-hal-target-backends=dylib-llvm-aot %s | IreeFileCheck %s

#map = affine_map<(d0) -> (d0)>
flow.executable @add_dispatch_0 {
Expand Down
3 changes: 0 additions & 3 deletions iree/test/e2e/cuda_specific/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ iree_check_single_backend_test_suite(
srcs = [
"dot.mlir",
],
compiler_flags = [
"-iree-flow-dispatch-linalg-on-tensors",
],
driver = "cuda",
tags = [
# CUDA cuInit fails with sanitizer on.
Expand Down
2 changes: 0 additions & 2 deletions iree/test/e2e/cuda_specific/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ iree_check_single_backend_test_suite(
"cuda"
DRIVER
"cuda"
COMPILER_FLAGS
"-iree-flow-dispatch-linalg-on-tensors"
LABELS
"noasan"
"nomsan"
Expand Down
66 changes: 0 additions & 66 deletions iree/test/e2e/linalg_tensor_ops/BUILD

This file was deleted.

43 changes: 0 additions & 43 deletions iree/test/e2e/linalg_tensor_ops/CMakeLists.txt

This file was deleted.

90 changes: 0 additions & 90 deletions iree/test/e2e/linalg_tensor_ops/add.mlir

This file was deleted.

28 changes: 0 additions & 28 deletions iree/test/e2e/linalg_tensor_ops/matmul.mlir

This file was deleted.

25 changes: 0 additions & 25 deletions iree/test/e2e/models/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -62,28 +62,3 @@ iree_check_single_backend_test_suite(
driver = "vmla",
target_backend = "vmla",
)

iree_check_single_backend_test_suite(
name = "check_linalg_on_tensors_vulkan-spirv_vulkan",
srcs = CHECK_FRAMEWORK_TESTS,
compiler_flags = [
"-iree-flow-dispatch-linalg-on-tensors",
"-iree-flow-inline-constants-max-byte-length=2048",
"-iree-codegen-spirv-experimental-linalg-on-tensors",
"-iree-spirv-enable-vectorization",
],
driver = "vulkan",
target_backend = "vulkan-spirv",
)

iree_check_single_backend_test_suite(
name = "check_linalg_on_tensors_dylib-llvm-aot_dylib",
srcs = CHECK_FRAMEWORK_TESTS,
compiler_flags = [
"-iree-flow-dispatch-linalg-on-tensors",
"-iree-flow-inline-constants-max-byte-length=2048",
"-iree-codegen-llvm-experimental-linalg-on-tensors",
],
driver = "dylib",
target_backend = "dylib-llvm-aot",
)
33 changes: 0 additions & 33 deletions iree/test/e2e/models/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,37 +41,4 @@ iree_check_single_backend_test_suite(
"vmla"
)

iree_check_single_backend_test_suite(
NAME
check_linalg_on_tensors_vulkan-spirv_vulkan
SRCS
"bert_encoder_unrolled_fake_weights.mlir"
"mobilenetv2_fake_weights.mlir"
TARGET_BACKEND
"vulkan-spirv"
DRIVER
"vulkan"
COMPILER_FLAGS
"-iree-flow-dispatch-linalg-on-tensors"
"-iree-flow-inline-constants-max-byte-length=2048"
"-iree-codegen-spirv-experimental-linalg-on-tensors"
"-iree-spirv-enable-vectorization"
)

iree_check_single_backend_test_suite(
NAME
check_linalg_on_tensors_dylib-llvm-aot_dylib
SRCS
"bert_encoder_unrolled_fake_weights.mlir"
"mobilenetv2_fake_weights.mlir"
TARGET_BACKEND
"dylib-llvm-aot"
DRIVER
"dylib"
COMPILER_FLAGS
"-iree-flow-dispatch-linalg-on-tensors"
"-iree-flow-inline-constants-max-byte-length=2048"
"-iree-codegen-llvm-experimental-linalg-on-tensors"
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
2 changes: 0 additions & 2 deletions iree/test/e2e/models/edge_detection.mlir
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// RUN: iree-run-mlir -export-all -iree-hal-target-backends=vmla %s -function-input="1x128x128x1xf32" | IreeFileCheck %s
// RUN: [[ $IREE_LLVMAOT_DISABLE == 1 ]] || (iree-run-mlir -export-all -iree-hal-target-backends=dylib-llvm-aot %s -function-input="1x128x128x1xf32" | IreeFileCheck %s)
// RUN: [[ $IREE_VULKAN_DISABLE == 1 ]] || (iree-run-mlir -export-all -iree-hal-target-backends=vulkan-spirv %s -function-input="1x128x128x1xf32" | IreeFileCheck %s)
// RUN: [[ $IREE_LLVMAOT_DISABLE == 1 ]] || (iree-run-mlir -export-all -iree-hal-target-backends=dylib-llvm-aot %s -function-input="1x128x128x1xf32" -iree-flow-dispatch-linalg-on-tensors -iree-codegen-llvm-experimental-linalg-on-tensors | IreeFileCheck %s)
// RUN: [[ $IREE_VULKAN_DISABLE == 1 ]] || (iree-run-mlir -export-all -iree-hal-target-backends=vulkan-spirv %s -function-input="1x128x128x1xf32" -iree-flow-dispatch-linalg-on-tensors -iree-codegen-spirv-experimental-linalg-on-tensors | IreeFileCheck %s)

// Image edge detection module generated by iree/colab/edge_detection.ipynb.
//
Expand Down
2 changes: 0 additions & 2 deletions iree/test/e2e/models/fragment_000.mlir
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// RUN: iree-run-mlir -export-all -iree-hal-target-backends=vmla %s -function-input="f32=0" -function-input="5x1xf32=[1][-2][-3][4][-5]" -function-input="f32=1" -function-input="5x5xf32=[3.46499 -7.64389 -5.72249 5.98053 17.6892][2.9707 -6.20734 -4.25962 4.76055 13.8784][2.47641 -4.77079 -2.79675 3.54056 10.0675][1.98212 -3.33424 -1.33388 2.32058 6.25666][1.48783 -1.8977 0.12899 1.1006 2.4458]" -function-input="5xf32=0 0 0 0 0" | IreeFileCheck %s --implicit-check-not="[" --implicit-check-not="]"
// RUN: [[ $IREE_LLVMAOT_DISABLE == 1 ]] || (iree-run-mlir -export-all -iree-hal-target-backends=dylib-llvm-aot %s -function-input="f32=0" -function-input="5x1xf32=[1][-2][-3][4][-5]" -function-input="f32=1" -function-input="5x5xf32=[3.46499 -7.64389 -5.72249 5.98053 17.6892][2.9707 -6.20734 -4.25962 4.76055 13.8784][2.47641 -4.77079 -2.79675 3.54056 10.0675][1.98212 -3.33424 -1.33388 2.32058 6.25666][1.48783 -1.8977 0.12899 1.1006 2.4458]" -function-input="5xf32=0 0 0 0 0" | IreeFileCheck %s --implicit-check-not="[" --implicit-check-not="]")
// RUN: [[ $IREE_VULKAN_DISABLE == 1 ]] || (iree-run-mlir -export-all -iree-hal-target-backends=vulkan-spirv %s -function-input="f32=0" -function-input="5x1xf32=[1][-2][-3][4][-5]" -function-input="f32=1" -function-input="5x5xf32=[3.46499 -7.64389 -5.72249 5.98053 17.6892][2.9707 -6.20734 -4.25962 4.76055 13.8784][2.47641 -4.77079 -2.79675 3.54056 10.0675][1.98212 -3.33424 -1.33388 2.32058 6.25666][1.48783 -1.8977 0.12899 1.1006 2.4458]" -function-input="5xf32=0 0 0 0 0" | IreeFileCheck %s --implicit-check-not="[" --implicit-check-not="]")
// RUN: [[ $IREE_LLVMAOT_DISABLE == 1 ]] || (iree-run-mlir -export-all -iree-hal-target-backends=dylib-llvm-aot %s -function-input="f32=0" -function-input="5x1xf32=[1][-2][-3][4][-5]" -function-input="f32=1" -function-input="5x5xf32=[3.46499 -7.64389 -5.72249 5.98053 17.6892][2.9707 -6.20734 -4.25962 4.76055 13.8784][2.47641 -4.77079 -2.79675 3.54056 10.0675][1.98212 -3.33424 -1.33388 2.32058 6.25666][1.48783 -1.8977 0.12899 1.1006 2.4458]" -function-input="5xf32=0 0 0 0 0" -iree-flow-dispatch-linalg-on-tensors -iree-codegen-llvm-experimental-linalg-on-tensors | IreeFileCheck %s --implicit-check-not="[" --implicit-check-not="]")
// RUN: [[ $IREE_VULKAN_DISABLE == 1 ]] || (iree-run-mlir -export-all -iree-hal-target-backends=vulkan-spirv %s -function-input="f32=0" -function-input="5x1xf32=[1][-2][-3][4][-5]" -function-input="f32=1" -function-input="5x5xf32=[3.46499 -7.64389 -5.72249 5.98053 17.6892][2.9707 -6.20734 -4.25962 4.76055 13.8784][2.47641 -4.77079 -2.79675 3.54056 10.0675][1.98212 -3.33424 -1.33388 2.32058 6.25666][1.48783 -1.8977 0.12899 1.1006 2.4458]" -function-input="5xf32=0 0 0 0 0" -iree-flow-dispatch-linalg-on-tensors -iree-codegen-spirv-experimental-linalg-on-tensors | IreeFileCheck %s --implicit-check-not="[" --implicit-check-not="]")

// CHECK-LABEL: EXEC @main_entry_dispatch_3
func @main_entry_dispatch_3(
Expand Down
2 changes: 0 additions & 2 deletions iree/test/e2e/models/fullyconnected.mlir
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// RUN: iree-run-mlir -export-all %s -iree-hal-target-backends=vmla -function-input="1x5xf32=1,-2,-3,4,-5" -function-input="1x5x3x1xf32=15,14,13,12,11,10,9,8,7,6,5,4,3,2,1" | IreeFileCheck %s
// RUN: [[ $IREE_LLVMAOT_DISABLE == 1 ]] || (iree-run-mlir -export-all %s -iree-hal-target-backends=dylib-llvm-aot -function-input="1x5xf32=1,-2,-3,4,-5" -function-input="1x5x3x1xf32=15,14,13,12,11,10,9,8,7,6,5,4,3,2,1" | IreeFileCheck %s)
// RUN: [[ $IREE_VULKAN_DISABLE == 1 ]] || (iree-run-mlir -export-all %s -iree-hal-target-backends=vulkan-spirv -function-input="1x5xf32=1,-2,-3,4,-5" -function-input="1x5x3x1xf32=15,14,13,12,11,10,9,8,7,6,5,4,3,2,1" | IreeFileCheck %s)
// RUN: [[ $IREE_LLVMAOT_DISABLE == 1 ]] || (iree-run-mlir -export-all %s -iree-hal-target-backends=dylib-llvm-aot -iree-flow-dispatch-linalg-on-tensors -iree-codegen-llvm-experimental-linalg-on-tensors -function-input="1x5xf32=1,-2,-3,4,-5" -function-input="1x5x3x1xf32=15,14,13,12,11,10,9,8,7,6,5,4,3,2,1" | IreeFileCheck %s)
// RUN: [[ $IREE_VULKAN_DISABLE == 1 ]] || (iree-run-mlir -export-all %s -iree-hal-target-backends=vulkan-spirv -iree-flow-dispatch-linalg-on-tensors -iree-codegen-spirv-experimental-linalg-on-tensors -function-input="1x5xf32=1,-2,-3,4,-5" -function-input="1x5x3x1xf32=15,14,13,12,11,10,9,8,7,6,5,4,3,2,1" | IreeFileCheck %s)

// CHECK-LABEL: EXEC @main
func @main(%arg0: tensor<1x5xf32>, %arg1: tensor<1x5x3x1xf32>) -> tensor<5x1x5xf32>
Expand Down
2 changes: 0 additions & 2 deletions iree/test/e2e/models/mnist_fake_weights.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// RUN: iree-run-mlir -export-all -iree-hal-target-backends=vmla %s -function-input="1x28x28x1xf32" | IreeFileCheck %s
// RUN: [[ $IREE_LLVMAOT_DISABLE == 1 ]] || (iree-run-mlir -export-all -iree-hal-target-backends=dylib-llvm-aot %s -function-input="1x28x28x1xf32" | IreeFileCheck %s)
// RUN: [[ $IREE_VULKAN_DISABLE == 1 ]] || (iree-run-mlir -export-all -iree-hal-target-backends=vulkan-spirv %s -function-input="1x28x28x1xf32" | IreeFileCheck %s)
// RUN: [[ $IREE_LLVMAOT_DISABLE == 1 ]] || (iree-run-mlir -export-all -iree-hal-target-backends=dylib-llvm-aot %s -function-input="1x28x28x1xf32" -iree-flow-dispatch-linalg-on-tensors -iree-codegen-llvm-experimental-linalg-on-tensors | IreeFileCheck %s)
// RUN: [[ $IREE_VULKAN_DISABLE == 1 ]] || (iree-run-mlir -export-all -iree-hal-target-backends=vulkan-spirv %s -function-input="1x28x28x1xf32" -iree-flow-dispatch-linalg-on-tensors -iree-codegen-spirv-experimental-linalg-on-tensors | IreeFileCheck %s)

module {
flow.variable @"__iree_flow___sm_node17__model.layer-1.kernel" dense<1.000000e+00> : tensor<784x128xf32> attributes {noinline, sym_visibility = "private"}
Expand Down
2 changes: 0 additions & 2 deletions iree/test/e2e/models/unidirectional_lstm.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// RUN: iree-run-mlir %s -iree-hal-target-backends=vmla -function-input="1x5xf32=[0,1,0,3,4]" -function-input="1x5x2x2xf32=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]" | IreeFileCheck %s --implicit-check-not="[" --implicit-check-not="]"
// RUN: [[ $IREE_LLVMAOT_DISABLE == 1 ]] || (iree-run-mlir %s -iree-hal-target-backends=dylib-llvm-aot -function-input="1x5xf32=[0,1,0,3,4]" -function-input="1x5x2x2xf32=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]" | IreeFileCheck %s --implicit-check-not="[" --implicit-check-not="]")
// RUN: [[ $IREE_VULKAN_DISABLE == 1 ]] || (iree-run-mlir %s -iree-hal-target-backends=vulkan-spirv -function-input="1x5xf32=[0,1,0,3,4]" -function-input="1x5x2x2xf32=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]" | IreeFileCheck %s --implicit-check-not="[" --implicit-check-not="]")
// RUN: [[ $IREE_LLVMAOT_DISABLE == 1 ]] || (iree-run-mlir %s -iree-hal-target-backends=dylib-llvm-aot -function-input="1x5xf32=[0,1,0,3,4]" -function-input="1x5x2x2xf32=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]" -iree-flow-dispatch-linalg-on-tensors -iree-codegen-llvm-experimental-linalg-on-tensors | IreeFileCheck %s --implicit-check-not="[" --implicit-check-not="]")
// RUN: [[ $IREE_VULKAN_DISABLE == 1 ]] || (iree-run-mlir %s -iree-hal-target-backends=vulkan-spirv -function-input="1x5xf32=[0,1,0,3,4]" -function-input="1x5x2x2xf32=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]" -iree-flow-dispatch-linalg-on-tensors -iree-codegen-spirv-experimental-linalg-on-tensors | IreeFileCheck %s --implicit-check-not="[" --implicit-check-not="]")

// Exported via the XLA HLO Importer
// The resulting MLIR was modified by hand by changing all large constants to be
Expand Down
Loading

0 comments on commit 1bd938c

Please sign in to comment.