We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 126ad48 commit 6ed5257Copy full SHA for 6ed5257
driver/others/dynamic.c
@@ -1061,7 +1061,13 @@ void gotoblas_dynamic_init(void) {
1061
#ifdef ARCH_X86
1062
if (gotoblas == NULL) gotoblas = &gotoblas_KATMAI;
1063
#else
1064
- if (gotoblas == NULL) gotoblas = &gotoblas_PRESCOTT;
+ if (gotoblas == NULL) {
1065
+ if (support_avx512_bf16()) gotoblas = &gotoblas_COOPERLAKE;
1066
+ else if (support_avx512()) gotoblas = &gotoblas_SKYLAKEX;
1067
+ else if (support_avx2()) gotoblas = &gotoblas_HASWELL;
1068
+ else if (support_avx()) gotoblas = &gotoblas_SANDYBRIDGE;
1069
+ else gotoblas = &gotoblas_PRESCOTT;
1070
+ }
1071
/* sanity check, if 64bit pointer we can't have a 32 bit cpu */
1072
if (sizeof(void*) == 8) {
1073
if (gotoblas == &gotoblas_KATMAI ||
0 commit comments