diff options
author | Xianyi Zhang <xianyi@iscas.ac.cn> | 2011-02-18 22:08:10 +0800 |
---|---|---|
committer | Xianyi Zhang <xianyi@iscas.ac.cn> | 2011-02-19 00:03:50 +0800 |
commit | e51364edb4fbfac434b93639339d3ad655ede5ed (patch) | |
tree | 4706ded7d65eea1e16e9ce3d54449f7468437491 /cpuid_x86.c | |
parent | bfaa80c3164ae757ef8541f00d30f8300dda5ae0 (diff) | |
download | openblas-e51364edb4fbfac434b93639339d3ad655ede5ed.tar.gz openblas-e51364edb4fbfac434b93639339d3ad655ede5ed.tar.bz2 openblas-e51364edb4fbfac434b93639339d3ad655ede5ed.zip |
Fixed #5 Detected Intel Westmere (using Nehalem codes) in build and dynamic arch build.
Thanks Cao He from Dawning supporting Intel Xeon 5660 testbed.
Diffstat (limited to 'cpuid_x86.c')
-rw-r--r-- | cpuid_x86.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/cpuid_x86.c b/cpuid_x86.c index 288754497..98f744330 100644 --- a/cpuid_x86.c +++ b/cpuid_x86.c @@ -972,8 +972,15 @@ int get_cpuname(void){ return CPUTYPE_ATOM; case 13: return CPUTYPE_DUNNINGTON; - break; } + break; + case 2: + switch (model) { + case 12: + //Xeon Processor 5600 (Westmere-EP) + return CPUTYPE_NEHALEM; + } + break; } break; case 0x7: @@ -1289,8 +1296,16 @@ int get_coretype(void){ return CORE_ATOM; case 13: return CORE_DUNNINGTON; - break; } + break; + case 2: + switch (model) { + case 12: + //Xeon Processor 5600 (Westmere-EP) + return CORE_NEHALEM; + } + break; + } case 15: if (model <= 0x2) return CORE_NORTHWOOD; |