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

Add an extra familiy/model combination used by AMD Steamrolller.
This commit is contained in:
Martin Kroeker 2017-04-19 20:03:23 +02:00 committed by GitHub
commit 35387edb8d
2 changed files with 3 additions and 1 deletions

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())

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())