Commit 9fc16ae9 authored by Philippe SWARTVAGHER's avatar Philippe SWARTVAGHER
Browse files

plot_model.py: change styles of graphs

Measured values are dots/+ and model is a curve.
parent 7b078b2f
......@@ -126,14 +126,16 @@ for numa_comp in range(topo.nb_numa_nodes_total):
CommCompGraphCurveType.ALONE,
False,
[parser.comm_bw_alone_results[x]['d1'] for x in real_x_values],
comm_alone_upper_values
comm_alone_upper_values,
display_line=False
)
else:
graph.add_comm_curve(
[parser.comm_bw_with_comp_results[1]['med']] * len(real_x_values),
"alone",
CommCompGraphCurveType.ALONE,
False
False,
display_line=False
)
max_comm = max(max_comm, parser.comm_bw_with_comp_results[1]['med'])
......@@ -146,7 +148,8 @@ for numa_comp in range(topo.nb_numa_nodes_total):
CommCompGraphCurveType.PARALLEL,
True,
[parser.comm_bw_with_comp_results[x]['d1'] for x in real_x_values],
comm_with_comp_upper_values
comm_with_comp_upper_values,
display_line=False
)
comm_color = graph.last_used_color
......@@ -156,9 +159,9 @@ for numa_comp in range(topo.nb_numa_nodes_total):
graph.add_comm_curve(
comm_values_model,
"while Computations - model",
CommCompGraphCurveType.PARALLEL,
CommCompGraphCurveType.ALONE,
True,
display_line=False
display_line=True
)
error = compute_error(comm_with_comp_values, comm_values_model)
......@@ -178,17 +181,19 @@ for numa_comp in range(topo.nb_numa_nodes_total):
CommCompGraphCurveType.ALONE,
False,
[parser.comp_alone_results[op][x][metric]['min'] for x in real_x_values],
comp_alone_upper_values
comp_alone_upper_values,
display_line=False
)
comp_with_comm_values = [parser.comp_with_comm_results[op][x][metric]['avg'] for x in real_x_values]
graph.add_comp_curve(
comp_with_comm_values,
f"{cli_args.comp_kernel} while Ping-Pongs",
f"{cli_args.comp_kernel} while Communications",
CommCompGraphCurveType.PARALLEL,
True,
[parser.comp_with_comm_results[op][x][metric]['min'] for x in real_x_values],
[parser.comp_with_comm_results[op][x][metric]['max'] for x in real_x_values]
[parser.comp_with_comm_results[op][x][metric]['max'] for x in real_x_values],
display_line=False
)
comp_color = graph.last_used_color
......@@ -199,9 +204,9 @@ for numa_comp in range(topo.nb_numa_nodes_total):
graph.add_comp_curve(
comp_values_model,
f"{cli_args.comp_kernel} - model",
CommCompGraphCurveType.PARALLEL,
CommCompGraphCurveType.ALONE,
True,
display_line=False
display_line=True
)
error = compute_error(comp_with_comm_values, comp_values_model)
......
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