poulpy/poulpy-cpu-avx/benches/vmp.rs
poulpy-cpu-avx/benches/vmp.rsRaw
1use criterion::{Criterion, criterion_group, criterion_main};
2
3#[cfg(not(all(
4 feature = "enable-avx",
5 target_arch = "x86_64",
6 target_feature = "avx2",
7 target_feature = "fma"
8)))]
9fn bench_vmp_apply_dft_to_dft_cpu_avx_fft64(_c: &mut Criterion) {
10 eprintln!("Skipping: AVX IFft benchmark requires x86_64 + AVX2 + FMA");
11}
12
13#[cfg(all(
14 feature = "enable-avx",
15 target_arch = "x86_64",
16 target_feature = "avx2",
17 target_feature = "fma"
18))]
19fn bench_vmp_apply_dft_to_dft_cpu_avx_fft64(c: &mut Criterion) {
20 use poulpy_cpu_avx::FFT64Avx;
21 poulpy_hal::bench_suite::vmp::bench_vmp_apply_dft_to_dft::<FFT64Avx>(c, "FFT64Avx");
22}
23
24criterion_group!(benches_x86, bench_vmp_apply_dft_to_dft_cpu_avx_fft64,);
25criterion_main!(benches_x86);