Skip to content

Unset CUDA_VISIBLE_DEVICES for worker processes #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 21, 2018

Conversation

icywang86rui
Copy link
Contributor

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@@ -107,6 +107,8 @@ def _run_ps(env):


def _run_worker(env):
if os.environ.get('CUDA_VISIBLE_DEVICES'):

Choose a reason for hiding this comment

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

Should we put a note on why we are doing this ? As it is not obvious for the reader

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, good idea

@icywang86rui icywang86rui merged commit 534ffa7 into aws:script-mode Nov 21, 2018
Elizaaaaa pushed a commit to Elizaaaaa/sagemaker-tensorflow-container that referenced this pull request Nov 4, 2019
* Unset CUDA_VISIBLE_DEVICES for worker processes

* Add comments
Elizaaaaa pushed a commit to Elizaaaaa/sagemaker-tensorflow-container that referenced this pull request Nov 4, 2019
* Unset CUDA_VISIBLE_DEVICES for worker processes

* Add comments
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.

2 participants