Skip to content

Instantly share code, notes, and snippets.

@mdouze
Created April 28, 2021 08:15
Show Gist options
  • Save mdouze/4e1f6573e9438583b7677a78f5c89f46 to your computer and use it in GitHub Desktop.
Save mdouze/4e1f6573e9438583b7677a78f5c89f46 to your computer and use it in GitHub Desktop.
bash-3.2$ PYTHONPATH=../build/faiss/python/build/lib/ python3 -m unittest test_meta_index.Shards
ref search
[[1758 1245 5536 4543 7762 1286]
[5211 9315 2998 8366 8140 9013]
[9240 7684 5006 9081 359 6478]
[4540 9321 8356 8719 4407 1992]
[9828 3995 3198 6863 1441 4746]]
shard search test_no = 0
[[1758 1245 5536 4543 7762 1286]
[5211 9315 2998 8366 8140 9013]
[9240 7684 5006 9081 359 6478]
[4540 9321 8356 8719 4407 1992]
[9828 3995 3198 6863 1441 4746]]
2 / 32000 differences
shard search test_no = 1
[[1758 1245 5536 4543 7762 1286]
[5211 9315 2998 8366 8140 9013]
[9240 7684 5006 9081 359 6478]
[4540 9321 8356 8719 4407 1992]
[9828 3995 3198 6863 1441 4746]]
2 / 32000 differences
shard search test_no = 2
OMP: Error #131: Thread identifier invalid.
OMP: Error #131: Thread identifier invalid.
Abort trap: 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment