Skip to content

Delete default constructor from CUDAStream.#13021

Closed
ezyang wants to merge 20 commits intoexport-D10853224from
export-D10520421
Closed

Delete default constructor from CUDAStream.#13021
ezyang wants to merge 20 commits intoexport-D10853224from
export-D10520421

Conversation

@ezyang
Copy link
Copy Markdown
Contributor

@ezyang ezyang commented Oct 23, 2018

Stack:
    :white_circle:  #13125 Rewrite THPUtils_PySequence_to_CUDAStreamList to return vector<optional>  💛
    :black_circle:  #13021 Delete default constructor from CUDAStream.  💛
    :white_circle:  #13133 Add c10::Stream, make at::cuda::CUDAStream use it.  💛
    :white_circle:  #13232 Delete DeviceGuard(int64_t) constructor.  💛

Let's make nullptr CUDAStream an illegal state.

Differential Revision: D10520421

Differential Revision: D10513246
Differential Version: 61419882
Differential Revision: D10513246
Differential Version: 61420227
Differential Revision: D10513246
Differential Version: 61434145
Differential Revision: D10513246
Differential Version: 61443861
Differential Revision: D10520295
Differential Version: 61458546
Differential Revision: D10520421
Differential Version: 61459119
Differential Revision: D10520421
Differential Version: 61459533
Differential Revision: D10520421
Differential Version: 61461399
@ezyang
Copy link
Copy Markdown
Contributor Author

ezyang commented Oct 23, 2018

This is annoying for client code, I'm not going to do it.

@ezyang ezyang closed this Oct 23, 2018
@ezyang
Copy link
Copy Markdown
Contributor Author

ezyang commented Oct 23, 2018

Nevermind, the call sites must die

@ezyang ezyang reopened this Oct 23, 2018
Differential Revision: D10520421
Differential Version: 61510016
Differential Revision: D10528061
Differential Version: 61512798
Differential Revision: D10520421
Differential Version: 61514357
@ezyang ezyang changed the base branch from export-D10520295 to export-D10528061 October 24, 2018 15:29
Differential Revision: D10520421
Differential Version: 61514849
Differential Revision: D10520421
Differential Version: 61532957
@ezyang
Copy link
Copy Markdown
Contributor Author

ezyang commented Oct 24, 2018

This appears to have broken NCCL.

@ezyang ezyang changed the base branch from export-D10528061 to master October 25, 2018 14:13
Differential Revision: D10520421
Differential Version: 61650165
Differential Revision: D10520421
Differential Version: 61651201
Differential Revision: D10520421
Differential Version: 61671479
@ezyang ezyang changed the base branch from master to export-D10853224 October 25, 2018 17:47
Differential Revision: D10520421
Differential Version: 61686215
Differential Revision: D10520421
Differential Version: 61786871
Copy link
Copy Markdown
Contributor

@teng-li teng-li left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spoke offline, please fix these push_backs

Differential Revision: D10520421
Differential Version: 61828001
Differential Revision: D10520421
Differential Version: 61911845
@ezyang
Copy link
Copy Markdown
Contributor Author

ezyang commented Oct 29, 2018

@teng-li Now that the move constructor is fixed in HEAD, push_back is fine.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Oct 29, 2018
Summary:
Pull Request resolved: pytorch/pytorch#13021

Let's make nullptr CUDAStream an illegal state.

Reviewed By: gchanan

Differential Revision: D10520421

fbshipit-source-id: 723c1f5130b2c92ec97411a958707fac4a90173f
@ezyang ezyang added the merged label Jun 25, 2019
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Pull Request resolved: pytorch#13021

Let's make nullptr CUDAStream an illegal state.

Reviewed By: gchanan

Differential Revision: D10520421

fbshipit-source-id: 723c1f5130b2c92ec97411a958707fac4a90173f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants