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

Request: tsnecuda for conda #9

Closed
ktamiola opened this issue Aug 10, 2018 · 5 comments
Closed

Request: tsnecuda for conda #9

ktamiola opened this issue Aug 10, 2018 · 5 comments
Labels
enhancement New feature or request

Comments

@ktamiola
Copy link

Since conda provides various versions of faiss:

# CPU version only
conda install faiss-cpu -c pytorch
# Make sure you have CUDA installed before installing faiss-gpu, otherwise it falls back to CPU version
conda install faiss-gpu -c pytorch # [DEFAULT]For CUDA8.0
conda install faiss-gpu cuda90 -c pytorch # For CUDA9.0
conda install faiss-gpu cuda91 -c pytorch # For CUDA9.1
# cuda90/cuda91 shown above is a feature, it doesn't install CUDA for you.

It would be great if you could make a conda-specific tsnecuda package.

@DavidMChan DavidMChan added the enhancement New feature or request label Aug 14, 2018
@rmrao
Copy link
Collaborator

rmrao commented Oct 4, 2018

Conda support is now available! It doesn't use conda's faiss since this doesn't quite provide what we want. But it packages it's own version as a shared library so it should work fine for everyone. The version we uploaded requires CUDA 9.0, we haven't added multiple versions for different CUDA versions. You should be able to install with

conda install tsnecuda -c cannylab

@rmrao rmrao closed this as completed Oct 4, 2018
@ktamiola
Copy link
Author

ktamiola commented Oct 4, 2018

Fantastic, thank you!

@santosh2994
Copy link

hi i am unable to install using conda install tsnecuda -c cannylab in my anaconda navigator
can you please help me.

@ygjwd12345
Copy link

hi i also face the problem when I use"conda install tsnecuda -c cannylab", it doesn't work

@cinastanbean
Copy link

hi, 我通过如下方式解决了。@ygjwd12345

遇到的错误:OSError: libfaiss.so: cannot open shared object file: No such file or directory

解决方法:

  1. conda install tsnecuda -c cannylab
  2. find / -name libfaiss.so # 记录下路径
  3. find / -name libopenblas.so.0 # 记录下路径
  4. 类似操作:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/conda/pkgs/tsnecuda-0.2.1-py36h6fed035_0/lib/:/opt/conda/pkgs/openblas-0.2.19-0/lib #路径写第二步记录下的路径。

这样就可以解决。


其他问题:Faiss assertion 'err == cudaSuccess' failed in faiss::gpu::StackDeviceMemory::Stack::Stack(int, size_t) at /home/david/Code/tsne-cuda/third_party/faiss/gpu/utils/StackDeviceMemory.cpp:33
Aborted

解决方法:cuda内存不够,腾出空间即可。

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

No branches or pull requests

6 participants