Skip to content

Commit d63ff44

Browse files
authored
Merge pull request #20 from tfhe/mg/tests
Mg/tests
2 parents 0d3127c + 0e544ea commit d63ff44

17 files changed

+2276
-0
lines changed

test/CMakeLists.txt

+22
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ add_library(spqlios-testlib SHARED
4141
testlib/negacyclic_polynomial.cpp
4242
testlib/negacyclic_polynomial.h
4343
testlib/negacyclic_polynomial_impl.h
44+
testlib/reim4_elem.cpp
45+
testlib/reim4_elem.h
46+
testlib/fft64_dft.cpp
47+
testlib/fft64_dft.h
48+
testlib/fft64_layouts.h
49+
testlib/fft64_layouts.cpp
50+
testlib/test_hash.cpp
51+
testlib/sha3.h
52+
testlib/sha3.c
53+
testlib/polynomial_vector.h
54+
testlib/polynomial_vector.cpp
4455
)
4556
if (VALGRIND_DIR)
4657
target_include_directories(spqlios-testlib PRIVATE ${VALGRIND_DIR})
@@ -60,6 +71,10 @@ add_executable(spqlios-test
6071
spqlios_q120_ntt_test.cpp
6172
spqlios_q120_arithmetic_test.cpp
6273
spqlios_znx_small_test.cpp
74+
spqlios_coeffs_arithmetic_test.cpp
75+
spqlios_reim4_arithmetic_test.cpp
76+
spqlios_vec_znx_big_test.cpp
77+
spqlios_vmp_product_test.cpp
6378
)
6479
target_link_libraries(spqlios-test spqlios-testlib libspqlios ${gtest_libs})
6580
target_include_directories(spqlios-test PRIVATE ${test_incs})
@@ -80,3 +95,10 @@ if (${X86})
8095
target_link_libraries(spqlios-q120-arithmetic-bench libspqlios benchmark pthread)
8196
target_include_directories(spqlios-q120-arithmetic-bench PRIVATE ${test_incs})
8297
endif ()
98+
99+
if (${X86})
100+
add_executable(spqlios_reim4_arithmetic_bench spqlios_reim4_arithmetic_bench.cpp)
101+
target_compile_options(spqlios_reim4_arithmetic_bench PRIVATE "-march=native")
102+
target_link_libraries(spqlios_reim4_arithmetic_bench benchmark libspqlios pthread)
103+
target_include_directories(spqlios_reim4_arithmetic_bench PRIVATE ../)
104+
endif ()

0 commit comments

Comments
 (0)