mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-05 06:01:23 +00:00
- profiler for gemm quantization for DL/XDL - tests for gemm quantization for DL/XDL - implementation for gemm quantization for WMMA - profiler/tests for gemm qunatization for WMMA Co-authored-by: Illia Silin <98187287+illsilin@users.noreply.github.com>
42 lines
808 B
C++
42 lines
808 B
C++
#pragma once
|
|
|
|
TYPED_TEST(TestGemmQuantization, SmallM)
|
|
{
|
|
std::vector<int> Ms{1, 2, 3, 4, 5, 6};
|
|
constexpr int N = 512;
|
|
constexpr int K = 320;
|
|
|
|
for(int M : Ms)
|
|
this->Run({{M, N, K}});
|
|
}
|
|
|
|
TYPED_TEST(TestGemmQuantization, MidLargeM)
|
|
{
|
|
std::vector<int> Ms{127, 255, 312, 799, 1573};
|
|
constexpr int N = 1024;
|
|
constexpr int K = 320;
|
|
|
|
for(int M : Ms)
|
|
this->Run({{M, N, K}});
|
|
}
|
|
|
|
TYPED_TEST(TestGemmQuantization, MNKPadded)
|
|
{
|
|
const std::vector<int> Ms{127, 150, 188, 210};
|
|
constexpr int N = 136;
|
|
constexpr int K = 280;
|
|
|
|
for(int M : Ms)
|
|
this->Run({{M, N, K}});
|
|
}
|
|
|
|
TYPED_TEST(TestGemmQuantization, Regular)
|
|
{
|
|
constexpr int M = 512;
|
|
constexpr int N = 512;
|
|
std::vector<int> Ks{512};
|
|
|
|
for(int K : Ks)
|
|
this->Run({{M, N, K}});
|
|
}
|