// SPDX-License-Identifier: MIT
// Copyright (c) 2024-2025, Advanced Micro Devices, Inc. All rights reserved.

#include "gtest/gtest.h"
#include "ck/ck.hpp"
#include "profiler/profile_gemm_add_relu_impl.hpp"
#include "test_gemm_common.hpp"

template <typename Tuple>
class TestGemmAddRelu : public TestGemmD0Common<Tuple>
{
    using ProfileCall = typename TestGemmD0Common<Tuple>::ProfileCall;

    ProfileCall GetImpl() override
    {
        return ck::profiler::profile_gemm_add_relu_impl<
            typename TestGemmD0Common<Tuple>::ADataType,
            typename TestGemmD0Common<Tuple>::BDataType,
            typename TestGemmD0Common<Tuple>::AccDataType,
            typename TestGemmD0Common<Tuple>::D0DataType,
            typename TestGemmD0Common<Tuple>::EDataType,
            typename TestGemmD0Common<Tuple>::ALayout,
            typename TestGemmD0Common<Tuple>::BLayout,
            typename TestGemmD0Common<Tuple>::D0Layout,
            typename TestGemmD0Common<Tuple>::ELayout>;
    }
};

using KernelTypes = ::testing::Types<std::tuple<F16, I8, F32, F16, F16, Row, Row, Row, Row>,
                                     std::tuple<BF16, I8, F32, BF16, BF16, Row, Row, Row, Row>>;

TYPED_TEST_SUITE(TestGemmAddRelu, KernelTypes);
TYPED_TEST(TestGemmAddRelu, Test_BF16FP16_INT8) { this->Run(); }
