princeton-vl / DROID-SLAM

BSD 3-Clause "New" or "Revised" License
1.66k stars 273 forks source link

setup.py problem #32

Open xhangHU opened 2 years ago

xhangHU commented 2 years ago

src/droid_kernels.cu:15:10: fatal error: Eigen/Sparse: No such file or directory

include <Eigen/Sparse>

      ^~~~~~~~~~~~~~

compilation terminated. error: command '/usr/local/cuda-11/bin/nvcc' failed with exit code 1

when i run python setup.py install, i got some problem, can you help me~

Riser6 commented 2 years ago

src/droid_kernels.cu:15:10: fatal error: Eigen/Sparse: No such file or directory #include <Eigen/Sparse> ^~~~~~ compilation terminated. error: command '/usr/local/cuda-11/bin/nvcc' failed with exit code 1

when i run python setup.py install, i got some problem, can you help me~

It is possible that your third party (./thirdparty/eigen) dose not be downloaded

xhangHU commented 2 years ago

I installed this, but this error is still reported..

jasonyzhang commented 2 years ago

I had a similar problem that I solved because I did not clone with --recursive. Even though the Eigen folder was there, the submodule was not cloned.

lockingball commented 2 years ago

Is Eigen needed download by ourself? i cannot find download part in code

rmadan2 commented 2 years ago

I solved this by using symbolic links to eigen3 in /usr/include

pradyumnakulkarni87 commented 2 years ago

(DRD) ita:~/DROID-SLAM$ sudo python3 setup.py install Traceback (most recent call last): File "setup.py", line 2, in from torch.utils.cpp_extension import BuildExtension, CUDAExtension ModuleNotFoundError: No module named 'torch' But torch in installed , we can import torch

Another Error: (DRD) ita:~/DROID-SLAM$ python3 setup.py install nvcc fatal : Unsupported gpu architecture 'compute_80' error: command '/bin/nvcc' failed with exit code 1

PLz help me

surajiitd commented 2 years ago

For your 2nd error, after that it will work I think:

@pradyumnakulkarni87 what is the output of torch.cuda.get_arch_list()? after importing torch. you need to comment some lines in setup.py: if your GPU doesn't support compute_86 and compute_80 (which seems to be your case), comment out line no: 25, 26, 55, 56. I found that in one of the issues earlier.

pradyumnakulkarni87 commented 2 years ago

For your 2nd error, after that it will work I think:

@pradyumnakulkarni87 what is the output of torch.cuda.get_arch_list()? after importing torch. you need to comment some lines in setup.py: if your GPU doesn't support compute_86 and compute_80 (which seems to be your case), comment out line no: 25, 26, 55, 56. I found that in one of the issues earlier.

Thank you ! It works after Commenting ....Thank you