Open sniklaus opened 4 months ago
Hi @sniklaus, is this the error message that you're getting?
RuntimeError:Error in virtual void faiss::Index::add_with_ids(faiss::idx_t, const float *, const faiss::idx_t *) at fbcode/faiss/Index.cpp:45: add_with_ids not implemented for this type of index
That's exactly it. :+1:
It is just surprising that it works just fine on the CPU and I am not sure whether it is by design or whether it is a bug.
@sniklaus I pinged our GPU group to take a look at this. Thanks for reporting this!
Summary
add_with_ids
fails on GPU but works after moving the index to the CPU, is this expected? Thank you in advance!Platform
OS:
nvidia/cuda:12.1.1-devel-ubuntu22.04
Faiss version:
1.8.0
/py3.11_hedc54c9_0_cuda11.4.4
Installed from:
conda install -c pytorch -c nvidia faiss-gpu -y
Faiss compilation options:
N/A
Running on:
Interface:
Reproduction instructions