CUDA compilation fails
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 12/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Ambito
- build-system
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
- 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
- Lingua principale
- Python
- Stelle
- 1.2k
- Fork
- 250
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pytorch/extension-cpp
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
pytorch/extension-cpp#100 · 5 commenti ·
-
Deprecation warningAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
pytorch/extension-cpp#82 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
pytorch/extension-cpp#124 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
pytorch/extension-cpp#123 ·
-
Difficoltà 4/5 1-2 giorni Idoneità per principianti 12/100
pytorch/extension-cpp#121 · 3 commenti ·
Tutte le issue di pytorch/extension-cpp
Issue simili
-
Container fails to start when GitHub Releases is unavailable: uv run re-downloads the tvl wheelAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
trezor/trezor-user-env#421 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 91/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
tangentcode/tangentswarm#167 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno