You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to install this project, it fails on the PyTorch extension compilation step.
Specifically, /usr/bin/nvcc failed with exit status 1, due to errors in /usr/include/c++/6/tuple and /usr/include/c++/6/type_straits. (actual printout below).
Our system is running ubuntu 18.04, with cuda 9.1 (nvcc V9.1.85), nvidia driver 390.116. (Due to other projects on this workstation, reinstalling graphics drivers or cuda is not really viable...).
Python 3.6.8 is in a local conda environment, with specified conda install cudatoolkit=9.0 cudnn=7.1.2.
Pytorch, I've tried pytorch=1.0.0 and pytorch (no specific version) via conda install, neither seems to resolve the compile error.
Gcc/g++, I've tried 5.5.0, 4.9.3, 6.5.0 and 7.4.0. (4.9 from xenial repositories, since it's no longer available in bionic, and the others from ppa:/ubuntu-toolchain-r/test), switched via update-alternatives. No luck with any.
I've also tried to explicitly link nvcc to specific gcc in the various setup.py scripts by adding '-DCUDA_HOST_COMPILER=/usr/bin/gcc-5' to the nvcc-args list, even that did not work.
Googling for similar issues suggests that pytorch-1.0 extensions don't really work with nvcc/cuda <9.2; however you're suggesting version 9.0 in the instructions...
Any thoughts on how to best resolve this, so that pytorch extensions can compile?
Output from running the ./build.sh in DAIN/my_packages (from one of the setup.py, to avoid replicating the same thing 8 times:
Thanks, but that did not solve the issue. (We run 1080Ti's, which are the already-enabled-in-build-scripts 6.1).
Ultimately, this looks like the bug caused by cuda 9.0 / 9.1 inability to compile pytorch extensions due to miscommunication between our nvcc 9.1 and gcc.
The only way we ended up solving it, was to bite the bullet and upgrade the workstation's cuda to 9.2 (including the necessary driver upgrade) and ensuring that nvcc v9.2 was used in the build process.
All I can conclude, from our efforts at resolving this, is that pytorch extension building simply does not function with cuda 9.0 / 9.1, it is mandatory to use 9.2.
I'm closing the issue - since there's nothing the authors can do do resolve this, ultimately - but it would be nice to clarify in the instructions that the dependency is 9.2, not 9.0...
When trying to install this project, it fails on the PyTorch extension compilation step.
Specifically, /usr/bin/nvcc failed with exit status 1, due to errors in /usr/include/c++/6/tuple and /usr/include/c++/6/type_straits. (actual printout below).
Our system is running ubuntu 18.04, with cuda 9.1 (nvcc V9.1.85), nvidia driver 390.116. (Due to other projects on this workstation, reinstalling graphics drivers or cuda is not really viable...).
Python 3.6.8 is in a local conda environment, with specified conda install cudatoolkit=9.0 cudnn=7.1.2.
Pytorch, I've tried pytorch=1.0.0 and pytorch (no specific version) via conda install, neither seems to resolve the compile error.
Gcc/g++, I've tried 5.5.0, 4.9.3, 6.5.0 and 7.4.0. (4.9 from xenial repositories, since it's no longer available in bionic, and the others from ppa:/ubuntu-toolchain-r/test), switched via update-alternatives. No luck with any.
I've also tried to explicitly link nvcc to specific gcc in the various setup.py scripts by adding '-DCUDA_HOST_COMPILER=/usr/bin/gcc-5' to the nvcc-args list, even that did not work.
Googling for similar issues suggests that pytorch-1.0 extensions don't really work with nvcc/cuda <9.2; however you're suggesting version 9.0 in the instructions...
Any thoughts on how to best resolve this, so that pytorch extensions can compile?
Output from running the ./build.sh in DAIN/my_packages (from one of the setup.py, to avoid replicating the same thing 8 times:
The text was updated successfully, but these errors were encountered: