Merge pull request #1111 from martin-frbg/kaby-no-avx

Fix core detection for Kaby Lake without AVX (G4560)
This commit is contained in:
Martin Kroeker 2017-03-02 18:43:59 +01:00 committed by GitHub
commit 4227049c7d
1 changed files with 8 additions and 1 deletions

View File

@ -1777,7 +1777,14 @@ int get_coretype(void){
case 9:
case 8:
if (model == 14) // Kaby Lake
return CORE_HASWELL;
if(support_avx())
#ifndef NO_AVX2
return CORE_HASWELL;
#else
return CORE_SANDYBRIDGE;
#endif
else
return CORE_NEHALEM;
}
break;