MCPcopy Create free account
hub / github.com/MegEngine/MegCC / TEST

Function TEST

compiler/test/kernel/opr/arm/benchmark_matmul.cpp:6–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4using namespace megcc::KernelGen;
5#ifdef ENABLE_KERNEL_BENCHMARK
6TEST(ARMCOMMON, BenchmarkFP32GEVM_NN) {
7 Benchmarker<MatrixMulForward> benchmarker(Arch::ARM64);
8 benchmarker.set_kernel_symbol("ArmCommon_kernel_gevm.*");
9 size_t m = 1, k = 1000, n = 1024;
10 size_t a0 = m, a1 = k, b0 = k, b1 = n;
11 MatrixMulForward::Param param;
12 param.transposeA = false;
13 param.transposeB = false;
14 benchmarker.set_param(param);
15 if (param.transposeA) {
16 a0 = k, a1 = m;
17 }
18 if (param.transposeB) {
19 b0 = n, b1 = k;
20 }
21 benchmarker.execs({{a0, a1}, {b0, b1}, {}}).print();
22}
23
24TEST(ARMCOMMON, BenchmarkFP32GEVM_NT) {
25 Benchmarker<MatrixMulForward> benchmarker(Arch::ARM64);

Callers

nothing calls this directly

Calls 2

printMethod · 0.80
execsMethod · 0.45

Tested by

no test coverage detected