Unverified Commit 5a2adddc authored by Yifan Xiong's avatar Yifan Xiong Committed by GitHub
Browse files

Remove unreachable condition when write host list (#512)

Remove unreachable condition when write host list in mpi mode.
parent 4c5417f7
...@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment