CUDA compilation fails
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 12/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- build-system
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
- 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
- 主要语言
- Python
- 星标
- 1.2k
- 派生
- 250
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pytorch/extension-cpp 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 68/100
pytorch/extension-cpp#100 · 5 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 78/100
pytorch/extension-cpp#82 ·
-
难度 4/5 3-5 天 新手友好度 45/100
pytorch/extension-cpp#124 ·
-
难度 3/5 1-2 天 新手友好度 35/100
pytorch/extension-cpp#123 ·
-
难度 4/5 1-2 天 新手友好度 12/100
pytorch/extension-cpp#121 · 3 条评论 ·
查看 pytorch/extension-cpp 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
trezor/trezor-user-env#421 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 1/5 1-3 小时 新手友好度 91/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
tangentcode/tangentswarm#167 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复