Skip to content

PyTorch CUDA extensions break during compilation with CUDA10.2.89 #33203

@ptrblck

Description

@ptrblck

🐛 Bug

Currently CUDA extensions in PyTorch break using nvcc 10.2.89 with the following error:

/workspace/src/pytorch/torch/include/c10/util/variant.h: In functionconstexpr decltype(auto) c10::visit(Visitor&&, Vs&& ...)’:
/workspace/src/pytorch/torch/include/c10/util/variant.h:2718:97: error: parameter packs not expanded with ‘...’:
     return (detail_::all({!vs.valueless_by_exception()...})

After debugging this issue, it appears to be related to an nvcc issue in CUDA version 10.2.89. As we are working on fixing this issue, it is recommended for those who compile CUDA extensions to use CUDA 10.1.168.

To Reproduce

Steps to reproduce the behavior:

# PyTorch compiled with CUDA10.2.89
git clone https://github.com/pytorch/extension-cpp
cd extension-cpp/cuda
python setup.py install

CC @csarofeen @ngimel

cc @ezyang @gchanan @zou3519 @yf225 @ngimel

Metadata

Metadata

Assignees

No one assigned

    Labels

    high prioritymodule: buildBuild system issuesmodule: cpp-extensionsRelated to torch.utils.cpp_extensionmodule: cudaRelated to torch.cuda, and CUDA support in generaltriage reviewtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions