fix(tulip): fix some SIMD issues
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
#ifndef TULIP_SIMD_CONFIG_HPP
|
||||
#define TULIP_SIMD_CONFIG_HPP
|
||||
|
||||
#if defined(__AVX__) || defined(__AVX2__)
|
||||
#include <immintrin.h>
|
||||
#endif
|
||||
|
||||
namespace tulip {
|
||||
namespace simd {
|
||||
|
||||
@@ -10,12 +14,10 @@ struct avx2_isa {};
|
||||
|
||||
#ifdef __AVX__
|
||||
#define TULIP_AVX_SUPPORTED
|
||||
#include <immintrin.h>
|
||||
#endif // __AVX__
|
||||
|
||||
#ifdef __AVX2__
|
||||
#define TULIP_AVX2_SUPPORTED
|
||||
#include <immintrin.h>
|
||||
#endif // __AVX2__
|
||||
|
||||
} // namespace simd
|
||||
|
||||
Reference in New Issue
Block a user