Skip to content

Commit

Permalink
Only exclude e2e_matmul_mmt4d_i8_small on RISC-V. (iree-org#12764)
Browse files Browse the repository at this point in the history
The test only failed on RISC-V. We should not disable it for all the platforms.

iree-org#12703
  • Loading branch information
hanhanW authored Mar 27, 2023
1 parent 53eeefd commit d1e7ef8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
5 changes: 5 additions & 0 deletions build_tools/cmake/test_riscv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ if [[ "${RISCV_PLATFORM}-${RISCV_ARCH}" == "linux-riscv_32" ]]; then
)
fi

test_exclude_args+=(
# TODO(#12703): Enable the test.
"iree/tests/e2e/matmul/e2e_matmul_mmt4d_i8_small_llvm-cpu_local-task"
)

tests_label_exclude_regex="($(IFS="|" ; echo "${label_exclude_args[*]}"))"
tests_exclude_regex="($(IFS="|" ; echo "${test_exclude_args[*]}"))"
test_ctest_args=(
Expand Down
3 changes: 1 addition & 2 deletions tests/e2e/matmul/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ py_binary(
] if lhs_rhs_type == "i8" else []),
trace_runner = "//tools:iree-e2e-matmul-test",
) for lhs_rhs_type in [
# TODO: https://github.com/openxla/iree/issues/12703
# "i8",
"i8",
"f32",
]]

Expand Down
22 changes: 22 additions & 0 deletions tests/e2e/matmul/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,28 @@ iree_generated_trace_runner_test(
"local-task"
)

iree_generated_trace_runner_test(
NAME
e2e_matmul_mmt4d_i8_small
GENERATOR
"generate_e2e_matmul_tests.py"
GENERATOR_ARGS
"--lhs_rhs_type=i8"
"--shapes=small"
TRACE_RUNNER
iree-e2e-matmul-test
TARGET_BACKENDS
"llvm-cpu"
DRIVERS
"local-task"
COMPILER_FLAGS
"--iree-flow-enable-data-tiling"
TARGET_CPU_FEATURES_VARIANTS
"default"
"arm_64:+dotprod"
"arm_64:+i8mm"
)

iree_generated_trace_runner_test(
NAME
e2e_matmul_mmt4d_f32_small
Expand Down

0 comments on commit d1e7ef8

Please sign in to comment.