Browse Source

Merge pull request #2688 from martin-frbg/cometlake

Add autodetection of Intel Comet Lake H and S models
tags/v0.3.11^2
Martin Kroeker GitHub 6 years ago
parent
commit
c467516132
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions
  1. +5
    -4
      cpuid_x86.c
  2. +1
    -1
      driver/others/dynamic.c

+ 5
- 4
cpuid_x86.c View File

@@ -1409,6 +1409,7 @@ int get_cpuname(void){
}
case 10: //family 6 exmodel 10
switch (model) {
case 5: // Comet Lake H and S
case 6: // Comet Lake U
if(support_avx2())
return CPUTYPE_HASWELL;
@@ -1967,16 +1968,16 @@ int get_coretype(void){
break;
case 10:
switch (model) {
case 6:
// Comet Lake U
case 5: // Comet Lake H and S
case 6: // Comet Lake U
if(support_avx())
#ifndef NO_AVX2
return CORE_HASWELL;
#else
return CORE_SANDYBRIDGE;
return CORE_SANDYBRIDGE;
#endif
else
return CORE_NEHALEM;
return CORE_NEHALEM;
}
case 5:
switch (model) {


+ 1
- 1
driver/others/dynamic.c View File

@@ -619,7 +619,7 @@ static gotoblas_t *get_coretype(void){
}
}
case 10:
if (model == 6) {
if (model == 5 || model == 6) {
if(support_avx2())
return &gotoblas_HASWELL;
if(support_avx()) {


Loading…
Cancel
Save