faiss/tests
wx257osn2@yahoo.co.jp 2952487f0e Fix test_cppcontrib_sa_decode.cpp (#2388)
Summary:
This PR contains below changes:

- Conform C++11
    - [`faiss` is written in C++11](https://github.com/facebookresearch/faiss/blob/main/CONTRIBUTING.md#coding-style), but [`faiss/cppcontrib/SaDecodeKernels-avx2-inl.h`](442d9f4a2d/faiss/cppcontrib/SaDecodeKernels-avx2-inl.h) and [the test](442d9f4a2d/tests/test_cppcontrib_sa_decode.cpp) use some C++17 features. This PR rewrites these codes to make them independent to C++17.
- Enable AVX2 on `faiss_test`
    - Currently `faiss_test` is compiled without `-mavx2` even if `-DFAISS_OPT_LEVEL=avx2` , so **`tests/test_cppcontrib_sa_decode.cpp` hasn't checked `faiss/cppcontrib/SaDecodeKernels-avx2-inl.h` at all** . This PR adds `-mavx2` to `faiss_test` if `-DFAISS_OPT_LEVEL=avx2` , so now `tests/test_cppcontrib_sa_decode.cpp` confirms `faiss/cppcontrib/SaDecodeKernels-avx2-inl.h` if `-DFAISS_OPT_LEVEL=avx2` , and does `faiss/cppcontrib/SaDecodeKernels-inl.h` if not `-DFAISS_OPT_LEVEL=avx2` .

Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2388

Reviewed By: mdouze

Differential Revision: D38005738

Pulled By: alexanderguzhva

fbshipit-source-id: b9319c585c6849e1c7a4782770f2d7ce8c0d8660
2022-07-20 23:46:31 -07:00
..
CMakeLists.txt Fix test_cppcontrib_sa_decode.cpp (#2388) 2022-07-20 23:46:31 -07:00
common_faiss_tests.py Add manifold check for size 0 (#1867) 2021-05-09 22:30:31 -07:00
test_autotune.py
test_binary_factory.py
test_binary_flat.cpp
test_binary_hashindex.py Add manifold check for size 0 (#1867) 2021-05-09 22:30:31 -07:00
test_binary_io.py
test_build_blocks.py add batch reconstruction function (#2379) 2022-07-18 08:26:06 -07:00
test_clustering.py Non-uniform quantization of vector norms (#2037) 2021-10-11 14:13:16 -07:00
test_contrib.py fix test in test_contrib (#2294) 2022-04-20 03:03:38 -07:00
test_contrib_with_scipy.py contrib clustering module (#2217) 2022-02-28 14:18:47 -08:00
test_cppcontrib_sa_decode.cpp Fix test_cppcontrib_sa_decode.cpp (#2388) 2022-07-20 23:46:31 -07:00
test_dealloc_invlists.cpp
test_documentation.py Generate python docstrings from doxygen comments. (#1969) 2021-10-10 22:14:48 -07:00
test_doxygen_documentation.py Generate python docstrings from doxygen comments. (#1969) 2021-10-10 22:14:48 -07:00
test_extra_distances.py Add manifold check for size 0 (#1867) 2021-05-09 22:30:31 -07:00
test_factory.py fbcode//faiss/tests 2022-04-25 17:55:46 -07:00
test_fast_scan.py Support reconstruct() in IndexFastScan (#2287) 2022-04-19 03:18:58 -07:00
test_fast_scan_ivf.py make fast scan tests cheaper (#2251) 2022-03-16 13:23:07 -07:00
test_index.py Add IndexNSGPQ and IndexNSGSQ (#2218) 2022-02-18 04:51:15 -08:00
test_index_accuracy.py Break distance ties in `heap_replace_top()` by ID (#2245) 2022-03-09 10:23:48 -08:00
test_index_binary.py Fix packaging (#2121) 2021-12-07 13:12:30 -08:00
test_index_binary_from_float.py
test_index_composite.py IndexFlatCodes: a single parent for all flat codecs (#2132) 2021-12-07 01:31:07 -08:00
test_io.py IndexFlatCodes: a single parent for all flat codecs (#2132) 2021-12-07 01:31:07 -08:00
test_ivflib.py
test_ivfpq_codec.cpp
test_ivfpq_indexing.cpp
test_local_search_quantizer.py Add ProductAdditiveQuantizer (#2286) 2022-05-05 15:14:07 -07:00
test_lowlevel_ivf.cpp IVFPQ AVX2 optimization for PQ, including polysemous filtering (#2277) 2022-03-24 06:35:38 -07:00
test_mem_leak.cpp Reduce mem usage + improve performance for sequential search imlementation 2021-10-05 15:54:04 -07:00
test_merge.cpp add batch reconstruction function (#2379) 2022-07-18 08:26:06 -07:00
test_meta_index.py Fix packaging (#2121) 2021-12-07 13:12:30 -08:00
test_omp_threads.cpp
test_omp_threads_py.py
test_ondisk_ivf.cpp add batch reconstruction function (#2379) 2022-07-18 08:26:06 -07:00
test_oom_exception.py
test_pairs_decoding.cpp
test_params_override.cpp
test_partition.py
test_pq_encoding.cpp
test_product_quantizer.py
test_referenced_objects.py
test_refine.py Generalize DistanceComputer for flat indexes (#2255) 2022-03-20 23:43:33 -07:00
test_residual_quantizer.py Add ProductAdditiveQuantizer (#2286) 2022-05-05 15:14:07 -07:00
test_sliding_ivf.cpp
test_standalone_codec.py Add sa_decode() to IndexIVFAdditiveQuantizer (#2362) 2022-06-20 10:54:11 -07:00
test_threaded_index.cpp
test_transfer_invlists.cpp
torch_test_contrib.py Automatic type conversions for Python API (#2274) 2022-03-30 05:42:08 -07:00