mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 05:06:44 +01:00
Backend refactor (#120)
* remove spqlios, split cpu_ref and cpu_avx into different crates * remove spqlios submodule * update crate naming & add avx tests
This commit is contained in:
committed by
GitHub
parent
84598e42fe
commit
9e007c988f
28
poulpy-cpu-ref/benches/vec_znx.rs
Normal file
28
poulpy-cpu-ref/benches/vec_znx.rs
Normal file
@@ -0,0 +1,28 @@
|
||||
// poulpy-backend/benches/vec_znx_add.rs
|
||||
use criterion::{Criterion, criterion_group, criterion_main};
|
||||
use poulpy_cpu_ref::FFT64Ref;
|
||||
use poulpy_hal::reference::vec_znx::{bench_vec_znx_add, bench_vec_znx_automorphism, bench_vec_znx_normalize_inplace};
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn bench_vec_znx_add_cpu_ref_fft64(c: &mut Criterion) {
|
||||
bench_vec_znx_add::<FFT64Ref>(c, "cpu_spqlios::fft64");
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn bench_vec_znx_normalize_inplace_cpu_ref_fft64(c: &mut Criterion) {
|
||||
bench_vec_znx_normalize_inplace::<FFT64Ref>(c, "cpu_ref::fft64");
|
||||
}
|
||||
|
||||
fn bench_vec_znx_automorphism_cpu_ref_fft64(c: &mut Criterion) {
|
||||
bench_vec_znx_automorphism::<FFT64Ref>(c, "cpu_ref::fft64");
|
||||
}
|
||||
|
||||
criterion_group!(
|
||||
benches,
|
||||
// bench_vec_znx_add_cpu_spqlios_fft64,
|
||||
// bench_vec_znx_add_cpu_ref_fft64,
|
||||
// bench_vec_znx_normalize_inplace_cpu_ref_fft64,
|
||||
// bench_vec_znx_normalize_inplace_cpu_spqlios_fft64,
|
||||
bench_vec_znx_automorphism_cpu_ref_fft64,
|
||||
);
|
||||
criterion_main!(benches);
|
||||
Reference in New Issue
Block a user