Closed kyamagu closed 10 months ago
Interestingly, adding PyTorch tests results in a deadlock in both Linux and macOS. Apparently, OpenMP is doing something wrong, as failing tests seem to import from tests/common_faiss_tests.py
, which explicitly calls fails.omp_set_num_threads(4)
.
Importing faiss/tests/torch_test_contrib.py
(which imports contrib/torch_utils.py
) modifies the faiss APIs, which results in numerous testing errors where some cause hangs. It is better NOT to import contrib/torch_utils.py
in any test except for this torch test. Besides that, this test might be a good place to debug the long-standing libomp issue (#73).
Changes:
libomp
on macOSFix #92