Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
deepspeed
Commits
012d91df
Unverified
Commit
012d91df
authored
Mar 22, 2020
by
Olatunji Ruwase
Committed by
GitHub
Mar 22, 2020
Browse files
Export all python environment variables, not just PYTHONPATH (#165)
parent
ac9cc7fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
deepspeed/pt/deepspeed_run.py
deepspeed/pt/deepspeed_run.py
+2
-2
No files found.
deepspeed/pt/deepspeed_run.py
100644 → 100755
View file @
012d91df
...
...
@@ -18,7 +18,7 @@ import torch.cuda
from
deepspeed.pt.deepspeed_constants
import
TORCH_DISTRIBUTED_DEFAULT_PORT
DLTS_HOSTFILE
=
"/job/hostfile"
EXPORT_ENVS
=
[
"NCCL"
,
"PYTHON
PATH
"
]
EXPORT_ENVS
=
[
"NCCL"
,
"PYTHON"
]
DEEPSPEED_ENVIRONMENT_NAME
=
".deepspeed_env"
DEEPSPEED_ENVIRONMENT_PATHS
=
[
os
.
path
.
expanduser
(
"~"
),
'.'
]
...
...
@@ -305,7 +305,7 @@ def main(args=None):
exports
=
""
for
var
in
env
.
keys
():
if
any
(
map
(
lambda
name
:
name
in
var
,
EXPORT_ENVS
)):
if
any
(
map
(
lambda
name
:
var
.
startswith
(
name
)
,
EXPORT_ENVS
)):
exports
+=
"export {}={}; "
.
format
(
var
,
env
[
var
])
for
environ_path
in
DEEPSPEED_ENVIRONMENT_PATHS
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment