-
Notifications
You must be signed in to change notification settings - Fork 27.6k
Compilation of <torch/extension.h> error on Windows CUDA 11.5 #69460
Copy link
Copy link
Closed
Labels
has workaroundhigh prioritymodule: cudaRelated to torch.cuda, and CUDA support in generalRelated to torch.cuda, and CUDA support in generalmodule: dependency bugProblem is not caused by us, but caused by an upstream library we useProblem is not caused by us, but caused by an upstream library we usemodule: docsRelated to our documentation, both in docs/ and docblocksRelated to our documentation, both in docs/ and docblocksmodule: pybindRelated to our Python bindings / interactions with other Python librariesRelated to our Python bindings / interactions with other Python librariesmodule: windowsWindows support for PyTorchWindows support for PyTorchtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Milestone
Metadata
Metadata
Labels
has workaroundhigh prioritymodule: cudaRelated to torch.cuda, and CUDA support in generalRelated to torch.cuda, and CUDA support in generalmodule: dependency bugProblem is not caused by us, but caused by an upstream library we useProblem is not caused by us, but caused by an upstream library we usemodule: docsRelated to our documentation, both in docs/ and docblocksRelated to our documentation, both in docs/ and docblocksmodule: pybindRelated to our Python bindings / interactions with other Python librariesRelated to our Python bindings / interactions with other Python librariesmodule: windowsWindows support for PyTorchWindows support for PyTorchtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Type
Projects
Status
Done
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