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
tsoc
superbenchmark
Commits
5a2adddc
Unverified
Commit
5a2adddc
authored
Apr 12, 2023
by
Yifan Xiong
Committed by
GitHub
Apr 12, 2023
Browse files
Remove unreachable condition when write host list (#512)
Remove unreachable condition when write host list in mpi mode.
parent
4c5417f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
superbench/common/utils/gen_traffic_pattern_config.py
superbench/common/utils/gen_traffic_pattern_config.py
+10
-11
No files found.
superbench/common/utils/gen_traffic_pattern_config.py
View file @
5a2adddc
...
@@ -182,7 +182,6 @@ def gen_traffic_pattern_host_groups(host_list, pattern, mpi_pattern_path, benchm
...
@@ -182,7 +182,6 @@ def gen_traffic_pattern_host_groups(host_list, pattern, mpi_pattern_path, benchm
logger
.
error
(
'Unsupported traffic pattern: {}'
.
format
(
pattern
.
type
))
logger
.
error
(
'Unsupported traffic pattern: {}'
.
format
(
pattern
.
type
))
host_groups
=
__convert_config_to_host_group
(
config
,
host_list
)
host_groups
=
__convert_config_to_host_group
(
config
,
host_list
)
# write traffic pattern host groups to specified path
# write traffic pattern host groups to specified path
if
pattern
.
mpi_pattern
:
with
open
(
mpi_pattern_path
,
'a'
)
as
f
:
with
open
(
mpi_pattern_path
,
'a'
)
as
f
:
f
.
write
(
'benchmark_name: {} pattern_type: {}'
.
format
(
benchmark_name
,
pattern
.
type
)
+
'
\n
'
)
f
.
write
(
'benchmark_name: {} pattern_type: {}'
.
format
(
benchmark_name
,
pattern
.
type
)
+
'
\n
'
)
for
host_group
in
host_groups
:
for
host_group
in
host_groups
:
...
...
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