Skip to content

Commit fe2b5bf

Browse files
authored
Merge pull request #212 from r-devulap/buildfix-knl
Remove #error and fallback to AVX2 when compiled with just -mavx512f for static methods
2 parents 4ecca28 + f3c224a commit fe2b5bf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/x86simdsort-static-incl.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,7 @@ void x86simdsortStatic::partial_qsort<_Float16>(
197197
}
198198
#endif
199199

200-
#elif defined(__AVX512F__)
201-
#error "x86simdsort requires AVX512DQ and AVX512VL to be enabled in addition to AVX512F to use AVX512"
202-
203-
#elif defined(__AVX2__) && !defined(__AVX512F__)
200+
#elif defined(__AVX2__)
204201
/* 32-bit and 64-bit dtypes vector definitions on AVX2 */
205202
#include "avx2-32bit-half.hpp"
206203
#include "avx2-32bit-qsort.hpp"

0 commit comments

Comments
 (0)