cuda does not install
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 半天
- 新手友好度
- 15/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- build-system
调研方向
The failure is in the JIT path: jit.py calls torch.utils.cpp_extension.load for lltm_cuda.cpp and lltm_cuda_kernel.cu, and the IndexError comes from _get_cuda_arch_flags, where arch_list[-1] is read from an empty list. Start by checking whether the environment exposes a GPU or TORCH_CUDA_ARCH_LIST, since that list is what the code reads. Done means the build either succeeds on a machine with that setup or fails with a clear message. The thread is 18 comments long, with no assignee and no linked pull request, and the last comment was about two years ago.
由索引模型根据 Issue 内容生成。
描述
python : 3.7
cuda : 11.1
pytorch : 1.8
I am trying to compile the cuda code which does not work, could you have a look please? thanks
Traceback (most recent call last):
File "jit.py", line 3, in <module>
'lltm_cuda', ['lltm_cuda.cpp', 'lltm_cuda_kernel.cu'], verbose=True)
File "/user/x/anaconda3/envs/test1/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1091, in load
keep_intermediates=keep_intermediates)
File "/user/x/libs/anaconda3/envs/test1/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1302, in _jit_compile
is_standalone=is_standalone)
File "/user/x/libs/anaconda3/envs/test1/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1400, in _write_ninja_file_and_build_library
is_standalone=is_standalone)
File "/user/x/libs/anaconda3/envs/test1/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1782, in _write_ninja_file_to_build_library
cuda_flags = common_cflags + COMMON_NVCC_FLAGS + _get_cuda_arch_flags()
File "/user/x/libs/anaconda3/envs/test1/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1561, in _get_cuda_arch_flags
arch_list[-1] += '+PTX'
IndexError: list index out of range
- 主要语言
- 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
维护者通常 1 天内回复
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"可能已有人在做 @cestercian 今天认领。 未关闭comp/cli P2 type/bug
难度 2/5 1-3 小时 新手友好度 75/100
NousResearch/hermes-agent#162259 · 1 条评论 ·
维护者通常 1 天内回复
-
upstream update
难度 2/5 1-3 小时 新手友好度 72/100
conan-io/conan-center-index#31597 ·
维护者通常 1 天内回复
-
bug enhancement
难度 1/5 1 小时以内 新手友好度 90/100
AOSSIE-Org/PictoPy#1802 · 2 条评论 ·
维护者通常 3 天内回复
-
community-request
难度 2/5 1-3 小时 新手友好度 78/100
NVIDIA-NeMo/Run#727 ·
维护者通常 1 天内回复