File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ add_library (DistanceUtils STATIC
3434 )
3535
3636if (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" )
37- target_compile_options (DistanceUtils PRIVATE -mavx2 -mavx -msse -msse2 -mavx512f -mavx512bw -mavx512dq -fPIC )
37+ target_compile_options (DistanceUtils PRIVATE -fPIC -fopenmp-simd -O3 )
38+ target_compile_definitions (DistanceUtils PRIVATE SIMDE_ENABLE_NATIVE_ALIASES SIMDE_ENABLE_OPENMP )
3839endif ()
3940
4041add_library (SPTAGLib SHARED ${SRC_FILES} ${HDR_FILES} )
Original file line number Diff line number Diff line change 1010
1111#ifndef _MSC_VER
1212#include < cpuid.h>
13- #include < xmmintrin.h>
14- #include < immintrin.h>
13+ #include < simde/x86/sse.h>
14+ #include < simde/x86/avx.h>
15+ #include < simde/x86/avx2.h>
16+ #include < simde/x86/avx512.h>
17+
18+ // FIXME: remove when SIMDe supports these:
19+ // https://github.com/simd-everywhere/simde/issues/961
20+ #ifndef __mmask32
21+ #define __mmask32 simde__mmask32
22+ #endif
23+
24+ #ifndef __mmask64
25+ #define __mmask64 simde__mmask64
26+ #endif
27+
28+ #ifndef _mm512_setzero_ps
29+ #define _mm512_setzero_ps simde_mm512_setzero_ps
30+ #endif
1531
1632void cpuid (int info[4 ], int InfoType);
1733
You can’t perform that action at this time.
0 commit comments