Faiss assertion 'err == cudaSuccess' failed in faiss::gpu::StackDeviceMemory::Stack::Stack(int, size_t) at utils/StackDeviceMemory.cpp:33
I'm getting the following error when trying to run a fairly simple python notebook:
Faiss assertion 'err == cudaSuccess' failed in faiss::gpu::StackDeviceMemory::Stack::Stack(int, size_t) at utils/StackDeviceMemory.cpp:33
The error happens when executing index = faiss.index_cpu_to_gpu(res, 0, index, co):

Is your CUDA SDK installed properly and does it match your GPU drivers?
Did you specify the proper compute capability in the compilation?
Also, there's no need to use the cloner, you can just create a GpuIndexFlatIP.
Also, how much free GPU memory do you have when you are attempting to run this?
(By default Faiss GPU reserves something like 18% of all GPU memory for itself, and it is getting this assertion when it attempts to make that allocation.)
No activity, closing.
FYI: got the same error, due to the fact that my GPU didn't have enough memory available. After killing a few jobs and freeing some memory space, I didn't get this issue anymore.
I have the same question, so could anyone give me some advice please?
No specific advice, but in the next version of Faiss, GPU errors will raise exceptions instead of crashing. Should be more friendly to users.