mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-06-10 16:28:38 +00:00
[CK] add composable kernel support on gfx1250 (#6978) ## Motivation Add composable kernel support on gfx1250. ## Technical Details <!-- Explain the changes along with any relevant GitHub links. --> ## Test Plan <!-- Explain any relevant testing done to verify this PR. --> ## Test Result <!-- Briefly summarize test outcomes. --> ## Submission Checklist - [ ] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. --------- Co-authored-by: Qun Lin <qlin@amd.com> Co-authored-by: jialuo12_amdeng <jia.luo@amd.com> Co-authored-by: Andriy Roshchenko <andriy.roshchenko@amd.com> Co-authored-by: hsivasun_amdeng <haresh.sivasuntharampillai@amd.com>
42 lines
1.7 KiB
C++
42 lines
1.7 KiB
C++
// Copyright (c) Advanced Micro Devices, Inc., or its affiliates.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#include "gtest/gtest.h"
|
|
#include "ck/ck.hpp"
|
|
#include "profiler/profile_gemm_quantization_impl.hpp"
|
|
#include "test_gemm_quantization_util.hpp"
|
|
|
|
using I8 = int8_t;
|
|
using I32 = int32_t;
|
|
using Row = ck::tensor_layout::gemm::RowMajor;
|
|
using Col = ck::tensor_layout::gemm::ColumnMajor;
|
|
|
|
template <typename Tuple>
|
|
class TestGemmQuantization : public ck::test::TestGemmQuantizationCommon<Tuple>
|
|
{
|
|
protected:
|
|
using ProfileCall =
|
|
bool (*const)(int, int, bool, bool, int, int, int, int, int, int, float, int);
|
|
|
|
ProfileCall GetImpl() override
|
|
{
|
|
return &ck::profiler::profile_gemm_quantization_impl<
|
|
typename ck::test::TestGemmQuantizationCommon<Tuple>::ADataType,
|
|
typename ck::test::TestGemmQuantizationCommon<Tuple>::BDataType,
|
|
typename ck::test::TestGemmQuantizationCommon<Tuple>::AccDataType,
|
|
typename ck::test::TestGemmQuantizationCommon<Tuple>::EDataType,
|
|
typename ck::test::TestGemmQuantizationCommon<Tuple>::ALayout,
|
|
typename ck::test::TestGemmQuantizationCommon<Tuple>::BLayout,
|
|
typename ck::test::TestGemmQuantizationCommon<Tuple>::ELayout>;
|
|
}
|
|
};
|
|
|
|
using KernelTypes = ::testing::Types<std::tuple<I8, I8, I32, I8, Row, Row, Row>,
|
|
std::tuple<I8, I8, I32, I8, Row, Col, Row>,
|
|
std::tuple<I8, I8, I32, I8, Col, Row, Row>,
|
|
std::tuple<I8, I8, I32, I8, Col, Col, Row>>;
|
|
|
|
TYPED_TEST_SUITE(TestGemmQuantization, KernelTypes);
|
|
|
|
#include "test_gemm_quantization_ut_cases.inc"
|