From f7e8f9ec57dcbe7c3a94a18575f0379dfe828dae Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Mon, 7 Feb 2022 00:00:15 +0100 Subject: [PATCH 1/2] Support AVX512-enabled AlderLake --- cpuid_x86.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpuid_x86.c b/cpuid_x86.c index 6466bd148..d7d85eb20 100644 --- a/cpuid_x86.c +++ b/cpuid_x86.c @@ -1495,6 +1495,10 @@ int get_cpuname(void){ switch (model) { case 7: // Alder Lake desktop case 10: // Alder Lake mobile + if(support_avx512_bf16()) + return CPUTYPE_COOPERLAKE; + if(support_avx512()) + return CPUTYPE_SKYLAKEX; if(support_avx2()) return CPUTYPE_HASWELL; if(support_avx()) From fa3e9f25e633d5eb735e9183dfa72b6ed09fee0e Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Mon, 7 Feb 2022 00:00:56 +0100 Subject: [PATCH 2/2] Support AVX512-enabled Alder Lake --- driver/others/dynamic.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/driver/others/dynamic.c b/driver/others/dynamic.c index b12fb069a..52a7c6087 100644 --- a/driver/others/dynamic.c +++ b/driver/others/dynamic.c @@ -708,8 +708,11 @@ static gotoblas_t *get_coretype(void){ case 9: if (model == 7 || model == 10) { // Alder Lake + if(support_avx512_bf16()) + return &gotoblas_COOPERLAKE; + if (support_avx512()) + return &gotoblas_SKYLAKEX; if(support_avx2()){ - openblas_warning(FALLBACK_VERBOSE, HASWELL_FALLBACK); return &gotoblas_HASWELL; } if(support_avx()) {