arnaucube
arnaucube/poulpyPublic Self-hosted repository
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(feature = "enable-avx", target_arch = "x86_64", target_feature = "avx2", target_feature = "fma")))]
 4fn bench_vmp_apply_dft_to_dft_cpu_avx_fft64(_c: &mut Criterion) {
 5    eprintln!("Skipping: AVX IFft benchmark requires x86_64 + AVX2 + FMA");
 6}
 7
 8#[cfg(all(feature = "enable-avx", target_arch = "x86_64", target_feature = "avx2", target_feature = "fma"))]
 9fn bench_vmp_apply_dft_to_dft_cpu_avx_fft64(c: &mut Criterion) {
10    use poulpy_cpu_avx::FFT64Avx;
11    poulpy_hal::bench_suite::vmp::bench_vmp_apply_dft_to_dft::<FFT64Avx>(c, "FFT64Avx");
12}
13
14criterion_group!(benches_x86, bench_vmp_apply_dft_to_dft_cpu_avx_fft64,);
15criterion_main!(benches_x86);