unlimblue / KNN_CUDA

pytorch knn [cuda version]
292 stars 37 forks source link

Installation problem #5

Closed AmnonDrory closed 4 years ago

AmnonDrory commented 4 years ago

Hi, Thank you for this work, I think it could be very helpful for my project. When trying to install, I get the error:

File "/home/amnon/reference/KNN_CUDA/knn_cuda/init.py", line 33, in load_cpp_ext with_cuda=True File "/opt/anaconda3/envs/BBR_RandLA/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 980, in load keep_intermediates=keep_intermediates) File "/opt/anaconda3/envs/BBR_RandLA/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1196, in _jit_compile return _import_module_from_library(name, build_directory, is_python_module) File "/opt/anaconda3/envs/BBR_RandLA/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1547, in _import_module_from_library return imp.load_module(module_name, file, path, description) File "/opt/anaconda3/envs/BBR_RandLA/lib/python3.7/imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "/opt/anaconda3/envs/BBR_RandLA/lib/python3.7/imp.py", line 342, in load_dynamic return _load(spec) ImportError: libcudart.so.10.0: cannot open shared object file: No such file or directory

Any idea how I can solve that? Thanks! Amnon

AmnonDrory commented 4 years ago

Hi, Turns out it was caused by a mismatch in versions between Cuda and Pytorch. Please feel free to delete this issue. Thanks, Amnon

Jinqi-J commented 1 year ago

Hi, I meet exactly the same problem with you, I tried to change my cuda version and torch version, but it turns out the same error, my version is cuda 11.3 torch 1.12.0 torchaudio 0.12.0 torchvision 0.13.0, could you tell me that how did you fix it?

basteran commented 1 year ago

Hi, I meet exactly the same problem with you, I tried to change my cuda version and torch version, but it turns out the same error, my version is cuda 11.3 torch 1.12.0 torchaudio 0.12.0 torchvision 0.13.0, could you tell me that how did you fix it?

Same problem here, any solution?