-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined reference to GPU symbols when compiling 1.9.0 #4132
Comments
Hi @vcampmany , sorry for the slow reply What is your cuda version? Our CI is building cudatoolkit 12.4 |
Hi @mnorris11 , thanks for your reply. I am also using CUDA 12.4 |
The cmake steps for our CI installs it via conda. The steps are at https://github.com/facebookresearch/faiss/blob/main/.github/actions/build_cmake/action.yml#L35-L137. |
|
|
I compiled FAISS 1.9.0 from source following the instructions in
INSTALL.md
. Compilation is successful, however when I link the library to my application, I get undefined reference to GPU symbols. Until now, I've been using FAISS 1.7.3 in my C++ application without problems. The problem only came when trying to upgrade to 1.9.0.I've been trying to find the root cause but I haven't been successful so far. Here is what I found out on the way.
First, this is how I'm compiling the library:
This generates a
libfaiss.a
file for both 1.9.0 and 1.7.3. However, the symbols have changed, 1.9.0 having only one "gpu" symbol after grep. here the resultsThe absence of "gpu" symbols in 1.9.0 could explain why I'm getting undefined references in my application. Did anyone face this issue or am I doiong something wrong? Your help would be much appreciated. Thank you 🙁
The text was updated successfully, but these errors were encountered: