From bfb4e771d22880e679fba0694abed19657280ad2 Mon Sep 17 00:00:00 2001 From: Max Dawkins Date: Thu, 26 Sep 2024 12:36:11 -0500 Subject: [PATCH] [GPU][DT] Add e2e matmul tests for GPU data tiling Signed-off-by: Max Dawkins --- tests/e2e/matmul/CMakeLists.txt | 91 +++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/tests/e2e/matmul/CMakeLists.txt b/tests/e2e/matmul/CMakeLists.txt index 03dfdf362343e..58d0e168bbf03 100644 --- a/tests/e2e/matmul/CMakeLists.txt +++ b/tests/e2e/matmul/CMakeLists.txt @@ -2436,6 +2436,97 @@ iree_generated_e2e_runner_test( "noubsan" "requires-gpu-cdna3" ) + +iree_generated_e2e_runner_test( + NAME + e2e_matmul_rocm_f16_large_cdna3_mfma_data_tiled + TEST_TYPE + matmul + GENERATOR + "generate_e2e_matmul_tests.py" + GENERATOR_ARGS + "--lhs_rhs_type=f16" + "--acc_type=f32" + "--shapes=gpu_large_aligned" + TEST_RUNNER + iree_tools_testing_e2e_iree-e2e-matmul-test + TARGET_BACKENDS + "rocm" + DRIVERS + "hip" + COMPILER_FLAGS + ${IREE_HIP_TEST_COMPILER_FLAGS} + "--iree-opt-data-tiling" + "--iree-global-opt-experimental-rocm-data-tiling" + "--iree-global-opt-enable-early-materialization=true" + LABELS + "noasan" + "nomsan" + "notsan" + "noubsan" + "requires-gpu-cdna3" +) + +iree_generated_e2e_runner_test( + NAME + e2e_matmul_rocm_i8_large_cdna3_mfma_data_tiled + TEST_TYPE + matmul + GENERATOR + "generate_e2e_matmul_tests.py" + GENERATOR_ARGS + "--lhs_rhs_type=i8" + "--acc_type=i32" + "--shapes=gpu_large_aligned" + TEST_RUNNER + iree_tools_testing_e2e_iree-e2e-matmul-test + TARGET_BACKENDS + "rocm" + DRIVERS + "hip" + COMPILER_FLAGS + ${IREE_HIP_TEST_COMPILER_FLAGS} + "--iree-opt-data-tiling" + "--iree-global-opt-experimental-rocm-data-tiling" + "--iree-global-opt-enable-early-materialization=true" + LABELS + "noasan" + "nomsan" + "notsan" + "noubsan" + "requires-gpu-cdna3" +) + +iree_generated_e2e_runner_test( + NAME + e2e_matmul_rocm_f32_large_cdna3_mfma_data_tiled + TEST_TYPE + matmul + GENERATOR + "generate_e2e_matmul_tests.py" + GENERATOR_ARGS + "--lhs_rhs_type=f32" + "--acc_type=f32" + "--shapes=gpu_large_aligned" + TEST_RUNNER + iree_tools_testing_e2e_iree-e2e-matmul-test + TARGET_BACKENDS + "rocm" + DRIVERS + "hip" + COMPILER_FLAGS + ${IREE_HIP_TEST_COMPILER_FLAGS} + "--iree-opt-data-tiling" + "--iree-global-opt-experimental-rocm-data-tiling" + "--iree-global-opt-enable-early-materialization=true" + LABELS + "noasan" + "nomsan" + "notsan" + "noubsan" + "requires-gpu-cdna3" +) + endif() elseif(IREE_HIP_TEST_TARGET_CHIP MATCHES "^gfx11")