mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 05:06:44 +01:00
Non-avx build (wip)
This commit is contained in:
@@ -8,8 +8,11 @@ use poulpy_core::{
|
||||
GLWESecretPreparedFactory, LWE, LWELayout, LWESecret,
|
||||
},
|
||||
};
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
use poulpy_cpu_avx::FFT64Avx;
|
||||
#[cfg(not(target_arch = "x86_64"))]
|
||||
use poulpy_cpu_ref::FFT64Ref;
|
||||
|
||||
use poulpy_hal::{
|
||||
api::{ModuleN, ModuleNew, ScratchOwnedAlloc, ScratchOwnedBorrow, VecZnxRotateInplace},
|
||||
layouts::{Backend, Module, Scratch, ScratchOwned},
|
||||
@@ -180,18 +183,18 @@ where
|
||||
group.finish();
|
||||
}
|
||||
|
||||
#[cfg(not(target_arch = "x86_64"))]
|
||||
fn bench_circuit_bootstrapping_cpu_ref_fft64(c: &mut Criterion) {
|
||||
benc_circuit_bootstrapping::<FFT64Ref, CGGI>(c, "fft64_ref");
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
fn bench_circuit_bootstrapping_cpu_avx_fft64(c: &mut Criterion) {
|
||||
benc_circuit_bootstrapping::<FFT64Avx, CGGI>(c, "fft64_avx");
|
||||
}
|
||||
|
||||
criterion_group!(
|
||||
benches,
|
||||
bench_circuit_bootstrapping_cpu_ref_fft64,
|
||||
bench_circuit_bootstrapping_cpu_avx_fft64,
|
||||
);
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
criterion_group!(benches, bench_circuit_bootstrapping_cpu_ref_fft64, bench_circuit_bootstrapping_cpu_avx_fft64,);
|
||||
#[cfg(not(target_arch = "x86_64"))]
|
||||
criterion_group!(benches, bench_circuit_bootstrapping_cpu_ref_fft64,);
|
||||
criterion_main!(benches);
|
||||
|
||||
@@ -2,7 +2,7 @@ use std::sync::LazyLock;
|
||||
|
||||
use poulpy_cpu_ref::FFT64Ref;
|
||||
|
||||
use crate::tfhe::{bdd_arithmetic::tests::test_suite, blind_rotation::CGGI};
|
||||
use crate::bin_fhe::{bdd_arithmetic::tests::test_suite, blind_rotation::CGGI};
|
||||
|
||||
static TEST_CONTEXT_CGGI_FFT64_REF: LazyLock<test_suite::TestContext<CGGI, FFT64Ref>> =
|
||||
LazyLock::new(|| test_suite::TestContext::<CGGI, FFT64Ref>::new());
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use poulpy_cpu_ref::FFT64Ref;
|
||||
use poulpy_hal::{api::ModuleNew, layouts::Module};
|
||||
|
||||
use crate::tfhe::blind_rotation::{
|
||||
use crate::bin_fhe::blind_rotation::{
|
||||
CGGI,
|
||||
tests::test_suite::{
|
||||
generic_blind_rotation::test_blind_rotation,
|
||||
|
||||
Reference in New Issue
Block a user