Skip to content

Conversation

@gchanan
Copy link
Contributor

@gchanan gchanan commented Sep 12, 2018

This also unifies the device usage between the async and sync case.

Fixes #10832.

This also unifies the device usage between the async and sync case.

Fixes pytorch#10832.
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

gchanan has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

gchanan has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

test/run_test.py Outdated
'cpp_extensions',
'c10d',
'cuda',
'cuda_primary_ctx.py'

This comment was marked as off-topic.

self.assertFalse(get_is_primary_context_created(0))
self.assertTrue(get_is_primary_context_created(1))

# DO NOT ADD ANY OTHER TESTS HERE! ABOVE TEST REQUIRES FRESH PROCESS

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

gchanan has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.


{
THTensor *selfc = THTensor_(newContiguous)(self);
int tensorDevice = THCTensor_(getDevice)(state, src);

This comment was marked as off-topic.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

gchanan has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Sep 14, 2018
…#11592)

Summary:
This also unifies the device usage between the async and sync case.

Fixes pytorch/pytorch#10832.
Pull Request resolved: pytorch/pytorch#11592

Differential Revision: D9797355

Pulled By: gchanan

fbshipit-source-id: e496cd371111cfaf9a6c664167967b395e3d72e9
@ezyang ezyang added the merged label Jun 26, 2019
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.

CUDA context created on gpu0 when only gpu1 is used

4 participants