|
|
|
|
|
|
|
|
|
|
|
#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 ) != 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; |
|
} |
|
|
|
|
|
struct xnn_dwconv_config saved_dwconv_params[XNN_MAX_F32_DWCONV_UKERNELS]; |
|
memcpy(saved_dwconv_params, dwconv_config, sizeof(saved_dwconv_params)); |
|
|
|
|
|
for (size_t i = 0; i < XNN_MAX_F32_DWCONV_UKERNELS; i++) { |
|
|
|
if (dwconv_config[i].primary_tile == primary_tile) { |
|
std::memset(&dwconv_config[i], 0, sizeof(dwconv_config[i])); |
|
|
|
|
|
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; |
|
} |
|
|
|
|
|
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 ) != 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; |
|
} |
|
|
|
|
|
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 = true; |
|
} |
|
} |
|
|
|
if (!found) { |
|
state.SkipWithError("can't replace with multipass"); |
|
return; |
|
} |
|
|
|
|
|
for (size_t i = 0; i < XNN_MAX_F32_DWCONV_UKERNELS; i++) { |
|
|
|
if (dwconv_config[i].primary_tile == primary_tile_to_replace || |
|
dwconv_config[i].last_tile != 0) { |
|
|
|
|
|
|
|
std::memset(&dwconv_config[i], 0, sizeof(dwconv_config[i])); |
|
|
|
|
|
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; |
|
} |
|
|
|
|
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4 , 9 ); |
|
} |
|
|
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4 , 9 ); |
|
} |
|
|
|
BENCHMARK_FP32_END2END(f32_dwconv_9p4c__asm_aarch64_neonfma); |
|
BENCHMARK_FP32_END2END(f32_dwconv_9p4c__asm_aarch64_neonfma_cortex_a55); |
|
#endif |
|
|
|
#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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4 , 9 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4 , 9 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8 , 9 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8 , 9 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
16 , 9 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
16 , 9 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4 , 9 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4 , 9 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8 , 9 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8 , 9 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
16 , 9 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
16 , 9 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8 , 25 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8 , 25 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4, 4, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4, 4, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8, 4, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8, 4, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4, 4, 4, |
|
6, 6, 7, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4, 4, 4, |
|
6, 6, 7, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8, 4, 4, |
|
6, 6, 7, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8, 4, 4, |
|
6, 6, 7, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4, 4, 4, |
|
8, 8, 9, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4, 4, 4, |
|
8, 8, 9, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8, 4, 4, |
|
8, 8, 9, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8, 4, 4, |
|
8, 8, 9, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8 , 25 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8 , 25 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4, 4, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4, 4, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8, 4, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8, 4, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4, 4, 4, |
|
6, 6, 7, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4, 4, 4, |
|
6, 6, 7, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8, 4, 4, |
|
6, 6, 7, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8, 4, 4, |
|
6, 6, 7, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4, 4, 4, |
|
8, 9, 8, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
4, 4, 4, |
|
8, 9, 8, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8, 4, 4, |
|
8, 9, 8, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
8, 4, 4, |
|
8, 9, 8, |
|
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 |
|
|
|
|
|
#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 , |
|
xnn_init_f32_minmax_sse_params, |
|
4 , 9 ); |
|
} |
|
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 , |
|
xnn_init_f32_minmax_sse_params, |
|
4 , 9 ); |
|
} |
|
static void f32_dwconv_9p8c__sse(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_9p8c__sse, |
|
nullptr , |
|
xnn_init_f32_minmax_sse_params, |
|
8 , 9 ); |
|
} |
|
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 , |
|
xnn_init_f32_minmax_sse_params, |
|
8 , 9 ); |
|
} |
|
|
|
static void f32_dwconv_25p4c__sse(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_25p4c__sse, |
|
nullptr , |
|
xnn_init_f32_minmax_sse_params, |
|
4 , 25 ); |
|
} |
|
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 , |
|
xnn_init_f32_minmax_sse_params, |
|
4 , 25 ); |
|
} |
|
static void f32_dwconv_25p8c__sse(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_25p8c__sse, |
|
nullptr , |
|
xnn_init_f32_minmax_sse_params, |
|
8 , 25 ); |
|
} |
|
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 , |
|
xnn_init_f32_minmax_sse_params, |
|
8 , 25 ); |
|
} |
|
|
|
static void f32_dwconv_5f5m5l4c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_5f5m5l4c4s4r__sse, |
|
nullptr , |
|
xnn_init_f32_minmax_sse_params, |
|
4, 4, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_sse_params, |
|
4, 4, 4, |
|
5, 5, 5, |
|
25); |
|
} |
|
static void f32_dwconv_5f5m5l8c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_5f5m5l8c4s4r__sse, |
|
nullptr , |
|
xnn_init_f32_minmax_sse_params, |
|
8, 4, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_sse_params, |
|
8, 4, 4, |
|
5, 5, 5, |
|
25); |
|
} |
|
static void f32_dwconv_5f5m5l16c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_5f5m5l16c4s4r__sse, |
|
nullptr , |
|
xnn_init_f32_minmax_sse_params, |
|
16, 4, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_sse_params, |
|
16, 4, 4, |
|
5, 5, 5, |
|
25); |
|
} |
|
|
|
static void f32_dwconv_6f6m7l4c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_6f6m7l4c4s4r__sse, |
|
nullptr , |
|
xnn_init_f32_minmax_sse_params, |
|
4, 4, 4, |
|
6, 6, 7, |
|
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 , |
|
xnn_init_f32_minmax_sse_params, |
|
4, 4, 4, |
|
6, 6, 7, |
|
25); |
|
} |
|
static void f32_dwconv_6f6m7l8c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_6f6m7l8c4s4r__sse, |
|
nullptr , |
|
xnn_init_f32_minmax_sse_params, |
|
8, 4, 4, |
|
6, 6, 7, |
|
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 , |
|
xnn_init_f32_minmax_sse_params, |
|
8, 4, 4, |
|
6, 6, 7, |
|
25); |
|
} |
|
static void f32_dwconv_6f6m7l16c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_6f6m7l16c4s4r__sse, |
|
nullptr , |
|
xnn_init_f32_minmax_sse_params, |
|
16, 4, 4, |
|
6, 6, 7, |
|
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 , |
|
xnn_init_f32_minmax_sse_params, |
|
16, 4, 4, |
|
6, 6, 7, |
|
25); |
|
} |
|
|
|
static void f32_dwconv_8f8m9l4c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_8f8m9l4c4s4r__sse, |
|
nullptr , |
|
xnn_init_f32_minmax_sse_params, |
|
4, 4, 4, |
|
8, 8, 9, |
|
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 , |
|
xnn_init_f32_minmax_sse_params, |
|
4, 4, 4, |
|
8, 8, 9, |
|
25); |
|
} |
|
static void f32_dwconv_8f8m9l8c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_8f8m9l8c4s4r__sse, |
|
nullptr , |
|
xnn_init_f32_minmax_sse_params, |
|
8, 4, 4, |
|
8, 8, 9, |
|
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 , |
|
xnn_init_f32_minmax_sse_params, |
|
8, 4, 4, |
|
8, 8, 9, |
|
25); |
|
} |
|
static void f32_dwconv_8f8m9l16c4s4r__sse(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_8f8m9l16c4s4r__sse, |
|
nullptr , |
|
xnn_init_f32_minmax_sse_params, |
|
16, 4, 4, |
|
8, 8, 9, |
|
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 , |
|
xnn_init_f32_minmax_sse_params, |
|
16, 4, 4, |
|
8, 8, 9, |
|
25); |
|
} |
|
|
|
static void f32_dwconv_9p8c__avx(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_9p8c__avx, |
|
nullptr , |
|
xnn_init_f32_minmax_avx_params, |
|
8 , 9 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8 , 9 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16 , 9 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16 , 9 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8 , 25 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8 , 25 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16 , 25 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16 , 25 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8, 8, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8, 8, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16, 8, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16, 8, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8, 8, 4, |
|
6, 6, 7, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8, 8, 4, |
|
6, 6, 7, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16, 8, 4, |
|
6, 6, 7, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16, 8, 4, |
|
6, 6, 7, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8, 8, 4, |
|
8, 8, 9, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8, 8, 4, |
|
8, 8, 9, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16, 8, 4, |
|
8, 8, 9, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16, 8, 4, |
|
8, 8, 9, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8 , 3 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8 , 3 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16 , 3 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16 , 3 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8 , 4 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8 , 4 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16 , 4 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16 , 4 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8 , 9 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8 , 9 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16 , 9 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16 , 9 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8 , 25 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8 , 25 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16 , 25 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16 , 25 , 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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8, 8, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8, 8, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16, 8, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16, 8, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
32, 8, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
32, 8, 4, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8, 8, 4, |
|
7, 6, 6, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
8, 8, 4, |
|
7, 6, 6, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16, 8, 4, |
|
7, 6, 6, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
16, 8, 4, |
|
7, 6, 6, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
32, 8, 4, |
|
7, 6, 6, |
|
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 , |
|
xnn_init_f32_minmax_avx_params, |
|
32, 8, 4, |
|
7, 6, 6, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
16 , 9 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
16 , 9 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
32 , 9 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
32 , 9 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
16 , 25 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
16 , 25 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
32 , 25 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
32 , 25 , 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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
16, 16, 1, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
16, 16, 1, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
32, 16, 1, |
|
5, 5, 5, |
|
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 , |
|
xnn_init_f32_minmax_scalar_params, |
|
32, 16, 1, |
|
5, 5, 5, |
|
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 |
|
|
|
#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 , 9 ); |
|
} |
|
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 , 9 ); |
|
} |
|
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 , 25 ); |
|
} |
|
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 , 25 ); |
|
} |
|
|
|
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, |
|
1, 1, 1, |
|
3, 3, 3, |
|
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, |
|
1, 1, 1, |
|
3, 3, 3, |
|
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, |
|
1, 1, 1, |
|
5, 5, 5, |
|
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, |
|
1, 1, 1, |
|
5, 5, 5, |
|
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, |
|
1, 1, 1, |
|
6, 6, 7, |
|
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, |
|
1, 1, 1, |
|
6, 6, 7, |
|
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, |
|
1, 1, 1, |
|
8, 8, 9, |
|
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, |
|
1, 1, 1, |
|
8, 8, 9, |
|
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 |
|
|
|
|
|
#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 , 9 ); |
|
} |
|
|
|
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 , 9 ); |
|
} |
|
|
|
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 , 9 ); |
|
} |
|
|
|
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 , 9 ); |
|
} |
|
|
|
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 , 9 ); |
|
} |
|
|
|
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 , 9 ); |
|
} |
|
|
|
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 , 9 ); |
|
} |
|
|
|
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 , 9 ); |
|
} |
|
|
|
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 , 25 ); |
|
} |
|
|
|
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 , 25 ); |
|
} |
|
|
|
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 , 25 ); |
|
} |
|
|
|
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 , 25 ); |
|
} |
|
|
|
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 , 25 ); |
|
} |
|
|
|
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 , 25 ); |
|
} |
|
|
|
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 , 25 ); |
|
} |
|
|
|
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 , 25 ); |
|
} |
|
|
|
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, |
|
4, 4, 4, |
|
3, 3, 3, |
|
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, |
|
4, 4, 4, |
|
3, 3, 3, |
|
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, |
|
8, 4, 4, |
|
3, 3, 3, |
|
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, |
|
8, 4, 4, |
|
3, 3, 3, |
|
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, |
|
4, 4, 4, |
|
3, 3, 3, |
|
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, |
|
4, 4, 4, |
|
3, 3, 3, |
|
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, |
|
8, 4, 4, |
|
3, 3, 3, |
|
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, |
|
8, 4, 4, |
|
3, 3, 3, |
|
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, |
|
4, 4, 4, |
|
5, 5, 5, |
|
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, |
|
4, 4, 4, |
|
5, 5, 5, |
|
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, |
|
4, 4, 4, |
|
5, 5, 5, |
|
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, |
|
4, 4, 4, |
|
5, 5, 5, |
|
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 |
|
|
|
#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 , 25 ); |
|
} |
|
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 , 25 ); |
|
} |
|
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 , 25 ); |
|
} |
|
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 , 25 ); |
|
} |
|
|
|
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 , 25 ); |
|
} |
|
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 , 25 ); |
|
} |
|
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 , 25 ); |
|
} |
|
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 , 25 ); |
|
} |
|
|
|
static void f32_dwconv_5f5m5l4c4s4r__wasmrelaxedsimd(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_5f5m5l4c4s4r__wasmrelaxedsimd, |
|
xnn_f32_dwconv_ukernel_5f5m5l4c4s4r__wasmrelaxedsimd_fma, |
|
xnn_init_f32_minmax_wasmsimd_params, |
|
4, 4, 4, |
|
5, 5, 5, |
|
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, |
|
xnn_f32_dwconv_ukernel_5f5m5l4c4s4r__wasmrelaxedsimd_fma_acc2, |
|
xnn_init_f32_minmax_wasmsimd_params, |
|
4, 4, 4, |
|
5, 5, 5, |
|
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, |
|
xnn_f32_dwconv_ukernel_5f5m5l4c4s4r__wasmrelaxedsimd_fma, |
|
xnn_init_f32_minmax_wasmsimd_params, |
|
4, 4, 4, |
|
5, 5, 5, |
|
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, |
|
xnn_f32_dwconv_ukernel_5f5m5l4c4s4r__wasmrelaxedsimd_fma_acc2, |
|
xnn_init_f32_minmax_wasmsimd_params, |
|
4, 4, 4, |
|
5, 5, 5, |
|
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 |
|
|
|
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 , 9 ); |
|
} |
|
|
|
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 , 9 ); |
|
} |
|
|
|
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 , 9 ); |
|
} |
|
|
|
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 , 9 ); |
|
} |
|
|
|
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 , 25 ); |
|
} |
|
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 , 25 ); |
|
} |
|
|
|
static void f32_dwconv_2f2m2l1c1s1r__scalar(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_2f2m2l1c1s1r__scalar, |
|
xnn_f32_dwconv_ukernel_2f2m2l1c1s1r__scalar, |
|
xnn_init_f32_minmax_scalar_params, |
|
1, 1, 1, |
|
2, 2, 2, |
|
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, |
|
xnn_f32_dwconv_ukernel_2f2m2l1c1s1r__scalar_acc2, |
|
xnn_init_f32_minmax_scalar_params, |
|
1, 1, 1, |
|
2, 2, 2, |
|
25); |
|
} |
|
static void f32_dwconv_2f2m2l4c1s1r__scalar(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_2f2m2l4c1s1r__scalar, |
|
xnn_f32_dwconv_ukernel_2f2m2l4c1s1r__scalar, |
|
xnn_init_f32_minmax_scalar_params, |
|
4, 1, 1, |
|
2, 2, 2, |
|
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, |
|
xnn_f32_dwconv_ukernel_2f2m2l4c1s1r__scalar_acc2, |
|
xnn_init_f32_minmax_scalar_params, |
|
4, 1, 1, |
|
2, 2, 2, |
|
25); |
|
} |
|
static void f32_dwconv_5f5m5l1c1s1r__scalar(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_5f5m5l1c1s1r__scalar, |
|
xnn_f32_dwconv_ukernel_5f5m5l1c1s1r__scalar, |
|
xnn_init_f32_minmax_scalar_params, |
|
1, 1, 1, |
|
5, 5, 5, |
|
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, |
|
xnn_f32_dwconv_ukernel_5f5m5l1c1s1r__scalar_acc2, |
|
xnn_init_f32_minmax_scalar_params, |
|
1, 1, 1, |
|
5, 5, 5, |
|
25); |
|
} |
|
|
|
static void f32_dwconv_6f6m7l1c1s1r__scalar(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_6f6m7l1c1s1r__scalar, |
|
xnn_f32_dwconv_ukernel_6f6m7l1c1s1r__scalar, |
|
xnn_init_f32_minmax_scalar_params, |
|
1, 1, 1, |
|
6, 6, 7, |
|
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, |
|
xnn_f32_dwconv_ukernel_6f6m7l1c1s1r__scalar_acc2, |
|
xnn_init_f32_minmax_scalar_params, |
|
1, 1, 1, |
|
6, 6, 7, |
|
25); |
|
} |
|
|
|
static void f32_dwconv_8f8m9l1c1s1r__scalar(benchmark::State& state, models::ExecutionPlanFactory model) { |
|
DWConvEnd2EndBenchmark(state, model, |
|
xnn_f32_dwconv_minmax_ukernel_8f8m9l1c1s1r__scalar, |
|
xnn_f32_dwconv_ukernel_8f8m9l1c1s1r__scalar, |
|
xnn_init_f32_minmax_scalar_params, |
|
1, 1, 1, |
|
8, 8, 9, |
|
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, |
|
xnn_f32_dwconv_ukernel_8f8m9l1c1s1r__scalar_acc2, |
|
xnn_init_f32_minmax_scalar_params, |
|
1, 1, 1, |
|
8, 8, 9, |
|
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 |
|
|