修复AVX512识别问题

This commit is contained in:
daiqingshuang 2024-07-05 11:21:22 +08:00
parent 16011d362c
commit d81551255a

View File

@ -51,7 +51,8 @@ inline std::vector<simd_type> get_simd_support_type() {
if (ebx & bit_AVX2) {
simd_types.push_back(simd_type::avx2);
}
if (ebx & bit_AVX512F) {
if (ebx & bit_AVX512F || ebx & bit_AVX512DQ || ebx & bit_AVX512VL || ebx & bit_AVX512BW ||
ebx & bit_AVX512PF || ebx & bit_AVX512IFMA || ebx & bit_AVX512CD || ebx & bit_AVX512ER) {
simd_types.push_back(simd_type::avx512);
}
#endif