KEMBAR78
Compilation of <torch/extension.h> error on Windows CUDA 11.5 · Issue #69460 · pytorch/pytorch · GitHub
Skip to content

Compilation of <torch/extension.h> error on Windows CUDA 11.5 #69460

@atalman

Description

@atalman

We have following error when compiling CUDA 11.5 on windows

C:\actions-runner_work\pytorch\pytorch\build\win_tmp\build\torch\include\pybind11\cast.h(1429): error: too few arguments for temp
late template parameter "Tuple"
detected during instantiation of class "pybind11::detail::tuple_caster<Tuple, Ts...> [with Tuple=std::pair, Ts=<T1, T2>]
"
(1507): here

C:\actions-runner_work\pytorch\pytorch\build\win_tmp\build\torch\include\pybind11\cast.h(1503): error: too few arguments for temp
late template parameter "Tuple"
detected during instantiation of class "pybind11::detail::tuple_caster<Tuple, Ts...> [with Tuple=std::pair, Ts=<T1, T2>]
"
(1507): here

Complete failure log:
https://github.com/pytorch/pytorch/runs/4408796098?check_suite_focus=true

This looks like the same issue as this one:
facebookresearch/pytorch3d#843

Here is the workaround for this issue:
facebookresearch/pytorch3d@cb170ac

cc @ezyang @gchanan @zou3519 @peterjc123 @mszhanyi @skyline75489 @nbcsm @brianjo @mruberry @ngimel @bdhirsh @jbschlosser @malfet @seemethere @pytorch/pytorch-dev-infra

Metadata

Metadata

Assignees

Labels

has workaroundhigh prioritymodule: cudaRelated to torch.cuda, and CUDA support in generalmodule: dependency bugProblem is not caused by us, but caused by an upstream library we usemodule: docsRelated to our documentation, both in docs/ and docblocksmodule: pybindRelated to our Python bindings / interactions with other Python librariesmodule: windowsWindows support for PyTorchtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions