summaryrefslogtreecommitdiff
path: root/cpuid_x86.c
diff options
context:
space:
mode:
authorWerner Saar <wernsaar@googlemail.com>2014-12-28 20:16:46 +0800
committerWerner Saar <wernsaar@googlemail.com>2014-12-28 20:16:46 +0800
commit4319769b79c24cc5ca5559a53b37241d4770c322 (patch)
treeb0b9c30483315ebbf677821af7ae3be1c716b27c /cpuid_x86.c
parentcbb3ab80e73f04ebe5b4c6899ec11be9761ac5c0 (diff)
downloadopenblas-4319769b79c24cc5ca5559a53b37241d4770c322.tar.gz
openblas-4319769b79c24cc5ca5559a53b37241d4770c322.tar.bz2
openblas-4319769b79c24cc5ca5559a53b37241d4770c322.zip
added target processor STEAMROLLER
Diffstat (limited to 'cpuid_x86.c')
-rw-r--r--cpuid_x86.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/cpuid_x86.c b/cpuid_x86.c
index 44446e582..ef90b26d8 100644
--- a/cpuid_x86.c
+++ b/cpuid_x86.c
@@ -1162,6 +1162,12 @@ int get_cpuname(void){
return CPUTYPE_PILEDRIVER;
else
return CPUTYPE_BARCELONA; //OS don't support AVX.
+ case 0:
+ if(support_avx())
+ return CPUTYPE_STEAMROLLER;
+ else
+ return CPUTYPE_BARCELONA; //OS don't support AVX.
+
}
break;
case 5:
@@ -1290,6 +1296,7 @@ static char *cpuname[] = {
"BULLDOZER",
"PILEDRIVER",
"HASWELL",
+ "STEAMROLLER",
};
static char *lowercpuname[] = {
@@ -1341,6 +1348,7 @@ static char *lowercpuname[] = {
"bulldozer",
"piledriver",
"haswell",
+ "steamroller",
};
static char *corename[] = {
@@ -1369,6 +1377,7 @@ static char *corename[] = {
"BULLDOZER",
"PILEDRIVER",
"HASWELL",
+ "STEAMROLLER",
};
static char *corename_lower[] = {
@@ -1397,6 +1406,7 @@ static char *corename_lower[] = {
"bulldozer",
"piledriver",
"haswell",
+ "steamroller",
};
@@ -1562,7 +1572,15 @@ int get_coretype(void){
return CORE_PILEDRIVER;
else
return CORE_BARCELONA; //OS don't support AVX.
+
+ case 0:
+ if(support_avx())
+ return CORE_STEAMROLLER;
+ else
+ return CORE_BARCELONA; //OS don't support AVX.
}
+
+
}else return CORE_BARCELONA;
}
}