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 5ae9bf4 commit 7d9ee84Copy full SHA for 7d9ee84
src/distance-cpu.c
@@ -856,12 +856,12 @@ void init_distance_functions (bool force_cpu) {
856
if (force_cpu) return;
857
858
#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()) {
+ if (cpu_supports_avx512()) {
863
init_distance_functions_avx512();
864
}
+ else if (cpu_supports_avx2()) {
+ init_distance_functions_avx2();
+ }
865
else if (cpu_supports_sse2()) {
866
init_distance_functions_sse2();
867
0 commit comments