Add LookupAVXBackend
This commit is contained in:
@@ -4,6 +4,9 @@ target_link_libraries(benchmark_reference PRIVATE trigdx)
|
||||
add_executable(benchmark_lookup benchmark_lookup.cpp)
|
||||
target_link_libraries(benchmark_lookup PRIVATE trigdx)
|
||||
|
||||
add_executable(benchmark_lookup_avx benchmark_lookup_avx.cpp)
|
||||
target_link_libraries(benchmark_lookup_avx PRIVATE trigdx)
|
||||
|
||||
if(USE_MKL)
|
||||
add_executable(benchmark_mkl benchmark_mkl.cpp)
|
||||
target_link_libraries(benchmark_mkl PRIVATE trigdx)
|
||||
|
||||
13
benchmarks/benchmark_lookup_avx.cpp
Normal file
13
benchmarks/benchmark_lookup_avx.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <trigdx/lookup_avx.hpp>
|
||||
|
||||
#include "benchmark_utils.hpp"
|
||||
|
||||
int main() {
|
||||
benchmark_sinf<LookupAVXBackend<16384>>();
|
||||
benchmark_cosf<LookupAVXBackend<16384>>();
|
||||
benchmark_sincosf<LookupAVXBackend<16384>>();
|
||||
|
||||
benchmark_sinf<LookupAVXBackend<32768>>();
|
||||
benchmark_cosf<LookupAVXBackend<32768>>();
|
||||
benchmark_sincosf<LookupAVXBackend<32768>>();
|
||||
}
|
||||
Reference in New Issue
Block a user