Skip to content

Some parts of PyTorch test suite don't work properly on non-default stream #21589

@ezyang

Description

@ezyang

In @fbhuba PR #21474 we switch the stream before running tests. But in this PR, a lot of tests failed and we had to disable the stream switching behavior for large portions of the test suite. There is probably something very important in PyTorch that is not stream safe, we need to figure it out.

Currently known reasons why you might be on wrong stream:

  • Calling thrust functions (e.g., thrust::tabulate) without specifying a policy that puts things on the right stream
  • Backwards runs on default stream

Metadata

Metadata

Assignees

No one assigned

    Labels

    largeWe think that this is a pretty chunky piece of workmodule: cudaRelated to torch.cuda, and CUDA support in generalmodule: testsIssues related to tests (not the torch.testing module)triagedThis 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