Add XSIMD implementation
This commit is contained in:
@@ -16,3 +16,8 @@ if(USE_GPU)
|
||||
add_executable(benchmark_gpu benchmark_gpu.cpp)
|
||||
target_link_libraries(benchmark_gpu PRIVATE trigdx gpu)
|
||||
endif()
|
||||
|
||||
if(USE_XSIMD)
|
||||
add_executable(benchmark_lookup_xsimd benchmark_lookup_xsimd.cpp)
|
||||
target_link_libraries(benchmark_lookup_xsimd PRIVATE trigdx)
|
||||
endif()
|
||||
|
||||
13
benchmarks/benchmark_lookup_xsimd.cpp
Normal file
13
benchmarks/benchmark_lookup_xsimd.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <trigdx/lookup_xsimd.hpp>
|
||||
|
||||
#include "benchmark_utils.hpp"
|
||||
|
||||
int main() {
|
||||
benchmark_sinf<LookupXSIMDBackend<16384>>();
|
||||
benchmark_cosf<LookupXSIMDBackend<16384>>();
|
||||
benchmark_sincosf<LookupXSIMDBackend<16384>>();
|
||||
|
||||
benchmark_sinf<LookupXSIMDBackend<32768>>();
|
||||
benchmark_cosf<LookupXSIMDBackend<32768>>();
|
||||
benchmark_sincosf<LookupXSIMDBackend<32768>>();
|
||||
}
|
||||
Reference in New Issue
Block a user