Last active
May 27, 2020 22:52
-
-
Save bfelbo/369e37a3904485b6ec6ee9e190a95398 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Library/Developer/CommandLineTools/usr/bin/make -C python | |
swig -python -c++ -Doverride= -I../ -o swigfaiss.cpp swigfaiss.swig | |
g++ -std=c++11 -DFINTEGER=int -fPIC -m64 -Wno-sign-compare -g -O3 -Wall -Wextra -mpopcnt -msse4 -I/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/lib/python3.7/site-packages/numpy/core/include \ | |
-I../ -c swigfaiss.cpp -o swigfaiss.o | |
In file included from swigfaiss.cpp:3078: | |
In file included from ../faiss/impl/ThreadedIndex.h:80: | |
../faiss/impl/ThreadedIndex-inl.h:164:48: warning: unused parameter 'index' [-Wunused-parameter] | |
ThreadedIndex<IndexT>::onAfterAddIndex(IndexT* index) { | |
^ | |
../faiss/impl/ThreadedIndex-inl.h:169:51: warning: unused parameter 'index' [-Wunused-parameter] | |
ThreadedIndex<IndexT>::onAfterRemoveIndex(IndexT* index) { | |
^ | |
swigfaiss.cpp:101701:120: warning: unused parameter 'varargs' [-Wunused-parameter] | |
SWIGINTERN PyObject *_wrap_MatrixStats_do_comment__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { | |
^ | |
In file included from swigfaiss.cpp:3078: | |
In file included from ../faiss/impl/ThreadedIndex.h:80: | |
../faiss/impl/ThreadedIndex-inl.h:123:23: warning: comparison of integers of different signs: 'int' and 'std::__1::vector<std::__1::pair<faiss::Index *, std::__1::unique_ptr<faiss::WorkerThread, | |
std::__1::default_delete<faiss::WorkerThread> > >, std::__1::allocator<std::__1::pair<faiss::Index *, std::__1::unique_ptr<faiss::WorkerThread, std::__1::default_delete<faiss::WorkerThread> > > > >::size_type' | |
(aka 'unsigned long') [-Wsign-compare] | |
for (int i = 0; i < this->indices_.size(); ++i) { | |
~ ^ ~~~~~~~~~~~~~~~~~~~~~ | |
swigfaiss.cpp:82955:15: note: in instantiation of member function 'faiss::ThreadedIndex<faiss::Index>::runOnIndex' requested here | |
(arg1)->runOnIndex(arg2); | |
^ | |
In file included from swigfaiss.cpp:3078: | |
In file included from ../faiss/impl/ThreadedIndex.h:80: | |
../faiss/impl/ThreadedIndex-inl.h:135:23: warning: comparison of integers of different signs: 'int' and 'std::__1::vector<std::__1::pair<faiss::Index *, std::__1::unique_ptr<faiss::WorkerThread, | |
std::__1::default_delete<faiss::WorkerThread> > >, std::__1::allocator<std::__1::pair<faiss::Index *, std::__1::unique_ptr<faiss::WorkerThread, std::__1::default_delete<faiss::WorkerThread> > > > >::size_type' | |
(aka 'unsigned long') [-Wsign-compare] | |
for (int i = 0; i < this->indices_.size(); ++i) { | |
~ ^ ~~~~~~~~~~~~~~~~~~~~~ | |
../faiss/impl/ThreadedIndex-inl.h:179:21: warning: comparison of integers of different signs: 'int' and 'std::__1::vector<std::__1::future<bool>, std::__1::allocator<std::__1::future<bool> > >::size_type' (aka 'unsigned long') | |
[-Wsign-compare] | |
for (int i = 0; i < v.size(); ++i) { | |
~ ^ ~~~~~~~~ | |
../faiss/impl/ThreadedIndex-inl.h:129:5: note: in instantiation of member function 'faiss::ThreadedIndex<faiss::Index>::waitAndHandleFutures' requested here | |
waitAndHandleFutures(v); | |
^ | |
swigfaiss.cpp:82955:15: note: in instantiation of member function 'faiss::ThreadedIndex<faiss::Index>::runOnIndex' requested here | |
(arg1)->runOnIndex(arg2); | |
^ | |
In file included from swigfaiss.cpp:3078: | |
In file included from ../faiss/impl/ThreadedIndex.h:80: | |
../faiss/impl/ThreadedIndex-inl.h:123:23: warning: comparison of integers of different signs: 'int' and 'std::__1::vector<std::__1::pair<faiss::IndexBinary *, std::__1::unique_ptr<faiss::WorkerThread, | |
std::__1::default_delete<faiss::WorkerThread> > >, std::__1::allocator<std::__1::pair<faiss::IndexBinary *, std::__1::unique_ptr<faiss::WorkerThread, std::__1::default_delete<faiss::WorkerThread> > > > >::size_type' | |
(aka 'unsigned long') [-Wsign-compare] | |
for (int i = 0; i < this->indices_.size(); ++i) { | |
~ ^ ~~~~~~~~~~~~~~~~~~~~~ | |
swigfaiss.cpp:83532:15: note: in instantiation of member function 'faiss::ThreadedIndex<faiss::IndexBinary>::runOnIndex' requested here | |
(arg1)->runOnIndex(arg2); | |
^ | |
In file included from swigfaiss.cpp:3078: | |
In file included from ../faiss/impl/ThreadedIndex.h:80: | |
../faiss/impl/ThreadedIndex-inl.h:135:23: warning: comparison of integers of different signs: 'int' and 'std::__1::vector<std::__1::pair<faiss::IndexBinary *, std::__1::unique_ptr<faiss::WorkerThread, | |
std::__1::default_delete<faiss::WorkerThread> > >, std::__1::allocator<std::__1::pair<faiss::IndexBinary *, std::__1::unique_ptr<faiss::WorkerThread, std::__1::default_delete<faiss::WorkerThread> > > > >::size_type' | |
(aka 'unsigned long') [-Wsign-compare] | |
for (int i = 0; i < this->indices_.size(); ++i) { | |
~ ^ ~~~~~~~~~~~~~~~~~~~~~ | |
../faiss/impl/ThreadedIndex-inl.h:179:21: warning: comparison of integers of different signs: 'int' and 'std::__1::vector<std::__1::future<bool>, std::__1::allocator<std::__1::future<bool> > >::size_type' (aka 'unsigned long') | |
[-Wsign-compare] | |
for (int i = 0; i < v.size(); ++i) { | |
~ ^ ~~~~~~~~ | |
../faiss/impl/ThreadedIndex-inl.h:129:5: note: in instantiation of member function 'faiss::ThreadedIndex<faiss::IndexBinary>::waitAndHandleFutures' requested here | |
waitAndHandleFutures(v); | |
^ | |
swigfaiss.cpp:83532:15: note: in instantiation of member function 'faiss::ThreadedIndex<faiss::IndexBinary>::runOnIndex' requested here | |
(arg1)->runOnIndex(arg2); | |
^ | |
9 warnings generated. | |
g++ -std=c++11 -dynamiclib -undefined dynamic_lookup -o _swigfaiss.so swigfaiss.o ../libfaiss.a -lblas -llapack | |
python3.7m setup.py build | |
running build | |
running build_py | |
copying faiss/__init__.py -> build/lib/faiss | |
copying faiss/swigfaiss.py -> build/lib/faiss | |
copying faiss/_swigfaiss.so -> build/lib/faiss | |
rm swigfaiss.o |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment