Why is the CPU usage so high when searching in Faiss::gpu?? #3576
Replies: 8 comments
-
It is unlikely that this comes from the search function because a single query should be fast + normally the GPU search uses only 1 CPU core. Please try on a larger batch of vectors. |
Beta Was this translation helpful? Give feedback.
-
@mdouze |
Beta Was this translation helpful? Give feedback.
-
The range you're talking about is about 10,000 to 100,000. Is it right? |
Beta Was this translation helpful? Give feedback.
-
With 37 database vectors and 1 query, the problem size is so small that it does not make sense to use a GPU. GPU brute force search is faster. |
Beta Was this translation helpful? Give feedback.
-
you mean. |
Beta Was this translation helpful? Give feedback.
-
yes sorry |
Beta Was this translation helpful? Give feedback.
-
Sorry, but is there a way to intentionally limit omp when building Cmake???? |
Beta Was this translation helpful? Give feedback.
-
I don't understand the question. |
Beta Was this translation helpful? Give feedback.
-
Summary
Platform
OS: Ubuntu 20
Faiss version: c00fe25
Installed from: compiled
Faiss compilation options:
Running on:
Interface:
Reproduction instructions
After creating indexflatIP (GPU) in python, I read it in C++ at 33ms intervals (to match real time), but it takes a lot of CPU load (1500%). Is that what it is?????
Should I use a different vector method? I would be grateful if you could introduce me to other methods and advice.
Thank yoU
Beta Was this translation helpful? Give feedback.
All reactions