Open kisasexypantera94 opened 2 years ago
Checked the same code on RTX 3050 and it works
Also noticed the same behaviour when linking to Intel MKL and running on CPU
So the error is GPU specific and specific to the GTX 1060. Correct?
So the error is GPU specific and specific to the GTX 1060. Correct?
Yes, tested on RTX 2080/3050 and they were working fine.
Thought the problem was with me not specifying cuda architecture, so I rebuilt faiss:
RUN pip3 install numpy
RUN apt install -y libopenblas-dev
RUN wget https://github.com/facebookresearch/faiss/archive/refs/tags/v1.7.2.tar.gz && \
tar xf v1.7.2.tar.gz && \
cd faiss-1.7.2 && mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_ARCHITECTURES="61;75;86" -DBUILD_TESTING=0 -DFAISS_OPT_LEVEL=generic -DFAISS_ENABLE_PYTHON=OFF -DFAISS_ENABLE_GPU=ON .. && \
make -j10 faiss && make install
but still the same result
Summary
Platform
OS: Docker container
nvidia/cuda:11.6.2-devel-ubuntu20.04
Nvidia: GTX 1060,Driver Version: 515.76 CUDA Version: 11.7
Faiss version:
1.7.2
Installed from: manual build with CMake
Faiss compilation options: none
Running on:
Interface:
Reproduction instructions
Sample code from wiki:
produces that:
as you can see
objective
is zero.I've tried changing seed but that didn't help. CPU version works fine though. Also tried doing the same thing with Python API and it works fine too (faiss-gpu 1.7.2).