I am facing an issue with the Intel C++ compiler. When I use the "immintrin.h" library, I should be able to use _pext_u64 (it works without issue with the Visual Studio compiler), but I'm getting the following error:
Code: Select all
use of undeclared identifier '_pext_u64'
Code: Select all
"always_inline function '_pext_u64' requires target feature 'bmi2', but would be inlined into function 'getBishopAttacks' that is compiled without support for 'bmi2'"
Code: Select all
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
defined(__BMI2__) || defined(__M_INTRINSIC_PROMOTE__)
#include <bmi2intrin.h>
#endif
I would like to keep using the Intel compiler because it yields better speed results.
I'm hoping some of you have an idea how to solve this! Thanks.