Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
superbenchmark
Commits
1f48268b
Unverified
Commit
1f48268b
authored
Feb 15, 2022
by
Yifan Xiong
Committed by
GitHub
Feb 15, 2022
Browse files
Bug - Fix env file path (#310)
Fix env file path for `docker run`.
parent
53fe0c47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
superbench/runner/runner.py
superbench/runner/runner.py
+1
-1
No files found.
superbench/runner/runner.py
View file @
1f48268b
...
@@ -387,7 +387,7 @@ class SuperBenchRunner():
...
@@ -387,7 +387,7 @@ class SuperBenchRunner():
logger
.
info
(
'Runner is going to run %s in %s mode, proc rank %d.'
,
benchmark_name
,
mode
.
name
,
mode
.
proc_rank
)
logger
.
info
(
'Runner is going to run %s in %s mode, proc rank %d.'
,
benchmark_name
,
mode
.
name
,
mode
.
proc_rank
)
timeout
=
self
.
_sb_benchmarks
[
benchmark_name
].
timeout
timeout
=
self
.
_sb_benchmarks
[
benchmark_name
].
timeout
env_list
=
'--env-file sb.env'
env_list
=
'--env-file
sb-workspace/
sb.env'
for
k
,
v
in
mode
.
env
.
items
():
for
k
,
v
in
mode
.
env
.
items
():
if
isinstance
(
v
,
str
):
if
isinstance
(
v
,
str
):
env_list
+=
f
' -e
{
k
}
=
{
str
(
v
).
format
(
proc_rank
=
mode
.
proc_rank
,
proc_num
=
mode
.
proc_num
)
}
'
env_list
+=
f
' -e
{
k
}
=
{
str
(
v
).
format
(
proc_rank
=
mode
.
proc_rank
,
proc_num
=
mode
.
proc_num
)
}
'
...
...
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