Add XSIMD implementation
This commit is contained in:
@@ -32,3 +32,9 @@ if(USE_GPU)
|
||||
target_link_libraries(test_gpu PRIVATE trigdx Catch2::Catch2WithMain)
|
||||
add_test(NAME test_gpu COMMAND test_gpu)
|
||||
endif()
|
||||
|
||||
if(USE_XSIMD)
|
||||
add_executable(test_lookup_xsimd test_lookup_xsimd.cpp)
|
||||
target_link_libraries(test_lookup_xsimd PRIVATE trigdx Catch2::Catch2WithMain)
|
||||
add_test(NAME test_lookup_xsimd COMMAND test_lookup_xsimd)
|
||||
endif()
|
||||
|
||||
19
tests/test_lookup_xsimd.cpp
Normal file
19
tests/test_lookup_xsimd.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <trigdx/lookup_xsimd.hpp>
|
||||
|
||||
#include "test_utils.hpp"
|
||||
|
||||
TEST_CASE("sincosf") {
|
||||
test_sincosf<LookupXSIMDBackend<16384>>(1e-2f);
|
||||
test_sincosf<LookupXSIMDBackend<32768>>(1e-2f);
|
||||
}
|
||||
|
||||
TEST_CASE("sinf") {
|
||||
test_sinf<LookupXSIMDBackend<16384>>(1e-2f);
|
||||
test_sinf<LookupXSIMDBackend<32768>>(1e-2f);
|
||||
}
|
||||
|
||||
TEST_CASE("cosf") {
|
||||
test_cosf<LookupXSIMDBackend<16384>>(1e-2f);
|
||||
test_cosf<LookupXSIMDBackend<32768>>(1e-2f);
|
||||
}
|
||||
Reference in New Issue
Block a user