From 62979fd10497bcdad5579bdc8ad9c088d729ddd2 Mon Sep 17 00:00:00 2001 From: Gian-Carlo Pascutto Date: Mon, 10 Apr 2017 19:07:52 +0200 Subject: [PATCH 1/2] Fix dynamic detection for ZEN CPUs. --- driver/others/dynamic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/others/dynamic.c b/driver/others/dynamic.c index 54b18f245..ad7c0dfc2 100644 --- a/driver/others/dynamic.c +++ b/driver/others/dynamic.c @@ -392,7 +392,7 @@ static gotoblas_t *get_coretype(void){ } } - } else if (family == 8) { + } else if (exfamily == 8) { if (model == 1) { if(support_avx()) return &gotoblas_ZEN; From 0cbd2d34e46d458867989460314fcb8ae1c0a0d9 Mon Sep 17 00:00:00 2001 From: Gian-Carlo Pascutto Date: Mon, 10 Apr 2017 20:05:16 +0200 Subject: [PATCH 2/2] Recognize ZEN when passed as OPENBLAS_CORETYPE. --- driver/others/dynamic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/others/dynamic.c b/driver/others/dynamic.c index ad7c0dfc2..90410f70c 100644 --- a/driver/others/dynamic.c +++ b/driver/others/dynamic.c @@ -481,7 +481,7 @@ static gotoblas_t *force_coretype(char *coretype){ char message[128]; //char mname[20]; - for ( i=1 ; i <= 22; i++) + for ( i=1 ; i <= 23; i++) { if (!strncasecmp(coretype,corename[i],20)) {