mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-04 05:31:24 +00:00
* add interwave scheduler for gemm mem pipeline * Fix merge artifacts. * Refactor unit tests. * Switch to interwave scheduler for mem example --------- Co-authored-by: Adam Osewski <19374865+aosewski@users.noreply.github.com> Co-authored-by: Adam Osewski <Adam.Osewski@amd.com>
43 lines
1.5 KiB
C++
43 lines
1.5 KiB
C++
// SPDX-License-Identifier: MIT
|
|
// Copyright (c) 2024, Advanced Micro Devices, Inc. All rights reserved.
|
|
|
|
#include <tuple>
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
#include "ck_tile/host.hpp"
|
|
#include "test_gemm_mem_pipeline_util.hpp"
|
|
|
|
using F16 = ck_tile::half_t;
|
|
using F32 = float;
|
|
|
|
using Row = ck_tile::tensor_layout::gemm::RowMajor;
|
|
using Col = ck_tile::tensor_layout::gemm::ColumnMajor;
|
|
static constexpr auto Intrawave = ck_tile::GemmPipelineScheduler::Intrawave;
|
|
static constexpr auto Interwave = ck_tile::GemmPipelineScheduler::Interwave;
|
|
|
|
template <typename Tuple>
|
|
class TestCkTileGemmMemPipelineIntrawave : public TestCkTileGemmMemPipeline<Tuple, Intrawave>
|
|
{
|
|
};
|
|
|
|
template <typename Tuple>
|
|
class TestCkTileGemmMemPipelineInterwave : public TestCkTileGemmMemPipeline<Tuple, Interwave>
|
|
{
|
|
};
|
|
|
|
// clang-format off
|
|
using KernelTypes = ::testing::Types<
|
|
// ALayout, BLayout, CLayout, ADataType, BDataType, AccDataType, CDataType
|
|
std::tuple< Row, Col, Row, F16, F16, F32, F16>,
|
|
std::tuple< Col, Row, Row, F16, F16, F32, F16>,
|
|
std::tuple< Row, Row, Row, F16, F16, F32, F16>,
|
|
std::tuple< Col, Col, Row, F16, F16, F32, F16>
|
|
>;
|
|
// clang-format on
|
|
|
|
TYPED_TEST_SUITE(TestCkTileGemmMemPipelineIntrawave, KernelTypes);
|
|
TYPED_TEST_SUITE(TestCkTileGemmMemPipelineInterwave, KernelTypes);
|
|
|
|
#include "test_gemm_mem_pipeline_ut_cases.inc"
|