Skip to content

Commit 7d9ee84

Browse files
committed
Change priority of cpu_supports_avx512
1 parent 5ae9bf4 commit 7d9ee84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/distance-cpu.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -856,12 +856,12 @@ void init_distance_functions (bool force_cpu) {
856856
if (force_cpu) return;
857857

858858
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86)
859-
if (cpu_supports_avx2()) {
860-
init_distance_functions_avx2();
861-
}
862-
else if (cpu_supports_avx512()) {
859+
if (cpu_supports_avx512()) {
863860
init_distance_functions_avx512();
864861
}
862+
else if (cpu_supports_avx2()) {
863+
init_distance_functions_avx2();
864+
}
865865
else if (cpu_supports_sse2()) {
866866
init_distance_functions_sse2();
867867
}

0 commit comments

Comments
 (0)