Skip to content

Move Device and DeviceType to c10#12995

Closed
ezyang wants to merge 4 commits intomasterfrom
export-D10513246
Closed

Move Device and DeviceType to c10#12995
ezyang wants to merge 4 commits intomasterfrom
export-D10513246

Conversation

@ezyang
Copy link
Copy Markdown
Contributor

@ezyang ezyang commented Oct 23, 2018

Stack:
    :black_circle:  #12995 Move Device and DeviceType to c10  💛
    :white_circle:  #13019 Replace direct use of int32_t with an alias DeviceIndex  💛
    :white_circle:  #13021 Delete default constructor from CUDAStream.  💛

Differential Revision: D10513246

Differential Revision: D10513246
Differential Version: 61419882
Differential Revision: D10513246
Differential Version: 61420227
Copy link
Copy Markdown
Contributor

@li-roy li-roy left a comment

Choose a reason for hiding this comment

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

looks good, please fix builds :)

Copy link
Copy Markdown
Contributor

@Yangqing Yangqing left a comment

Choose a reason for hiding this comment

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

Thanks so much! Approved with minor comments.

Comment thread aten/src/ATen/Device.h
@@ -1,2 +1,2 @@
#pragma once
#include <ATen/core/Device.h>
#include <c10/Device.h>

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Comment thread c10/DeviceType.cpp
namespace c10 {

std::string DeviceTypeName(at::DeviceType d, bool lower_case) {
std::string DeviceTypeName(DeviceType d, bool lower_case) {

This comment was marked as off-topic.

Comment thread c10/DeviceType.h
};
} // namespace std

// TODO: Remove me when we get a global c10 namespace using in at

This comment was marked as off-topic.

Comment thread c10/Device.h

// TODO: Remove when we add global namespace include
namespace at {
using c10::Device;

This comment was marked as off-topic.

Differential Revision: D10513246
Differential Version: 61434145
Differential Revision: D10513246
Differential Version: 61443861
zdevito pushed a commit to zdevito/ATen that referenced this pull request Oct 24, 2018
Summary: Pull Request resolved: pytorch/pytorch#12995

Reviewed By: Yangqing

Differential Revision: D10513246

fbshipit-source-id: 0c6d52e09166d7e8a786c1a0e21685ec9c35b12a
@soumith soumith deleted the export-D10513246 branch February 21, 2019 12:12
@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#12995

Reviewed By: Yangqing

Differential Revision: D10513246

fbshipit-source-id: 0c6d52e09166d7e8a786c1a0e21685ec9c35b12a
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