Skip to content
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

Compilation fails with latest version #958

Closed
jarib opened this issue Sep 21, 2019 · 4 comments
Closed

Compilation fails with latest version #958

jarib opened this issue Sep 21, 2019 · 4 comments
Assignees
Labels

Comments

@jarib
Copy link

jarib commented Sep 21, 2019

Summary

Platform

OS: Ubuntu 18.04

Faiss version: 3d0ece0

Faiss compilation options:

./configure --with-cuda="/usr/local/cuda-10.1" --with-cuda-arch="-gencode=arch=compute_70,code=compute_70"
make -j 10 && make install

Reproduction instructions

My attempt to compile the latest Faiss using the command above fails with with:

g++ -std=c++11 -DFINTEGER=int  -fopenmp -I/usr/local/cuda-10.1/include  -I. -fPIC -m64 -Wno-sign-compare -g -O3 -Wall -Wextra -mpopcnt -msse4 -c gpu/utils/Timer.cpp -o gpu/utils/Timer.o
g++ -std=c++11 -DFINTEGER=int  -fopenmp -I/usr/local/cuda-10.1/include  -I. -fPIC -m64 -Wno-sign-compare -g -O3 -Wall -Wextra -mpopcnt -msse4 -c gpu/utils/StackDeviceMemory.cpp -o gpu/utils/StackDeviceMemory.o
g++ -std=c++11 -DFINTEGER=int  -fopenmp -I/usr/local/cuda-10.1/include  -I. -fPIC -m64 -Wno-sign-compare -g -O3 -Wall -Wextra -mpopcnt -msse4 -c gpu/utils/DeviceMemory.cpp -o gpu/utils/DeviceMemory.o
/usr/local/cuda-10.1/bin/nvcc -I /usr/local/cuda-10.1/targets/x86_64-linux/include/ -Xcompiler -fPIC -Xcudafe --diag_suppress=unrecognized_attribute -gencode=arch=compute_70,code=compute_70 -lineinfo -ccbin g++ -std=c++11 -DFAISS_USE_FLOAT16 -g -O3 -c gpu/GpuIndex.cu -o gpu/GpuIndex.o
/usr/local/cuda-10.1/bin/nvcc -I /usr/local/cuda-10.1/targets/x86_64-linux/include/ -Xcompiler -fPIC -Xcudafe --diag_suppress=unrecognized_attribute -gencode=arch=compute_70,code=compute_70 -lineinfo -ccbin g++ -std=c++11 -DFAISS_USE_FLOAT16 -g -O3 -c gpu/GpuIndexBinaryFlat.cu -o gpu/GpuIndexBinaryFlat.o
gpu/GpuIndex.cu:9:10: fatal error: faiss/gpu/GpuIndex.h: No such file or directory
 #include <faiss/gpu/GpuIndex.h>
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:44: recipe for target 'gpu/GpuIndex.o' failed
make: *** [gpu/GpuIndex.o] Error 1
make: *** Waiting for unfinished jobs....
gpu/GpuIndexBinaryFlat.cu:8:10: fatal error: faiss/gpu/GpuIndexBinaryFlat.h: No such file or directory
 #include <faiss/gpu/GpuIndexBinaryFlat.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [gpu/GpuIndexBinaryFlat.o] Error 1
Makefile:44: recipe for target 'gpu/GpuIndexBinaryFlat.o' failed

Same attempt works well with v1.5.3.

@mdouze mdouze added the install label Sep 21, 2019
@beauby beauby self-assigned this Sep 21, 2019
@beauby
Copy link
Contributor

beauby commented Sep 21, 2019

Could you try this PR: #959

@jarib
Copy link
Author

jarib commented Sep 22, 2019

The PR solves the issue 👍

@otaj
Copy link

otaj commented Sep 22, 2019

Just to say, I had the same problem and the PR solved it as well.

@mdouze
Copy link
Contributor

mdouze commented Oct 30, 2019

no activity, closing.

@mdouze mdouze closed this as completed Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants