diff options
author | Zhang Xianyi <traits.zhang@gmail.com> | 2015-09-09 10:47:17 -0500 |
---|---|---|
committer | Zhang Xianyi <traits.zhang@gmail.com> | 2015-09-09 10:47:17 -0500 |
commit | cc7cab8a45d031e7e0e78147a863a632d584ed9d (patch) | |
tree | d1deaa6ce7f2b40293095a5a49cc881ed48650c3 /cpuid_x86.c | |
parent | 61ae47eb9926a869942267b3dc1b62a139e36ebe (diff) | |
download | openblas-cc7cab8a45d031e7e0e78147a863a632d584ed9d.tar.gz openblas-cc7cab8a45d031e7e0e78147a863a632d584ed9d.tar.bz2 openblas-cc7cab8a45d031e7e0e78147a863a632d584ed9d.zip |
Detect other Intel Skylake cores.
http://users.atw.hu/instlatx64/
Diffstat (limited to 'cpuid_x86.c')
-rw-r--r-- | cpuid_x86.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cpuid_x86.c b/cpuid_x86.c index 828ecc328..135ac7cf9 100644 --- a/cpuid_x86.c +++ b/cpuid_x86.c @@ -1136,6 +1136,16 @@ int get_cpuname(void){ #endif else return CPUTYPE_NEHALEM; + case 14: + //Skylake + if(support_avx()) +#ifndef NO_AVX2 + return CPUTYPE_HASWELL; +#else + return CPUTYPE_SANDYBRIDGE; +#endif + else + return CPUTYPE_NEHALEM; } break; case 5: @@ -1150,6 +1160,7 @@ int get_cpuname(void){ #endif else return CPUTYPE_NEHALEM; + case 5: case 14: // Skylake if(support_avx()) @@ -1621,6 +1632,16 @@ int get_coretype(void){ #endif else return CORE_NEHALEM; + case 14: + //Skylake + if(support_avx()) +#ifndef NO_AVX2 + return CORE_HASWELL; +#else + return CORE_SANDYBRIDGE; +#endif + else + return CORE_NEHALEM; } break; case 5: @@ -1635,6 +1656,7 @@ int get_coretype(void){ #endif else return CORE_NEHALEM; + case 5: case 14: // Skylake if(support_avx()) |