Skip to content

Implement torch::cuda::synchronize() #47722

@ezyang

Description

@ezyang

In Python we have torch.cuda.synchronize() but the C++ counterpart doesn't exist. Ref https://github.com/pytorch/pytorch/pull/47428/files#r520917319

A nice follow up is to build up all of torch::cuda so that it has API parity with torch.cuda. Make sure your implementation works even when built without CUDA support (existing functions in torch::cuda should clue you how to do this.)

cc @yf225 @glaringlee

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: bootcampWe plan to do a full writeup on the issue, and then get someone to do it for onboardingmodule: cppRelated to C++ APItriagedThis 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