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

setup.py problem #32

Open
xhangHU opened this issue Dec 20, 2021 · 8 comments
Open

setup.py problem #32

xhangHU opened this issue Dec 20, 2021 · 8 comments

Comments

@xhangHU
Copy link

xhangHU commented Dec 20, 2021

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
Copy link

Riser6 commented Dec 20, 2021

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
Copy link
Author

xhangHU commented Dec 21, 2021

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

@jasonyzhang
Copy link

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
Copy link

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

@rmadan2
Copy link

rmadan2 commented May 25, 2022

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

@pradyumnakulkarni87
Copy link

pradyumnakulkarni87 commented Jun 7, 2022

(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
Copy link

surajiitd commented Jun 7, 2022

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
Copy link

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

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

No branches or pull requests

7 participants