File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ add_library (DistanceUtils STATIC
34
34
)
35
35
36
36
if (${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 )
38
39
endif ()
39
40
40
41
add_library (SPTAGLib SHARED ${SRC_FILES} ${HDR_FILES} )
Original file line number Diff line number Diff line change 8
8
9
9
#ifndef _MSC_VER
10
10
#include < cpuid.h>
11
- #include < xmmintrin.h>
12
- #include < immintrin.h>
11
+ #include < simde/x86/sse.h>
12
+ #include < simde/x86/avx.h>
13
+ #include < simde/x86/avx2.h>
14
+ #include < simde/x86/avx512.h>
15
+
16
+ // FIXME: remove when SIMDe supports these:
17
+ // https://github.com/simd-everywhere/simde/issues/961
18
+ #ifndef __mmask32
19
+ #define __mmask32 simde__mmask32
20
+ #endif
21
+
22
+ #ifndef __mmask64
23
+ #define __mmask64 simde__mmask64
24
+ #endif
25
+
26
+ #ifndef _mm512_setzero_ps
27
+ #define _mm512_setzero_ps simde_mm512_setzero_ps
28
+ #endif
13
29
14
30
void cpuid (int info[4 ], int InfoType);
15
31
You can’t perform that action at this time.
0 commit comments