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
Philippe SWARTVAGHER
memory-contention
Commits
9fc16ae9
Commit
9fc16ae9
authored
Jan 20, 2022
by
Philippe SWARTVAGHER
Browse files
plot_model.py: change styles of graphs
Measured values are dots/+ and model is a curve.
parent
7b078b2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/plot_model.py
View file @
9fc16ae9
...
...
@@ -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
=
Fals
e
display_line
=
Tru
e
)
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-P
on
g
s"
,
f
"
{
cli_args
.
comp_kernel
}
while
Communicati
ons"
,
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
=
Fals
e
display_line
=
Tru
e
)
error
=
compute_error
(
comp_with_comm_values
,
comp_values_model
)
...
...
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