faiss icon indicating copy to clipboard operation
faiss copied to clipboard

GpuIndexIVFFlat searching is failed when size(xb) = 100000 Faiss assertion err == CUBLAS_STATUS_SUCCESS

Open YaaoTu opened this issue 9 years ago • 6 comments

hi,

I run code as follows:

gt_index = faiss.GpuIndexFlatL2(res, d, flat_config) gt_index.metric_type = faiss.METRIC_INNER_PRODUCT index = faiss.GpuIndexIVFFlat(res, dev_no, gt_index, False, d, nlist, faiss.INDICES_CPU, faiss.METRIC_INNER_PRODUCT ) index.train(xb) index.add(xb)

D, I = index.search(xq, k)

the code is failed when size(xb) = 100000 but successed when size(xb) = 10000 : Faiss assertion err == CUBLAS_STATUS_SUCCESS failed in void faiss::gpu::runMatrixMult(faiss::gpu::Tensor<T, 2, true>&, bool, faiss::gpu::Tensor<T, 2, true>&, bool, faiss::gpu::Tensor<T, 2, true>&, bool, float, float, cublasHandle_t, cudaStream_t) [with T = float; cublasHandle_t = cublasContext*; cudaStream_t = CUstream_st*] at utils/MatrixMult.cu:141Aborted (core dumped)

who could I solve this problem?

thanks~

YaaoTu avatar Apr 05 '17 07:04 YaaoTu

Hi

This looks like it could be a memory issue. On what type of GPU are you running this? Please provide the output of nvidia-smi.

mdouze avatar Apr 05 '17 09:04 mdouze

Could you try with the current version? It has better low-mem GPU support.

mdouze avatar Apr 06 '17 11:04 mdouze

@mdouze sorry, new to Faiss , I want to use GpuIndexIVFFlat to accelerate the retrieval, But I cannot find any example on how to configure the parameters of GpuIndexIVFFlat. is there any good examples ???

dyzhou2015 avatar Apr 13 '17 09:04 dyzhou2015

Hi

Please uncomment https://github.com/facebookresearch/faiss/blob/master/benchs/bench_gpu_sift1m.py#L91

This will make a GpuIndexIVFFlat

mdouze avatar Apr 13 '17 10:04 mdouze

Re-opening (the last question has nothing to do with the thread's topic)

mdouze avatar Apr 13 '17 10:04 mdouze

Closing because there is no clear issue here. Please submit a new issue if needed.

mdouze avatar Jun 19 '17 11:06 mdouze