CUDA compilation fails
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 12/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Domaine
- build-system
Piste de recherche
The failure comes from python setup.py install invoking /usr/local/cuda/bin/nvcc on a CUDA extension that includes PyTorch's bundled pybind11 headers, so start with the extension's setup.py and the compile flags it passes to nvcc. The attached log is needed to find the first error, since the pasted tail only shows template deduction failures in cast.h. Done would mean either a build that succeeds with CUDA 9.0 and GCC 7.5, or a documented version constraint. Reproducing it requires that old toolchain, and the issue has had no reply in about six years.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
- OS: Ubuntu 18.04
- PyTorch version: 1.1.0
- How you installed PyTorch (conda, pip, source): pip
- Python version: 3.6.6
- CUDA/cuDNN version: 9.0/7.4.1
- GPU models and configuration: GeForce GTX 1050 Ti, driver 390.132
- GCC version (if compiling from source): 7.5.0
Compiling the cpp version is ok, but the cuda python setup.py install fails.
The output log is quite long so I have attached it, and I put the end of the log below.
Any ideas?
/home/tom/miniconda3/envs/venv/lib/python3.6/site-packages/torch/include/pybind11/pytypes.h:923:28: required from ‘pybind11::str pybind11::str::format(Args&& ...) const [with Args = {pybind11::object&, const pybind11::handle&}]’
/home/tom/miniconda3/envs/venv/lib/python3.6/site-packages/torch/include/pybind11/pybind11.h:1401:51: required from here
/home/tom/miniconda3/envs/venv/lib/python3.6/site-packages/torch/include/pybind11/cast.h:2108:44: error: no matching function for call to ‘collect_arguments(pybind11::object&, const pybind11::handle&)’
return detail::collect_arguments<policy>(std::forward<Args>(args)...).call(derived().ptr());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tom/miniconda3/envs/venv/lib/python3.6/site-packages/torch/include/pybind11/cast.h:2087:1: note: candidate: template<pybind11::return_value_policy policy, class ... Args, class> pybind11::detail::simple_collector<policy> pybind11::detail::collect_arguments(Args&& ...)
simple_collector<policy> collect_arguments(Args &&...args) {
^~~~~~~~~~~~~~~~~
/home/tom/miniconda3/envs/venv/lib/python3.6/site-packages/torch/include/pybind11/cast.h:2087:1: note: template argument deduction/substitution failed:
/home/tom/miniconda3/envs/venv/lib/python3.6/site-packages/torch/include/pybind11/cast.h:2094:1: note: candidate: template<pybind11::return_value_policy policy, class ... Args, class> pybind11::detail::unpacking_collector<policy> pybind11::detail::collect_arguments(Args&& ...)
unpacking_collector<policy> collect_arguments(Args &&...args) {
^~~~~~~~~~~~~~~~~
/home/tom/miniconda3/envs/venv/lib/python3.6/site-packages/torch/include/pybind11/cast.h:2094:1: note: template argument deduction/substitution failed:
error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1
- Langage dominant
- Python
- Étoiles
- 1.2k
- Forks
- 250
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de pytorch/extension-cpp
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 68/100
pytorch/extension-cpp#100 · 5 commentaires ·
-
Deprecation warningOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
pytorch/extension-cpp#82 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
pytorch/extension-cpp#124 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
pytorch/extension-cpp#123 ·
-
Difficulté 4/5 1-2 jours Accessibilité débutants 12/100
pytorch/extension-cpp#121 · 3 commentaires ·
Toutes les issues de pytorch/extension-cpp
Issues similaires
-
Container fails to start when GitHub Releases is unavailable: uv run re-downloads the tvl wheelOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
trezor/trezor-user-env#421 ·
-
Support new version of pythonOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
-
Difficulté 1/5 1-3 heures Accessibilité débutants 91/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
tangentcode/tangentswarm#167 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour