Merge pull request #3970 from linouxis9/develop

Improve Intel Raptor Lake detection
This commit is contained in:
Martin Kroeker 2023-03-28 16:22:27 +02:00 committed by GitHub
commit 5d9d382e36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1547,6 +1547,8 @@ int get_cpuname(void){
case 11: //family 6 exmodel 11 case 11: //family 6 exmodel 11
switch (model) { switch (model) {
case 7: // Raptor Lake case 7: // Raptor Lake
case 10:
case 15:
if(support_avx2()) if(support_avx2())
return CPUTYPE_HASWELL; return CPUTYPE_HASWELL;
if(support_avx()) if(support_avx())
@ -2348,6 +2350,8 @@ int get_coretype(void){
case 11: case 11:
switch (model) { switch (model) {
case 7: // Raptor Lake case 7: // Raptor Lake
case 10:
case 15:
#ifndef NO_AVX2 #ifndef NO_AVX2
if(support_avx2()) if(support_avx2())
return CORE_HASWELL; return CORE_HASWELL;