Browse Source

Merge pull request #1160 from gcp/extra-streamroller-cpuid

Add an extra familiy/model combination used by AMD Steamrolller.
tags/v0.2.20^2
Martin Kroeker GitHub 8 years ago
parent
commit
35387edb8d
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      cpuid_x86.c
  2. +1
    -1
      driver/others/dynamic.c

+ 2
- 0
cpuid_x86.c View File

@@ -1304,6 +1304,7 @@ int get_cpuname(void){
else
return CPUTYPE_BARCELONA; //OS don't support AVX.
case 0:
case 8:
switch(exmodel){
case 1: //AMD Trinity
if(support_avx())
@@ -1839,6 +1840,7 @@ int get_coretype(void){
else
return CORE_BARCELONA; //OS don't support AVX.
case 0:
case 8:
switch(exmodel){
case 1: //AMD Trinity
if(support_avx())


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

@@ -365,7 +365,7 @@ static gotoblas_t *get_coretype(void){
openblas_warning(FALLBACK_VERBOSE, BARCELONA_FALLBACK);
return &gotoblas_BARCELONA; //OS doesn't support AVX. Use old kernels.
}
}else if(model == 0){
}else if(model == 0 || model == 8){
if (exmodel == 1) {
//AMD Trinity
if(support_avx())


Loading…
Cancel
Save