Skip to content

Commit

Permalink
Optimize test_simd (#1096)
Browse files Browse the repository at this point in the history
Signed-off-by: CaiYudong <[email protected]>
  • Loading branch information
cydrain authored Feb 24, 2025
1 parent d9651b6 commit b9aa5a7
Show file tree
Hide file tree
Showing 2 changed files with 224 additions and 169 deletions.
4 changes: 2 additions & 2 deletions src/simd/hook.cc
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ fvec_hook(std::string& simd_type) {
fvec_Linf = fvec_Linf_avx512;

fvec_norm_L2sqr = fvec_norm_L2sqr_avx512;
fvec_L2sqr_ny = fvec_L2sqr_ny_sse;
fvec_L2sqr_ny = fvec_L2sqr_ny_avx;
fvec_inner_products_ny = fvec_inner_products_ny_sse;
fvec_madd = fvec_madd_avx512;
fvec_madd_and_argmin = fvec_madd_and_argmin_sse;
Expand Down Expand Up @@ -227,7 +227,7 @@ fvec_hook(std::string& simd_type) {
fvec_Linf = fvec_Linf_avx;

fvec_norm_L2sqr = fvec_norm_L2sqr_avx;
fvec_L2sqr_ny = fvec_L2sqr_ny_sse;
fvec_L2sqr_ny = fvec_L2sqr_ny_avx;
fvec_inner_products_ny = fvec_inner_products_ny_sse;
fvec_madd = fvec_madd_avx;
fvec_madd_and_argmin = fvec_madd_and_argmin_sse;
Expand Down
Loading

0 comments on commit b9aa5a7

Please sign in to comment.