You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cloned the code from https://github.com/facebookresearch/faiss.git. Ran cmake and tried compiling resulting faiss.sln with Visual Studio 2022. However, the build is not successful.
========== Build: 18 succeeded, 9 failed, 0 up-to-date, 1 skipped ==========
This discussion was converted from issue #3499 on July 01, 2024 00:56.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Cloned the code from https://github.com/facebookresearch/faiss.git. Ran cmake and tried compiling resulting faiss.sln with Visual Studio 2022. However, the build is not successful.
========== Build: 18 succeeded, 9 failed, 0 up-to-date, 1 skipped ==========
Platform
Visual Studio 2022
OS: Windows 11
Faiss version: latest
Installed from: building from source
Faiss compilation options:
"G:\Program Files (x86)\Intel\oneAPI\mkl\2024.1\env\vars.bat"
cmake -B build -Wno-dev -DCMAKE_TOOLCHAIN_FILE=G:/vishal/vcpkg/scripts/buildsystems/vcpkg.cmake -DFAISS_ENABLE_GPU=ON -DFAISS_ENABLE_PYTHON=ON -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DBLA_VENDOR=Intel10_64ilp_seq -DFAISS_OPT_LEVEL=avx2 -DMKL_LIBRARIES="%MKL_PATH%\mkl_intel_lp64.lib;%MKL_PATH%\mkl_core.lib;%MKL_PATH%\mkl_sequential.lib;%MKL_PATH%\mkl_intel_thread.lib" .
Running on:
Interface:
Reproduction instructions
"G:\Program Files (x86)\Intel\oneAPI\mkl\2024.1\env\vars.bat"
cmake -B build -Wno-dev -DCMAKE_TOOLCHAIN_FILE=G:/vishal/vcpkg/scripts/buildsystems/vcpkg.cmake -DFAISS_ENABLE_GPU=ON -DFAISS_ENABLE_PYTHON=ON -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DBLA_VENDOR=Intel10_64ilp_seq -DFAISS_OPT_LEVEL=avx2 -DMKL_LIBRARIES="%MKL_PATH%\mkl_intel_lp64.lib;%MKL_PATH%\mkl_core.lib;%MKL_PATH%\mkl_sequential.lib;%MKL_PATH%\mkl_intel_thread.lib" .
Open faiss.sln in VS 2022
Got below errors:
Severity Code Description Project File Line Suppression State Details
Error C2664 'void faiss::gpu::GpuIndex::search(faiss::idx_t,const float *,faiss::idx_t,float *,faiss::idx_t *,const faiss::SearchParameters *) const': cannot convert argument 5 from 'long *' to 'faiss::idx_t *' 4-GPU G:\vishal\faiss\tutorial\cpp\4-GPU.cpp 95
Error C2664 'void _mm_prefetch(const char *,int)': cannot convert argument 1 from 'const float *' to 'const char *' faiss_avx512 G:\vishal\faiss\faiss\utils\distances_fused\avx512.cpp 81
Error C1083 Cannot open include file: 'sys/time.h': No such file or directory demo_sift1M G:\vishal\faiss\demos\demo_sift1M.cpp 24
Error C1083 Cannot open include file: 'sys/time.h': No such file or directory demo_ivfpq_indexing G:\vishal\faiss\demos\demo_ivfpq_indexing.cpp 13
Error C1083 Cannot open include file: 'sys/time.h': No such file or directory demo_imi_pq G:\vishal\faiss\demos\demo_imi_pq.cpp 13
Error C1083 Cannot open include file: 'unistd.h': No such file or directory bench_ivf_selector G:\vishal\faiss\benchs\bench_ivf_selector.cpp 9
Error C1083 Cannot open include file: 'sys/time.h': No such file or directory demo_imi_flat G:\vishal\faiss\demos\demo_imi_flat.cpp 13
Error C2664 'void faiss::Index::search(faiss::idx_t,const float *,faiss::idx_t,float *,faiss::idx_t *,const faiss::SearchParameters *) const': cannot convert argument 5 from 'long *' to 'faiss::idx_t *' 5-Multiple-GPUs G:\vishal\faiss\tutorial\cpp\5-Multiple-GPUs.cpp 68
Error C2664 'void faiss::gpu::GpuIndex::search(faiss::idx_t,const float *,faiss::idx_t,float *,faiss::idx_t *,const faiss::SearchParameters *) const': cannot convert argument 5 from 'long *' to 'faiss::idx_t *' 4-GPU G:\vishal\faiss\tutorial\cpp\4-GPU.cpp 57
Error LNK1181 cannot open input file '..\Release\faiss_avx512.lib' swigfaiss_avx512 G:\vishal\faiss\build\faiss\python\LINK 1
unistd.h and sys/time.h are not supported on windows.
What is the possible solution for this problem?
Beta Was this translation helpful? Give feedback.
All reactions