knowhere
knowhere copied to clipboard
fvec_inner_product_batch_4_avx's calculation accuracy does not meet the requirements
When enable "run_test()" in test_simd.cc:216
this case run fail with following error:
I0926 10:51:50.380264 1059789 test_simd.cc:54] [KNOWHERE][CATCH2_INTERNAL_TEST_10][knowhere_tests] simd type: 0, dim: 21
I0926 10:51:50.380273 1059789 knowhere_config.cc:64] [KNOWHERE][SetSimdType][knowhere_tests] FAISS expect simdType::AUTO
I0926 10:51:50.380282 1059789 knowhere_config.cc:89] [KNOWHERE][SetSimdType][knowhere_tests] FAISS hook AVX2
I0926 10:51:50.380350 1059789 knowhere_config.cc:95] [KNOWHERE][EnablePatchForComputeFP32AsBF16][knowhere_tests] Enable patch for compute fp32 as bf16
-------------------------------------------------------------------------------
Test distance
test batch_4 distance calculation
-------------------------------------------------------------------------------
/home/caiyd/work/vec/knowhere/tests/ut/test_simd.cc:166
...............................................................................
/home/caiyd/work/vec/knowhere/tests/ut/test_simd.cc:202: FAILED:
REQUIRE_THAT( dis2, Catch::Matchers::WithinRel(ref_ip_2, batch_tolerance) )
with expansion:
-0.12995f and -0.0841045 are within 5% of each other