test / bench /f32-dwconv-e2e.cc
Androidonnxfork's picture
Upload folder using huggingface_hub
8b7c501
// Copyright 2019 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <algorithm>
#include <cmath>
#include <cstring>
#include <functional>
#include <memory>
#include <random>
#include <vector>
#include <benchmark/benchmark.h>
#include "bench/end2end.h"
#include "bench/utils.h"
#include <xnnpack.h>
#include <xnnpack/config.h>
#include <xnnpack/dwconv.h>
#include <xnnpack/microfnptr.h>
#include <xnnpack/microparams-init.h>
#include <xnnpack/models.h>
static void DWConvEnd2EndBenchmark(
benchmark::State& state,
models::ExecutionPlanFactory model_factory,
xnn_f32_dwconv_minmax_unipass_ukernel_fn dwconv_minmax,
xnn_f32_dwconv_unipass_ukernel_fn dwconv,
xnn_init_f32_minmax_params_fn init_params,
uint8_t channel_tile, uint8_t primary_tile,
benchmark::utils::IsaCheckFunction isa_check = nullptr)
{
if (isa_check != nullptr && !isa_check(state)) {
return;
}
if (xnn_initialize(nullptr /* allocator */) != xnn_status_success) {
state.SkipWithError("failed to initialize XNNPACK");
return;
}
struct xnn_dwconv_config* dwconv_config = xnn_init_f32_dwconv_config();
if (dwconv_config == nullptr) {
state.SkipWithError("hardware does not support F32 DWCONV");
return;
}
// Save dwconv_config so that we can modify it for the benchmark and later restore it.
struct xnn_dwconv_config saved_dwconv_params[XNN_MAX_F32_DWCONV_UKERNELS];
memcpy(saved_dwconv_params, dwconv_config, sizeof(saved_dwconv_params));
// Override microkernels chosen in xnn_initialize
for (size_t i = 0; i < XNN_MAX_F32_DWCONV_UKERNELS; i++) {
// Replace only the microkernel with the matching kernel size.
if (dwconv_config[i].primary_tile == primary_tile) {
std::memset(&dwconv_config[i], 0, sizeof(dwconv_config[i]));
// Note: do not directly assign to dwconv_config[i] because it breaks older gcc.
dwconv_config[i].minmax.unipass = xnn_dwconv_unipass_ukernel_fn(dwconv_minmax);
dwconv_config[i].linear.unipass = xnn_dwconv_unipass_ukernel_fn(dwconv);
dwconv_config[i].channel_tile = channel_tile;
dwconv_config[i].channel_subtile = channel_tile;
dwconv_config[i].channel_round = 1;
dwconv_config[i].primary_tile = primary_tile;
dwconv_config[i].init.f32 = init_params;
break;
}
}
auto execution_plan = model_factory(nullptr);
if (execution_plan.empty()) {
state.SkipWithError("failed to create a model");
return;
}
for (auto _ : state) {
for (const std::unique_ptr<xnn_operator, decltype(&xnn_delete_operator)>& op : execution_plan) {
xnn_status status = xnn_run_operator(op.get(), nullptr);
if (status != xnn_status_success) {
state.SkipWithError("failed to run a model");
return;
}
}
}
const uint64_t cpu_frequency = benchmark::utils::GetCurrentCpuFrequency();
if (cpu_frequency != 0) {
state.counters["cpufreq"] = cpu_frequency;
}
// Restore dwconv_config to original state as defined in init.c.
memcpy(dwconv_config, saved_dwconv_params, sizeof(saved_dwconv_params));
}
static void DWConvEnd2EndBenchmark(
benchmark::State& state,
models::ExecutionPlanFactory model_factory,
xnn_f32_dwconv_minmax_multipass_ukernel_fn dwconv_minmax,
xnn_f32_dwconv_multipass_ukernel_fn dwconv,
xnn_init_f32_minmax_params_fn init_params,
uint8_t channel_tile, uint8_t channel_subtile, uint8_t channel_round,
uint8_t primary_tile, uint8_t middle_tile, uint8_t last_tile,
uint8_t primary_tile_to_replace,
benchmark::utils::IsaCheckFunction isa_check = nullptr)
{
if (isa_check != nullptr && !isa_check(state)) {
return;
}
if (xnn_initialize(nullptr /* allocator */) != xnn_status_success) {
state.SkipWithError("failed to initialize XNNPACK");
return;
}
struct xnn_dwconv_config* dwconv_config = xnn_init_f32_dwconv_config();
if (dwconv_config == nullptr) {
state.SkipWithError("failed to initialize f32 DWCONV config");
return;
}
// Save dwconv_config so that we can modify it for the benchmark and later restore it.
struct xnn_dwconv_config saved_dwconv_params[XNN_MAX_F32_DWCONV_UKERNELS];
memcpy(saved_dwconv_params, dwconv_config, sizeof(saved_dwconv_params));
bool found = false;
for (size_t i = 0; i < XNN_MAX_F32_DWCONV_UKERNELS; i++) {
if (dwconv_config[i].primary_tile == primary_tile_to_replace) {
found = true;
} else if (dwconv_config[i].last_tile != 0) {
// Found a multipass microkernel, replace it.
found = true;
}
}
if (!found) {
state.SkipWithError("can't replace with multipass");
return;
}
// Override microkernels chosen in xnn_initialize
for (size_t i = 0; i < XNN_MAX_F32_DWCONV_UKERNELS; i++) {
// Replace only the microkernel with the matching kernel size.
if (dwconv_config[i].primary_tile == primary_tile_to_replace ||
dwconv_config[i].last_tile != 0) {
// Replace either when the primary_tile_to_replace matches, or replace the
// first multipass dwconv microkernel we find.
// TODO(zhin): support specifying target multipass dwconv to replace.
std::memset(&dwconv_config[i], 0, sizeof(dwconv_config[i]));
// Note: do not directly assign to dwconv_config[i] because it breaks older gcc.
dwconv_config[i].minmax.multipass = xnn_dwconv_multipass_ukernel_fn(dwconv_minmax);
dwconv_config[i].linear.multipass = xnn_dwconv_multipass_ukernel_fn(dwconv);
dwconv_config[i].channel_tile = channel_tile;
dwconv_config[i].channel_subtile = channel_subtile;
dwconv_config[i].channel_round = channel_round;
dwconv_config[i].primary_tile = primary_tile;
dwconv_config[i].middle_tile = middle_tile;
dwconv_config[i].last_tile = last_tile;
dwconv_config[i].init.f32 = init_params;
break;
}
}
auto execution_plan = model_factory(nullptr);
if (execution_plan.empty()) {
state.SkipWithError("failed to create a model");
return;
}
for (auto _ : state) {
for (const std::unique_ptr<xnn_operator, decltype(&xnn_delete_operator)>& op : execution_plan) {
xnn_status status = xnn_run_operator(op.get(), nullptr);
if (status != xnn_status_success) {
state.SkipWithError("failed to run a model");
return;
}
}
}
const uint64_t cpu_frequency = benchmark::utils::GetCurrentCpuFrequency();
if (cpu_frequency != 0) {
state.counters["cpufreq"] = cpu_frequency;
}
// Restore dwconv_config to original state as defined in init.c.
memcpy(dwconv_config, saved_dwconv_params, sizeof(saved_dwconv_params));
}
#if XNN_ARCH_ARM64 && XNN_ENABLE_ASSEMBLY
static void f32_dwconv_9p4c__asm_aarch64_neonfma(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p4c__asm_aarch64_neonfma,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_9p4c__asm_aarch64_neonfma_cortex_a55(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p4c__asm_aarch64_neonfma_cortex_a55,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 9 /* primary tile */);
}
BENCHMARK_FP32_END2END(f32_dwconv_9p4c__asm_aarch64_neonfma);
BENCHMARK_FP32_END2END(f32_dwconv_9p4c__asm_aarch64_neonfma_cortex_a55);
#endif // XNN_ARCH_ARM64 && XNN_ENABLE_ASSEMBLY
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
static void f32_dwconv_9p4c__neon(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p4c__neon,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckNEON);
}
static void f32_dwconv_9p4c__neon_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p4c__neon_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckNEON);
}
static void f32_dwconv_9p8c__neon(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p8c__neon,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckNEON);
}
static void f32_dwconv_9p8c__neon_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p8c__neon_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckNEON);
}
static void f32_dwconv_9p16c__neon(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p16c__neon,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
16 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckNEON);
}
static void f32_dwconv_9p16c__neon_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p16c__neon_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
16 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckNEON);
}
static void f32_dwconv_9p4c__neonfma(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p4c__neonfma,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_9p4c__neonfma_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p4c__neonfma_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_9p8c__neonfma(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p8c__neonfma,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_9p8c__neonfma_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p8c__neonfma_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_9p16c__neonfma(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p16c__neonfma,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
16 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_9p16c__neonfma_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p16c__neonfma_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
16 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_25p8c__neonfma(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__neonfma,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 25 /* primary tile */, benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_25p8c__neonfma_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__neonfma_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 25 /* primary tile */, benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_5f5m5l4c4s4r__neonfma(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l4c4s4r__neonfma,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_5f5m5l4c4s4r__neonfma_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l4c4s4r__neonfma_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_5f5m5l8c4s4r__neonfma(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l8c4s4r__neonfma,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_5f5m5l8c4s4r__neonfma_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l8c4s4r__neonfma_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_6f6m7l4c4s4r__neonfma(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l4c4s4r__neonfma,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_6f6m7l4c4s4r__neonfma_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l4c4s4r__neonfma_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_6f6m7l8c4s4r__neonfma(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l8c4s4r__neonfma,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_6f6m7l8c4s4r__neonfma_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l8c4s4r__neonfma_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_8f8m9l4c4s4r__neonfma(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l4c4s4r__neonfma,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_8f8m9l4c4s4r__neonfma_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l4c4s4r__neonfma_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_8f8m9l8c4s4r__neonfma(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l8c4s4r__neonfma,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_8f8m9l8c4s4r__neonfma_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l8c4s4r__neonfma_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEONFMA);
}
static void f32_dwconv_25p8c__neon(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__neon,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 25 /* primary tile */, benchmark::utils::CheckNEON);
}
static void f32_dwconv_25p8c__neon_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__neon_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 25 /* primary tile */, benchmark::utils::CheckNEON);
}
static void f32_dwconv_5f5m5l4c4s4r__neon(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l4c4s4r__neon,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEON);
}
static void f32_dwconv_5f5m5l4c4s4r__neon_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l4c4s4r__neon_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEON);
}
static void f32_dwconv_5f5m5l8c4s4r__neon(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l8c4s4r__neon,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEON);
}
static void f32_dwconv_5f5m5l8c4s4r__neon_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l8c4s4r__neon_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEON);
}
static void f32_dwconv_6f6m7l4c4s4r__neon(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l4c4s4r__neon,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEON);
}
static void f32_dwconv_6f6m7l4c4s4r__neon_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l4c4s4r__neon_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEON);
}
static void f32_dwconv_6f6m7l8c4s4r__neon(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l8c4s4r__neon,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEON);
}
static void f32_dwconv_6f6m7l8c4s4r__neon_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l8c4s4r__neon_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEON);
}
static void f32_dwconv_8f8m9l4c4s4r__neon(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l4c4s4r__neon,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/9, /*last_tile=*/8,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEON);
}
static void f32_dwconv_8f8m9l4c4s4r__neon_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l4c4s4r__neon_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/9, /*last_tile=*/8,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEON);
}
static void f32_dwconv_8f8m9l8c4s4r__neon(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l8c4s4r__neon,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/9, /*last_tile=*/8,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEON);
}
static void f32_dwconv_8f8m9l8c4s4r__neon_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l8c4s4r__neon_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/9, /*last_tile=*/8,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckNEON);
}
BENCHMARK_FP32_END2END(f32_dwconv_9p4c__neonfma);
BENCHMARK_FP32_END2END(f32_dwconv_9p4c__neonfma_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_9p8c__neonfma);
BENCHMARK_FP32_END2END(f32_dwconv_9p8c__neonfma_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_9p16c__neonfma);
BENCHMARK_FP32_END2END(f32_dwconv_9p16c__neonfma_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__neonfma);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__neonfma_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l4c4s4r__neonfma);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l4c4s4r__neonfma_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l8c4s4r__neonfma);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l8c4s4r__neonfma_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l4c4s4r__neonfma);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l4c4s4r__neonfma_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l8c4s4r__neonfma);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l8c4s4r__neonfma_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l4c4s4r__neonfma);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l4c4s4r__neonfma_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l8c4s4r__neonfma);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l8c4s4r__neonfma_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_9p4c__neon);
BENCHMARK_FP32_END2END(f32_dwconv_9p4c__neon_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_9p8c__neon);
BENCHMARK_FP32_END2END(f32_dwconv_9p8c__neon_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_9p16c__neon);
BENCHMARK_FP32_END2END(f32_dwconv_9p16c__neon_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__neon);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__neon_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l4c4s4r__neon);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l4c4s4r__neon_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l8c4s4r__neon);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l8c4s4r__neon_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l4c4s4r__neon);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l4c4s4r__neon_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l8c4s4r__neon);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l8c4s4r__neon_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l4c4s4r__neon);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l4c4s4r__neon_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l8c4s4r__neon);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l8c4s4r__neon_acc2);
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
static void f32_dwconv_9p4c__sse(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p4c__sse,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
4 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_9p4c__sse_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p4c__sse_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
4 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_9p8c__sse(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p8c__sse,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
8 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_9p8c__sse_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p8c__sse_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
8 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_25p4c__sse(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p4c__sse,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
4 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p4c__sse_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p4c__sse_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
4 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p8c__sse(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__sse,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
8 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p8c__sse_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__sse_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
8 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_5f5m5l4c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l4c4s4r__sse,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_5f5m5l4c4s4r__sse_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l4c4s4r__sse_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_5f5m5l8c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l8c4s4r__sse,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_5f5m5l8c4s4r__sse_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l8c4s4r__sse_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_5f5m5l16c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l16c4s4r__sse,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/16, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_5f5m5l16c4s4r__sse_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l16c4s4r__sse_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/16, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_6f6m7l4c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l4c4s4r__sse,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_6f6m7l4c4s4r__sse_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l4c4s4r__sse_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_6f6m7l8c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l8c4s4r__sse,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_6f6m7l8c4s4r__sse_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l8c4s4r__sse_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_6f6m7l16c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l16c4s4r__sse,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/16, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_6f6m7l16c4s4r__sse_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l16c4s4r__sse_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/16, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_8f8m9l4c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l4c4s4r__sse,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_8f8m9l4c4s4r__sse_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l4c4s4r__sse_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_8f8m9l8c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l8c4s4r__sse,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_8f8m9l8c4s4r__sse_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l8c4s4r__sse_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_8f8m9l16c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l16c4s4r__sse,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/16, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_8f8m9l16c4s4r__sse_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l16c4s4r__sse_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_sse_params,
/*channel_tile=*/16, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_9p8c__avx(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p8c__avx,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
8 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckAVX);
}
static void f32_dwconv_9p8c__avx_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p8c__avx_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
8 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckAVX);
}
static void f32_dwconv_9p16c__avx(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p16c__avx,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
16 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckAVX);
}
static void f32_dwconv_9p16c__avx_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p16c__avx_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
16 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckAVX);
}
static void f32_dwconv_25p8c__avx(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__avx,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
8 /* channel tile */, 25 /* primary tile */, benchmark::utils::CheckAVX);
}
static void f32_dwconv_25p8c__avx_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__avx_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
8 /* channel tile */, 25 /* primary tile */, benchmark::utils::CheckAVX);
}
static void f32_dwconv_25p16c__avx(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p16c__avx,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
16 /* channel tile */, 25 /* primary tile */, benchmark::utils::CheckAVX);
}
static void f32_dwconv_25p16c__avx_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p16c__avx_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
16 /* channel tile */, 25 /* primary tile */, benchmark::utils::CheckAVX);
}
static void f32_dwconv_5f5m5l8c8s4r__avx(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l8c8s4r__avx,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/8, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckAVX);
}
static void f32_dwconv_5f5m5l8c8s4r__avx_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l8c8s4r__avx_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/8, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckAVX);
}
static void f32_dwconv_5f5m5l16c8s4r__avx(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l16c8s4r__avx,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/16, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckAVX);
}
static void f32_dwconv_5f5m5l16c8s4r__avx_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l16c8s4r__avx_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/16, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckAVX);
}
static void f32_dwconv_6f6m7l8c8s4r__avx(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l8c8s4r__avx,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/8, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckAVX);
}
static void f32_dwconv_6f6m7l8c8s4r__avx_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l8c8s4r__avx_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/8, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckAVX);
}
static void f32_dwconv_6f6m7l16c8s4r__avx(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l16c8s4r__avx,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/16, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckAVX);
}
static void f32_dwconv_6f6m7l16c8s4r__avx_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l16c8s4r__avx_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/16, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckAVX);
}
static void f32_dwconv_8f8m9l8c8s4r__avx(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l8c8s4r__avx,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/8, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckAVX);
}
static void f32_dwconv_8f8m9l8c8s4r__avx_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l8c8s4r__avx_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/8, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckAVX);
}
static void f32_dwconv_8f8m9l16c8s4r__avx(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l16c8s4r__avx,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/16, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckAVX);
}
static void f32_dwconv_8f8m9l16c8s4r__avx_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l16c8s4r__avx_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/16, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckAVX);
}
static void f32_dwconv_3p8c__fma3(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_3p8c__fma3,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
8 /* channel tile */, 3 /* primary tile */, benchmark::utils::CheckFMA3);
}
static void f32_dwconv_3p8c__fma3_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_3p8c__fma3_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
8 /* channel tile */, 3 /* primary tile */, benchmark::utils::CheckFMA3);
}
static void f32_dwconv_3p16c__fma3(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_3p16c__fma3,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
16 /* channel tile */, 3 /* primary tile */, benchmark::utils::CheckFMA3);
}
static void f32_dwconv_3p16c__fma3_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_3p16c__fma3_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
16 /* channel tile */, 3 /* primary tile */, benchmark::utils::CheckFMA3);
}
static void f32_dwconv_4p8c__fma3(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_4p8c__fma3,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
8 /* channel tile */, 4 /* primary tile */, benchmark::utils::CheckFMA3);
}
static void f32_dwconv_4p8c__fma3_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_4p8c__fma3_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
8 /* channel tile */, 4 /* primary tile */, benchmark::utils::CheckFMA3);
}
static void f32_dwconv_4p16c__fma3(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_4p16c__fma3,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
16 /* channel tile */, 4 /* primary tile */, benchmark::utils::CheckFMA3);
}
static void f32_dwconv_4p16c__fma3_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_4p16c__fma3_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
16 /* channel tile */, 4 /* primary tile */, benchmark::utils::CheckFMA3);
}
static void f32_dwconv_9p8c__fma3(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p8c__fma3,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
8 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckFMA3);
}
static void f32_dwconv_9p8c__fma3_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p8c__fma3_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
8 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckFMA3);
}
static void f32_dwconv_9p16c__fma3(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p16c__fma3,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
16 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckFMA3);
}
static void f32_dwconv_9p16c__fma3_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p16c__fma3_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
16 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckFMA3);
}
static void f32_dwconv_25p8c__fma3(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__fma3,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
8 /* channel tile */, 25 /* primary tile */, benchmark::utils::CheckFMA3);
}
static void f32_dwconv_25p8c__fma3_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__fma3_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
8 /* channel tile */, 25 /* primary tile */, benchmark::utils::CheckFMA3);
}
static void f32_dwconv_25p16c__fma3(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p16c__fma3,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
16 /* channel tile */, 25 /* primary tile */, benchmark::utils::CheckFMA3);
}
static void f32_dwconv_25p16c__fma3_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p16c__fma3_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
16 /* channel tile */, 25 /* primary tile */, benchmark::utils::CheckFMA3);
}
static void f32_dwconv_5f5m5l8c8s4r__fma3(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l8c8s4r__fma3,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/8, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckFMA3);
}
static void f32_dwconv_5f5m5l8c8s4r__fma3_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l8c8s4r__fma3_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/8, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckFMA3);
}
static void f32_dwconv_5f5m5l16c8s4r__fma3(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l16c8s4r__fma3,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/16, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckFMA3);
}
static void f32_dwconv_5f5m5l16c8s4r__fma3_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l16c8s4r__fma3_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/16, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckFMA3);
}
static void f32_dwconv_5f5m5l32c8s4r__fma3(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l32c8s4r__fma3,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/32, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckFMA3);
}
static void f32_dwconv_5f5m5l32c8s4r__fma3_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l32c8s4r__fma3_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/32, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckFMA3);
}
static void f32_dwconv_7f6m6l8c8s4r__fma3(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_7f6m6l8c8s4r__fma3,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/8, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/7, /*middle_tile=*/6, /*last_tile=*/6,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckFMA3);
}
static void f32_dwconv_7f6m6l8c8s4r__fma3_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_7f6m6l8c8s4r__fma3_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/8, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/7, /*middle_tile=*/6, /*last_tile=*/6,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckFMA3);
}
static void f32_dwconv_7f6m6l16c8s4r__fma3(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_7f6m6l16c8s4r__fma3,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/16, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/7, /*middle_tile=*/6, /*last_tile=*/6,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckFMA3);
}
static void f32_dwconv_7f6m6l16c8s4r__fma3_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_7f6m6l16c8s4r__fma3_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/16, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/7, /*middle_tile=*/6, /*last_tile=*/6,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckFMA3);
}
static void f32_dwconv_7f6m6l32c8s4r__fma3(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_7f6m6l32c8s4r__fma3,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/32, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/7, /*middle_tile=*/6, /*last_tile=*/6,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckFMA3);
}
static void f32_dwconv_7f6m6l32c8s4r__fma3_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_7f6m6l32c8s4r__fma3_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_avx_params,
/*channel_tile=*/32, /*channel_subtile=*/8, /*channel_round=*/4,
/*primary_tile=*/7, /*middle_tile=*/6, /*last_tile=*/6,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckFMA3);
}
static void f32_dwconv_9p16c__avx512f(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p16c__avx512f,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
16 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckAVX512F);
}
static void f32_dwconv_9p16c__avx512f_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p16c__avx512f_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
16 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckAVX512F);
}
static void f32_dwconv_9p32c__avx512f(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p32c__avx512f,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
32 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckAVX512F);
}
static void f32_dwconv_9p32c__avx512f_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p32c__avx512f_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
32 /* channel tile */, 9 /* primary tile */, benchmark::utils::CheckAVX512F);
}
static void f32_dwconv_25p16c__avx512f(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p16c__avx512f,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
16 /* channel tile */, 25 /* primary tile */, benchmark::utils::CheckAVX512F);
}
static void f32_dwconv_25p16c__avx512f_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p16c__avx512f_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
16 /* channel tile */, 25 /* primary tile */, benchmark::utils::CheckAVX512F);
}
static void f32_dwconv_25p32c__avx512f(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p32c__avx512f,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
32 /* channel tile */, 25 /* primary tile */, benchmark::utils::CheckAVX512F);
}
static void f32_dwconv_25p32c__avx512f_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p32c__avx512f_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
32 /* channel tile */, 25 /* primary tile */, benchmark::utils::CheckAVX512F);
}
static void f32_dwconv_5f5m5l16c16s1r__avx512f(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l16c16s1r__avx512f,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/16, /*channel_subtile=*/16, /*channel_round=*/1,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckAVX512F);
}
static void f32_dwconv_5f5m5l16c16s1r__avx512f_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l16c16s1r__avx512f_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/16, /*channel_subtile=*/16, /*channel_round=*/1,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckAVX512F);
}
static void f32_dwconv_5f5m5l32c16s1r__avx512f(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l32c16s1r__avx512f,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/32, /*channel_subtile=*/16, /*channel_round=*/1,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckAVX512F);
}
static void f32_dwconv_5f5m5l32c16s1r__avx512f_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l32c16s1r__avx512f_acc2,
nullptr /* dwconv */,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/32, /*channel_subtile=*/16, /*channel_round=*/1,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25,
benchmark::utils::CheckAVX512F);
}
BENCHMARK_FP32_END2END(f32_dwconv_9p16c__avx512f);
BENCHMARK_FP32_END2END(f32_dwconv_9p16c__avx512f_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_9p32c__avx512f);
BENCHMARK_FP32_END2END(f32_dwconv_9p32c__avx512f_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p16c__avx512f);
BENCHMARK_FP32_END2END(f32_dwconv_25p16c__avx512f_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p32c__avx512f);
BENCHMARK_FP32_END2END(f32_dwconv_25p32c__avx512f_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l16c16s1r__avx512f);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l16c16s1r__avx512f_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l32c16s1r__avx512f);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l32c16s1r__avx512f_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_3p8c__fma3);
BENCHMARK_FP32_END2END(f32_dwconv_3p8c__fma3_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_3p16c__fma3);
BENCHMARK_FP32_END2END(f32_dwconv_3p16c__fma3_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_4p8c__fma3);
BENCHMARK_FP32_END2END(f32_dwconv_4p8c__fma3_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_4p16c__fma3);
BENCHMARK_FP32_END2END(f32_dwconv_4p16c__fma3_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_9p8c__fma3);
BENCHMARK_FP32_END2END(f32_dwconv_9p8c__fma3_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_9p16c__fma3);
BENCHMARK_FP32_END2END(f32_dwconv_9p16c__fma3_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__fma3);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__fma3_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p16c__fma3);
BENCHMARK_FP32_END2END(f32_dwconv_25p16c__fma3_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l8c8s4r__fma3);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l8c8s4r__fma3_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l16c8s4r__fma3);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l16c8s4r__fma3_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l32c8s4r__fma3);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l32c8s4r__fma3_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_7f6m6l8c8s4r__fma3);
BENCHMARK_FP32_END2END(f32_dwconv_7f6m6l8c8s4r__fma3_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_7f6m6l16c8s4r__fma3);
BENCHMARK_FP32_END2END(f32_dwconv_7f6m6l16c8s4r__fma3_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_7f6m6l32c8s4r__fma3);
BENCHMARK_FP32_END2END(f32_dwconv_7f6m6l32c8s4r__fma3_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_9p8c__avx);
BENCHMARK_FP32_END2END(f32_dwconv_9p8c__avx_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_9p16c__avx);
BENCHMARK_FP32_END2END(f32_dwconv_9p16c__avx_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__avx);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__avx_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p16c__avx);
BENCHMARK_FP32_END2END(f32_dwconv_25p16c__avx_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l8c8s4r__avx);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l8c8s4r__avx_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l16c8s4r__avx);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l16c8s4r__avx_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l8c8s4r__avx);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l8c8s4r__avx_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l16c8s4r__avx);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l16c8s4r__avx_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l8c8s4r__avx);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l8c8s4r__avx_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l16c8s4r__avx);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l16c8s4r__avx_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_9p4c__sse);
BENCHMARK_FP32_END2END(f32_dwconv_9p4c__sse_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_9p8c__sse);
BENCHMARK_FP32_END2END(f32_dwconv_9p8c__sse_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p4c__sse);
BENCHMARK_FP32_END2END(f32_dwconv_25p4c__sse_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__sse);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__sse_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l4c4s4r__sse);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l4c4s4r__sse_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l8c4s4r__sse);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l8c4s4r__sse_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l16c4s4r__sse);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l16c4s4r__sse_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l4c4s4r__sse);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l4c4s4r__sse_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l8c4s4r__sse);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l8c4s4r__sse_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l16c4s4r__sse);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l16c4s4r__sse_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l4c4s4r__sse);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l4c4s4r__sse_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l8c4s4r__sse);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l8c4s4r__sse_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l16c4s4r__sse);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l16c4s4r__sse_acc2);
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_WASM
static void f32_dwconv_9p1c__wasm(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p1c__wasm,
xnn_f32_dwconv_ukernel_9p1c__scalar,
xnn_init_f32_minmax_scalar_params,
1 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_9p1c__wasm_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p1c__wasm_acc2,
xnn_f32_dwconv_ukernel_9p1c__scalar_acc2,
xnn_init_f32_minmax_scalar_params,
1 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_25p1c__wasm(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p1c__wasm,
xnn_f32_dwconv_ukernel_25p1c__scalar,
xnn_init_f32_minmax_scalar_params,
1 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p1c__wasm_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p1c__wasm_acc2,
xnn_f32_dwconv_ukernel_25p1c__scalar_acc2,
xnn_init_f32_minmax_scalar_params,
1 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_3f3m3l1c1s1r__wasm(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_3f3m3l1c1s1r__wasm,
xnn_f32_dwconv_ukernel_3f3m3l1c1s1r__scalar,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/1, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/3, /*middle_tile=*/3, /*last_tile=*/3,
/*primary_tile_to_replace=*/9);
}
static void f32_dwconv_3f3m3l1c1s1r__wasm_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_3f3m3l1c1s1r__wasm_acc2,
xnn_f32_dwconv_ukernel_3f3m3l1c1s1r__scalar_acc2,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/1, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/3, /*middle_tile=*/3, /*last_tile=*/3,
/*primary_tile_to_replace=*/9);
}
static void f32_dwconv_5f5m5l1c1s1r__wasm(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l1c1s1r__wasm,
xnn_f32_dwconv_ukernel_5f5m5l1c1s1r__scalar,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/1, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_5f5m5l1c1s1r__wasm_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l1c1s1r__wasm_acc2,
xnn_f32_dwconv_ukernel_5f5m5l1c1s1r__scalar_acc2,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/1, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_6f6m7l1c1s1r__wasm(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l1c1s1r__wasm,
xnn_f32_dwconv_ukernel_6f6m7l1c1s1r__scalar,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/1, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_6f6m7l1c1s1r__wasm_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l1c1s1r__wasm_acc2,
xnn_f32_dwconv_ukernel_6f6m7l1c1s1r__scalar_acc2,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/1, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_8f8m9l1c1s1r__wasm(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l1c1s1r__wasm,
xnn_f32_dwconv_ukernel_8f8m9l1c1s1r__scalar,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/1, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_8f8m9l1c1s1r__wasm_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l1c1s1r__wasm_acc2,
xnn_f32_dwconv_ukernel_8f8m9l1c1s1r__scalar_acc2,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/1, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25);
}
BENCHMARK_FP32_END2END(f32_dwconv_9p1c__wasm);
BENCHMARK_FP32_END2END(f32_dwconv_9p1c__wasm_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p1c__wasm);
BENCHMARK_FP32_END2END(f32_dwconv_25p1c__wasm_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_3f3m3l1c1s1r__wasm);
BENCHMARK_FP32_END2END(f32_dwconv_3f3m3l1c1s1r__wasm_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l1c1s1r__wasm);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l1c1s1r__wasm_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l1c1s1r__wasm);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l1c1s1r__wasm_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l1c1s1r__wasm);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l1c1s1r__wasm_acc2);
#endif // XNN_ARCH_WASM
#if XNN_ARCH_WASMSIMD || XNN_ARCH_WASMRELAXEDSIMD
static void f32_dwconv_9p4c__wasmsimd_arm(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p4c__wasmsimd_arm,
xnn_f32_dwconv_ukernel_9p4c__wasmsimd,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_9p4c__wasmsimd_arm_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p4c__wasmsimd_arm_acc2,
xnn_f32_dwconv_ukernel_9p4c__wasmsimd_acc2,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_9p8c__wasmsimd_arm(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p8c__wasmsimd_arm,
xnn_f32_dwconv_ukernel_9p8c__wasmsimd,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_9p8c__wasmsimd_arm_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p8c__wasmsimd_arm_acc2,
xnn_f32_dwconv_ukernel_9p8c__wasmsimd_acc2,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_9p4c__wasmsimd_x86(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p4c__wasmsimd_x86,
xnn_f32_dwconv_ukernel_9p4c__wasmsimd,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_9p4c__wasmsimd_x86_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p4c__wasmsimd_x86_acc2,
xnn_f32_dwconv_ukernel_9p4c__wasmsimd_acc2,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_9p8c__wasmsimd_x86(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p8c__wasmsimd_x86,
xnn_f32_dwconv_ukernel_9p8c__wasmsimd,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_9p8c__wasmsimd_x86_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p8c__wasmsimd_x86_acc2,
xnn_f32_dwconv_ukernel_9p8c__wasmsimd_acc2,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_25p4c__wasmsimd_arm(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p4c__wasmsimd_arm,
xnn_f32_dwconv_ukernel_25p4c__wasmsimd,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p4c__wasmsimd_arm_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p4c__wasmsimd_arm_acc2,
xnn_f32_dwconv_ukernel_25p4c__wasmsimd,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p8c__wasmsimd_arm(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__wasmsimd_arm,
xnn_f32_dwconv_ukernel_25p8c__wasmsimd,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p8c__wasmsimd_arm_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__wasmsimd_arm_acc2,
xnn_f32_dwconv_ukernel_25p8c__wasmsimd,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p4c__wasmsimd_x86(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p4c__wasmsimd_x86,
xnn_f32_dwconv_ukernel_25p4c__wasmsimd,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p4c__wasmsimd_x86_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p4c__wasmsimd_x86_acc2,
xnn_f32_dwconv_ukernel_25p4c__wasmsimd,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p8c__wasmsimd_x86(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__wasmsimd_x86,
xnn_f32_dwconv_ukernel_25p8c__wasmsimd,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p8c__wasmsimd_x86_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__wasmsimd_x86_acc2,
xnn_f32_dwconv_ukernel_25p8c__wasmsimd,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_3f3m3l4c4s4r__wasmsimd_arm(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_3f3m3l4c4s4r__wasmsimd_arm,
xnn_f32_dwconv_ukernel_3f3m3l4c4s4r__wasmsimd,
xnn_init_f32_minmax_wasmsimd_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/3, /*middle_tile=*/3, /*last_tile=*/3,
/*primary_tile_to_replace=*/9);
}
static void f32_dwconv_3f3m3l4c4s4r__wasmsimd_arm_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_3f3m3l4c4s4r__wasmsimd_arm_acc2,
xnn_f32_dwconv_ukernel_3f3m3l4c4s4r__wasmsimd_acc2,
xnn_init_f32_minmax_wasmsimd_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/3, /*middle_tile=*/3, /*last_tile=*/3,
/*primary_tile_to_replace=*/9);
}
static void f32_dwconv_3f3m3l8c4s4r__wasmsimd_arm(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_3f3m3l8c4s4r__wasmsimd_arm,
xnn_f32_dwconv_ukernel_3f3m3l8c4s4r__wasmsimd,
xnn_init_f32_minmax_wasmsimd_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/3, /*middle_tile=*/3, /*last_tile=*/3,
/*primary_tile_to_replace=*/9);
}
static void f32_dwconv_3f3m3l8c4s4r__wasmsimd_arm_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_3f3m3l8c4s4r__wasmsimd_arm_acc2,
xnn_f32_dwconv_ukernel_3f3m3l8c4s4r__wasmsimd_acc2,
xnn_init_f32_minmax_wasmsimd_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/3, /*middle_tile=*/3, /*last_tile=*/3,
/*primary_tile_to_replace=*/9);
}
static void f32_dwconv_3f3m3l4c4s4r__wasmsimd_x86(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_3f3m3l4c4s4r__wasmsimd_x86,
xnn_f32_dwconv_ukernel_3f3m3l4c4s4r__wasmsimd,
xnn_init_f32_minmax_wasmsimd_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/3, /*middle_tile=*/3, /*last_tile=*/3,
/*primary_tile_to_replace=*/9);
}
static void f32_dwconv_3f3m3l4c4s4r__wasmsimd_x86_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_3f3m3l4c4s4r__wasmsimd_x86_acc2,
xnn_f32_dwconv_ukernel_3f3m3l4c4s4r__wasmsimd_acc2,
xnn_init_f32_minmax_wasmsimd_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/3, /*middle_tile=*/3, /*last_tile=*/3,
/*primary_tile_to_replace=*/9);
}
static void f32_dwconv_3f3m3l8c4s4r__wasmsimd_x86(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_3f3m3l8c4s4r__wasmsimd_x86,
xnn_f32_dwconv_ukernel_3f3m3l8c4s4r__wasmsimd,
xnn_init_f32_minmax_wasmsimd_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/3, /*middle_tile=*/3, /*last_tile=*/3,
/*primary_tile_to_replace=*/9);
}
static void f32_dwconv_3f3m3l8c4s4r__wasmsimd_x86_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_3f3m3l8c4s4r__wasmsimd_x86_acc2,
xnn_f32_dwconv_ukernel_3f3m3l8c4s4r__wasmsimd_acc2,
xnn_init_f32_minmax_wasmsimd_params,
/*channel_tile=*/8, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/3, /*middle_tile=*/3, /*last_tile=*/3,
/*primary_tile_to_replace=*/9);
}
static void f32_dwconv_5f5m5l4c4s4r__wasmsimd_arm(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l4c4s4r__wasmsimd_arm,
xnn_f32_dwconv_ukernel_5f5m5l4c4s4r__wasmsimd,
xnn_init_f32_minmax_wasmsimd_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_5f5m5l4c4s4r__wasmsimd_arm_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l4c4s4r__wasmsimd_arm_acc2,
xnn_f32_dwconv_ukernel_5f5m5l4c4s4r__wasmsimd_acc2,
xnn_init_f32_minmax_wasmsimd_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_5f5m5l4c4s4r__wasmsimd_x86(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l4c4s4r__wasmsimd_x86,
xnn_f32_dwconv_ukernel_5f5m5l4c4s4r__wasmsimd,
xnn_init_f32_minmax_wasmsimd_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_5f5m5l4c4s4r__wasmsimd_x86_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l4c4s4r__wasmsimd_x86_acc2,
xnn_f32_dwconv_ukernel_5f5m5l4c4s4r__wasmsimd_acc2,
xnn_init_f32_minmax_wasmsimd_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
BENCHMARK_FP32_END2END(f32_dwconv_9p4c__wasmsimd_arm);
BENCHMARK_FP32_END2END(f32_dwconv_9p4c__wasmsimd_arm_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_9p8c__wasmsimd_arm);
BENCHMARK_FP32_END2END(f32_dwconv_9p8c__wasmsimd_arm_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_9p4c__wasmsimd_x86);
BENCHMARK_FP32_END2END(f32_dwconv_9p4c__wasmsimd_x86_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_9p8c__wasmsimd_x86);
BENCHMARK_FP32_END2END(f32_dwconv_9p8c__wasmsimd_x86_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p4c__wasmsimd_arm);
BENCHMARK_FP32_END2END(f32_dwconv_25p4c__wasmsimd_arm_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__wasmsimd_arm);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__wasmsimd_arm_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p4c__wasmsimd_x86);
BENCHMARK_FP32_END2END(f32_dwconv_25p4c__wasmsimd_x86_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__wasmsimd_x86);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__wasmsimd_x86_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_3f3m3l4c4s4r__wasmsimd_arm);
BENCHMARK_FP32_END2END(f32_dwconv_3f3m3l4c4s4r__wasmsimd_arm);
BENCHMARK_FP32_END2END(f32_dwconv_3f3m3l8c4s4r__wasmsimd_arm_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_3f3m3l8c4s4r__wasmsimd_arm_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l4c4s4r__wasmsimd_arm);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l4c4s4r__wasmsimd_arm_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_3f3m3l4c4s4r__wasmsimd_x86);
BENCHMARK_FP32_END2END(f32_dwconv_3f3m3l4c4s4r__wasmsimd_x86_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_3f3m3l8c4s4r__wasmsimd_x86);
BENCHMARK_FP32_END2END(f32_dwconv_3f3m3l8c4s4r__wasmsimd_x86_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l4c4s4r__wasmsimd_x86);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l4c4s4r__wasmsimd_x86_acc2);
#endif // XNN_ARCH_WASMSIMD || XNN_ARCH_WASMRELAXEDSIMD
#if XNN_ARCH_WASMRELAXEDSIMD
static void f32_dwconv_25p4c__wasmrelaxedsimd(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p4c__wasmrelaxedsimd,
xnn_f32_dwconv_ukernel_25p4c__wasmrelaxedsimd_fma,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p4c__wasmrelaxedsimd_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p4c__wasmrelaxedsimd_acc2,
xnn_f32_dwconv_ukernel_25p4c__wasmrelaxedsimd_fma,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p4c__wasmrelaxedsimd_fma(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p4c__wasmrelaxedsimd_fma,
xnn_f32_dwconv_ukernel_25p4c__wasmrelaxedsimd_fma,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p4c__wasmrelaxedsimd_fma_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p4c__wasmrelaxedsimd_fma_acc2,
xnn_f32_dwconv_ukernel_25p4c__wasmrelaxedsimd_fma,
xnn_init_f32_minmax_scalar_params,
4 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p8c__wasmrelaxedsimd(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__wasmrelaxedsimd,
xnn_f32_dwconv_ukernel_25p8c__wasmrelaxedsimd_fma,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p8c__wasmrelaxedsimd_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__wasmrelaxedsimd_acc2,
xnn_f32_dwconv_ukernel_25p8c__wasmrelaxedsimd_fma,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p8c__wasmrelaxedsimd_fma(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__wasmrelaxedsimd_fma,
xnn_f32_dwconv_ukernel_25p8c__wasmrelaxedsimd_fma,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p8c__wasmrelaxedsimd_fma_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p8c__wasmrelaxedsimd_fma_acc2,
xnn_f32_dwconv_ukernel_25p8c__wasmrelaxedsimd_fma,
xnn_init_f32_minmax_scalar_params,
8 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_5f5m5l4c4s4r__wasmrelaxedsimd(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l4c4s4r__wasmrelaxedsimd,
/*dwconv=*/xnn_f32_dwconv_ukernel_5f5m5l4c4s4r__wasmrelaxedsimd_fma,
xnn_init_f32_minmax_wasmsimd_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_5f5m5l4c4s4r__wasmrelaxedsimd_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l4c4s4r__wasmrelaxedsimd_acc2,
/*dwconv=*/xnn_f32_dwconv_ukernel_5f5m5l4c4s4r__wasmrelaxedsimd_fma_acc2,
xnn_init_f32_minmax_wasmsimd_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_5f5m5l4c4s4r__wasmrelaxedsimd_fma(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l4c4s4r__wasmrelaxedsimd_fma,
/*dwconv=*/xnn_f32_dwconv_ukernel_5f5m5l4c4s4r__wasmrelaxedsimd_fma,
xnn_init_f32_minmax_wasmsimd_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_5f5m5l4c4s4r__wasmrelaxedsimd_fma_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l4c4s4r__wasmrelaxedsimd_fma_acc2,
/*dwconv=*/xnn_f32_dwconv_ukernel_5f5m5l4c4s4r__wasmrelaxedsimd_fma_acc2,
xnn_init_f32_minmax_wasmsimd_params,
/*channel_tile=*/4, /*channel_subtile=*/4, /*channel_round=*/4,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
BENCHMARK_FP32_END2END(f32_dwconv_25p4c__wasmrelaxedsimd);
BENCHMARK_FP32_END2END(f32_dwconv_25p4c__wasmrelaxedsimd_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__wasmrelaxedsimd);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__wasmrelaxedsimd_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p4c__wasmrelaxedsimd_fma);
BENCHMARK_FP32_END2END(f32_dwconv_25p4c__wasmrelaxedsimd_fma_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__wasmrelaxedsimd_fma);
BENCHMARK_FP32_END2END(f32_dwconv_25p8c__wasmrelaxedsimd_fma_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l4c4s4r__wasmrelaxedsimd);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l4c4s4r__wasmrelaxedsimd_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l4c4s4r__wasmrelaxedsimd_fma);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l4c4s4r__wasmrelaxedsimd_fma_acc2);
#endif // XNN_ARCH_WASMRELAXEDSIMD
static void f32_dwconv_9p1c__scalar(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p1c__scalar,
xnn_f32_dwconv_ukernel_9p1c__scalar,
xnn_init_f32_minmax_scalar_params,
1 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_9p1c__scalar_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p1c__scalar_acc2,
xnn_f32_dwconv_ukernel_9p1c__scalar_acc2,
xnn_init_f32_minmax_scalar_params,
1 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_9p2c__scalar(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p2c__scalar,
xnn_f32_dwconv_ukernel_9p2c__scalar,
xnn_init_f32_minmax_scalar_params,
2 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_9p2c__scalar_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_9p2c__scalar_acc2,
xnn_f32_dwconv_ukernel_9p2c__scalar_acc2,
xnn_init_f32_minmax_scalar_params,
2 /* channel tile */, 9 /* primary tile */);
}
static void f32_dwconv_25p1c__scalar(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p1c__scalar,
xnn_f32_dwconv_ukernel_25p1c__scalar,
xnn_init_f32_minmax_scalar_params,
1 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_25p1c__scalar_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_25p1c__scalar_acc2,
xnn_f32_dwconv_ukernel_25p1c__scalar,
xnn_init_f32_minmax_scalar_params,
1 /* channel tile */, 25 /* primary tile */);
}
static void f32_dwconv_2f2m2l1c1s1r__scalar(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_2f2m2l1c1s1r__scalar,
/*dwconv=*/xnn_f32_dwconv_ukernel_2f2m2l1c1s1r__scalar,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/1, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/2, /*middle_tile=*/2, /*last_tile=*/2,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_2f2m2l1c1s1r__scalar_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_2f2m2l1c1s1r__scalar_acc2,
/*dwconv=*/xnn_f32_dwconv_ukernel_2f2m2l1c1s1r__scalar_acc2,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/1, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/2, /*middle_tile=*/2, /*last_tile=*/2,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_2f2m2l4c1s1r__scalar(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_2f2m2l4c1s1r__scalar,
/*dwconv=*/xnn_f32_dwconv_ukernel_2f2m2l4c1s1r__scalar,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/4, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/2, /*middle_tile=*/2, /*last_tile=*/2,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_2f2m2l4c1s1r__scalar_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_2f2m2l4c1s1r__scalar_acc2,
/*dwconv=*/xnn_f32_dwconv_ukernel_2f2m2l4c1s1r__scalar_acc2,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/4, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/2, /*middle_tile=*/2, /*last_tile=*/2,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_5f5m5l1c1s1r__scalar(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l1c1s1r__scalar,
/*dwconv=*/xnn_f32_dwconv_ukernel_5f5m5l1c1s1r__scalar,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/1, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_5f5m5l1c1s1r__scalar_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_5f5m5l1c1s1r__scalar_acc2,
/*dwconv=*/xnn_f32_dwconv_ukernel_5f5m5l1c1s1r__scalar_acc2,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/1, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/5, /*middle_tile=*/5, /*last_tile=*/5,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_6f6m7l1c1s1r__scalar(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l1c1s1r__scalar,
/*dwconv=*/xnn_f32_dwconv_ukernel_6f6m7l1c1s1r__scalar,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/1, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_6f6m7l1c1s1r__scalar_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_6f6m7l1c1s1r__scalar_acc2,
/*dwconv=*/xnn_f32_dwconv_ukernel_6f6m7l1c1s1r__scalar_acc2,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/1, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/6, /*middle_tile=*/6, /*last_tile=*/7,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_8f8m9l1c1s1r__scalar(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l1c1s1r__scalar,
/*dwconv=*/xnn_f32_dwconv_ukernel_8f8m9l1c1s1r__scalar,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/1, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25);
}
static void f32_dwconv_8f8m9l1c1s1r__scalar_acc2(benchmark::State& state, models::ExecutionPlanFactory model) {
DWConvEnd2EndBenchmark(state, model,
xnn_f32_dwconv_minmax_ukernel_8f8m9l1c1s1r__scalar_acc2,
/*dwconv=*/xnn_f32_dwconv_ukernel_8f8m9l1c1s1r__scalar_acc2,
xnn_init_f32_minmax_scalar_params,
/*channel_tile=*/1, /*channel_subtile=*/1, /*channel_round=*/1,
/*primary_tile=*/8, /*middle_tile=*/8, /*last_tile=*/9,
/*primary_tile_to_replace=*/25);
}
BENCHMARK_FP32_END2END(f32_dwconv_9p1c__scalar);
BENCHMARK_FP32_END2END(f32_dwconv_9p1c__scalar_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_9p2c__scalar);
BENCHMARK_FP32_END2END(f32_dwconv_9p2c__scalar_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_25p1c__scalar);
BENCHMARK_FP32_END2END(f32_dwconv_25p1c__scalar_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_2f2m2l1c1s1r__scalar);
BENCHMARK_FP32_END2END(f32_dwconv_2f2m2l1c1s1r__scalar_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_2f2m2l4c1s1r__scalar);
BENCHMARK_FP32_END2END(f32_dwconv_2f2m2l4c1s1r__scalar_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l1c1s1r__scalar);
BENCHMARK_FP32_END2END(f32_dwconv_5f5m5l1c1s1r__scalar_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l1c1s1r__scalar);
BENCHMARK_FP32_END2END(f32_dwconv_6f6m7l1c1s1r__scalar_acc2);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l1c1s1r__scalar);
BENCHMARK_FP32_END2END(f32_dwconv_8f8m9l1c1s1r__scalar_acc2);
#ifndef XNNPACK_BENCHMARK_NO_MAIN
BENCHMARK_MAIN();
#endif