faiss-windows
faiss-windows copied to clipboard
How can I start using it?
Sorry @bitsun but I have this really basic issue. How can I start using this in windows? I have already downloaded the .zip file. What next? It will be a great help if you could redirect me to some link discussing things in detail. I am just fresher in programming.
Platform
OS: Windows 10
Running on :
- [ ] CPU
- [X] GPU
There is a readme.txt file in tests subfolder, follow the instruction there. I will copy it here to build faiss-test project in windows, pleas take the following steps.
- install the latest windows sdk
- download intel math kernel library ,set enviroment variable MKL_PATH to the directory containg the static libraries of intel MKL
- install cuda 9.2,make sure enviroment variable CUDA_PATH is properly set
- download boost, and set enviroment variable BOOST_DIR to the directory of boost
- open command line prompt,go to boost directory,build boost-test with the following switches: .\b2 toolset=msvc-14.0 variant=release link=static architecture=x86 address-model=64 define=BOOST_TEST_NO_MAIN --with-test --stagedir=.\staticlib\x64
- We should now be able to build faiss-test project, and run some tests, for example to check the correctness of flat index implementation,run: faiss-test.exe --run_test=FlatIndex/FP32FlatIndexCPU
Step1 might be tricky, you can install python/anaconda on windows, then intel MKL libs are located in $(PythonDir)\Library\lib, just set MKL_PATH to $(PythonDir)\Library\lib, it then should find all the mkl static libraries there
thank @bitsun. I have completed all the step. I will be using faiss in python. So what should I do next to load faiss as "import faiss" inside python.
Hi! I followed the steps from the readme.txt you mentioned but could't make it any further. How should I continue to obtain a built faiss to import in a python script? Thanks
I did not make it work with python on windows
Marcos Boggia [email protected] schrieb am Do., 28. Mai 2020, 23:42:
Hi! I followed the steps from the readme.txt you mentioned but could't make it any further. How should I continue to obtain a built faiss to import in a python script? Thanks
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bitsun/faiss-windows/issues/2#issuecomment-635623713, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNCQCBGRTX2DD53ONSUURDRT3LDVANCNFSM4HLXPR7Q .