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
7023bfad
Commit
7023bfad
authored
Jan 10, 2022
by
Philippe SWARTVAGHER
Browse files
plot_model.py: fix run on machine with one socket/NUMA node
parent
316d5061
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/plot_model.py
View file @
7023bfad
...
...
@@ -39,6 +39,8 @@ print(f"{topo.nb_cores_total} cores")
nb_cores_to_consider
=
topo
.
nb_cores_per_numa_node
*
topo
.
nb_numa_nodes_per_socket
if
not
cli_args
.
only_first_socket
:
nb_cores_to_consider
*=
topo
.
nb_sockets
if
topo
.
nb_numa_nodes_total
==
1
or
not
cli_args
.
only_first_socket
:
nb_cores_to_consider
-=
1
# one core is used by communication thread
print
(
f
"Will consider the performance with up to
{
nb_cores_to_consider
}
cores"
)
...
...
@@ -52,10 +54,11 @@ if cli_args.model:
model_local
.
print_params
()
print
(
"** Modeling remote accesses..."
)
if
topo
.
nb_numa_nodes_total
>
1
:
print
(
"** Modeling remote accesses..."
)
model_remote
=
get_model
(
cli_args
.
comp_kernel
,
topo
.
nb_numa_nodes_per_socket
,
nb_cores_to_consider
)
model_remote
.
print_params
()
model_remote
=
get_model
(
cli_args
.
comp_kernel
,
topo
.
nb_numa_nodes_per_socket
,
nb_cores_to_consider
)
model_remote
.
print_params
()
else
:
print
(
"** Skipping model building"
)
...
...
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