Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mg/tests #20

Merged
merged 3 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ add_library(spqlios-testlib SHARED
testlib/negacyclic_polynomial.cpp
testlib/negacyclic_polynomial.h
testlib/negacyclic_polynomial_impl.h
testlib/reim4_elem.cpp
testlib/reim4_elem.h
testlib/fft64_dft.cpp
testlib/fft64_dft.h
testlib/fft64_layouts.h
testlib/fft64_layouts.cpp
testlib/test_hash.cpp
testlib/sha3.h
testlib/sha3.c
testlib/polynomial_vector.h
testlib/polynomial_vector.cpp
)
if (VALGRIND_DIR)
target_include_directories(spqlios-testlib PRIVATE ${VALGRIND_DIR})
Expand All @@ -60,6 +71,10 @@ add_executable(spqlios-test
spqlios_q120_ntt_test.cpp
spqlios_q120_arithmetic_test.cpp
spqlios_znx_small_test.cpp
spqlios_coeffs_arithmetic_test.cpp
spqlios_reim4_arithmetic_test.cpp
spqlios_vec_znx_big_test.cpp
spqlios_vmp_product_test.cpp
)
target_link_libraries(spqlios-test spqlios-testlib libspqlios ${gtest_libs})
target_include_directories(spqlios-test PRIVATE ${test_incs})
Expand All @@ -80,3 +95,10 @@ if (${X86})
target_link_libraries(spqlios-q120-arithmetic-bench libspqlios benchmark pthread)
target_include_directories(spqlios-q120-arithmetic-bench PRIVATE ${test_incs})
endif ()

if (${X86})
add_executable(spqlios_reim4_arithmetic_bench spqlios_reim4_arithmetic_bench.cpp)
target_compile_options(spqlios_reim4_arithmetic_bench PRIVATE "-march=native")
target_link_libraries(spqlios_reim4_arithmetic_bench benchmark libspqlios pthread)
target_include_directories(spqlios_reim4_arithmetic_bench PRIVATE ../)
endif ()
Loading
Loading