Skip to content

Commit

Permalink
add tests for faiss package
Browse files Browse the repository at this point in the history
  • Loading branch information
ykumards committed Jan 13, 2024
1 parent 9ba0c21 commit dc65350
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions runtime/tests/test_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pytest

packages = [
"faiss",
"gensim",
"keras",
"numpy",
Expand Down Expand Up @@ -84,3 +85,10 @@ def test_spacy():
ents.append(span)
doc.ents = ents
db.add(doc)


@pytest.mark.skipif(not GPU_AVAILABLE, reason="No GPU available")
def test_faiss_n_gpus():
import faiss
assert faiss.get_num_gpus() > 0

0 comments on commit dc65350

Please sign in to comment.