mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 05:06:44 +01:00
Update to non-avx builds
This commit is contained in:
@@ -1,21 +1,36 @@
|
||||
#![cfg(target_arch = "x86_64")]
|
||||
// poulpy-backend/benches/vec_znx_add.rs
|
||||
use criterion::{Criterion, criterion_group, criterion_main};
|
||||
use poulpy_cpu_avx::FFT64Avx;
|
||||
use poulpy_hal::reference::vec_znx::{bench_vec_znx_add, bench_vec_znx_automorphism, bench_vec_znx_normalize_inplace};
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[cfg(not(all(feature = "enable-avx", target_arch = "x86_64", target_feature = "avx2", target_feature = "fma")))]
|
||||
fn bench_vec_znx_add_cpu_avx_fft64(_c: &mut Criterion) {
|
||||
eprintln!("Skipping: AVX IFft benchmark requires x86_64 + AVX2 + FMA");
|
||||
}
|
||||
|
||||
#[cfg(all(feature = "enable-avx", target_arch = "x86_64", target_feature = "avx2", target_feature = "fma"))]
|
||||
fn bench_vec_znx_add_cpu_avx_fft64(c: &mut Criterion) {
|
||||
bench_vec_znx_add::<FFT64Avx>(c, "FFT64Avx");
|
||||
use poulpy_cpu_avx::FFT64Avx;
|
||||
poulpy_hal::reference::vec_znx::bench_vec_znx_add::<FFT64Avx>(c, "FFT64Avx");
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[cfg(not(all(feature = "enable-avx", target_arch = "x86_64", target_feature = "avx2", target_feature = "fma")))]
|
||||
fn bench_vec_znx_normalize_inplace_cpu_avx_fft64(_c: &mut Criterion) {
|
||||
eprintln!("Skipping: AVX IFft benchmark requires x86_64 + AVX2 + FMA");
|
||||
}
|
||||
|
||||
#[cfg(all(feature = "enable-avx", target_arch = "x86_64", target_feature = "avx2", target_feature = "fma"))]
|
||||
fn bench_vec_znx_normalize_inplace_cpu_avx_fft64(c: &mut Criterion) {
|
||||
bench_vec_znx_normalize_inplace::<FFT64Avx>(c, "FFT64Avx");
|
||||
use poulpy_cpu_avx::FFT64Avx;
|
||||
poulpy_hal::reference::vec_znx::bench_vec_znx_normalize_inplace::<FFT64Avx>(c, "FFT64Avx");
|
||||
}
|
||||
|
||||
#[cfg(not(all(feature = "enable-avx", target_arch = "x86_64", target_feature = "avx2", target_feature = "fma")))]
|
||||
fn bench_vec_znx_automorphism_cpu_avx_fft64(_c: &mut Criterion) {
|
||||
eprintln!("Skipping: AVX IFft benchmark requires x86_64 + AVX2 + FMA");
|
||||
}
|
||||
|
||||
#[cfg(all(feature = "enable-avx", target_arch = "x86_64", target_feature = "avx2", target_feature = "fma"))]
|
||||
fn bench_vec_znx_automorphism_cpu_avx_fft64(c: &mut Criterion) {
|
||||
bench_vec_znx_automorphism::<FFT64Avx>(c, "FFT64Avx");
|
||||
use poulpy_cpu_avx::FFT64Avx;
|
||||
poulpy_hal::reference::vec_znx::bench_vec_znx_automorphism::<FFT64Avx>(c, "FFT64Avx");
|
||||
}
|
||||
|
||||
criterion_group!(
|
||||
|
||||
Reference in New Issue
Block a user