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

Error when compiling the Python interface with GPU support #11

Closed
willard-yuan opened this issue Mar 2, 2017 · 2 comments
Closed

Error when compiling the Python interface with GPU support #11

willard-yuan opened this issue Mar 2, 2017 · 2 comments

Comments

@willard-yuan
Copy link

Hi,

I face a problem when I compile the Python interface with GPU support (step 1 and step 2 are ok). The error is reported as following:

cd ../python; swig -Doverride= -python -c++ -DGPU_WRAPPER -o ../python/swigfaiss_gpu_wrap.cxx ../swigfaiss.swig
../gpu/StandardGpuResources.h:67: Error: Syntax error in input(3).
make: *** [../python/swigfaiss_gpu_wrap.cxx] error 1

Anyone help me?

@mdouze
Copy link
Contributor

mdouze commented Mar 2, 2017

Hi,
This is probably because the swig version is too old, and you have probably erased the swig-generated files by doing make clean. You can restore them by

cd ../python
git checkout swigfaiss_gpu_wrap.cxx swigfaiss_gpu.py

@willard-yuan
Copy link
Author

Hi mdouze, following your advice, the problem is solved now. Many thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants