Closed sunhongmin225 closed 2 years ago
The issue here is that our cmake script can't find the conda installation of FAISS (since it's not installed in the standard location, due to the conda environment). If you want to get this working, you need to locate the include and library files in conda, and set the required paths using FAISS_INCLUDE_DIR, FAIS_GPU_INCLUDE_DIR and FAISS_LIBRARY.
If you just want to use tsnecuda with conda, I recommend 'conda install tsnecuda -c conda-forge' or if you want to build tsnecuda from scratch, install faiss from source as well.
Thanks for a quick reply. However, I couldn't find the location of the Faiss library files. May I ask you to kindly inform me of the contents of FAISS_INCLUDE_DIR, FAIS_GPU_INCLUDE_DIR and FAISS_LIBRARY, by echo
ing them in your system? I am using an Ubuntu 20.04.4 LTS machine.
If they are in the standard location, then they will be found by our script, however, when using a conda install, this path will be unique to your machine (depending on your conda env name, conda install location, username, etc.) so I can't provide any insight about where they're located.
I've followed your advice -- installed Faiss from source, and have successfully installed tsne-cuda. Thanks for your help.
Hi, I am trying the installation from source following the instruction in this document: https://github.com/CannyLab/tsne-cuda/blob/master/INSTALL.md
I've made sure to meet all the requirements you've written.
Especially, I've installed the latest version of Faiss (v1.7.2) using
conda install -c pytorch faiss-gpu
command. I've tested thatpython -c "import faiss"
works without problems.However, when I try the
cMake ..
command inbuild/
, below error is returned.Below is the content of
build/CMakeFiles/CMakeError.log
.Could you help me out how to fix this error? Thanks.