mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 05:06:44 +01:00
Add Hardware Abstraction Layer (#56)
This commit is contained in:
committed by
GitHub
parent
833520b163
commit
0e0745065e
35
backend/src/implementation/cpu_spqlios/test/vec_znx_fft64.rs
Normal file
35
backend/src/implementation/cpu_spqlios/test/vec_znx_fft64.rs
Normal file
@@ -0,0 +1,35 @@
|
||||
use crate::{
|
||||
hal::{
|
||||
api::ModuleNew,
|
||||
layouts::Module,
|
||||
tests::vec_znx::{
|
||||
test_vec_znx_add_normal, test_vec_znx_encode_vec_i64_hi_norm, test_vec_znx_encode_vec_i64_lo_norm,
|
||||
test_vec_znx_fill_uniform,
|
||||
},
|
||||
},
|
||||
implementation::cpu_spqlios::FFT64,
|
||||
};
|
||||
|
||||
#[test]
|
||||
fn test_vec_znx_fill_uniform_fft64() {
|
||||
let module: Module<FFT64> = Module::<FFT64>::new(1 << 12);
|
||||
test_vec_znx_fill_uniform(&module);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_vec_znx_add_normal_fft64() {
|
||||
let module: Module<FFT64> = Module::<FFT64>::new(1 << 12);
|
||||
test_vec_znx_add_normal(&module);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_vec_znx_encode_vec_lo_norm_fft64() {
|
||||
let module: Module<FFT64> = Module::<FFT64>::new(1 << 8);
|
||||
test_vec_znx_encode_vec_i64_lo_norm(&module);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_vec_znx_encode_vec_hi_norm_fft64() {
|
||||
let module: Module<FFT64> = Module::<FFT64>::new(1 << 8);
|
||||
test_vec_znx_encode_vec_i64_hi_norm(&module);
|
||||
}
|
||||
Reference in New Issue
Block a user