Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Philippe SWARTVAGHER
memory-contention
Commits
5aab5f7f
Commit
5aab5f7f
authored
Jan 05, 2022
by
Philippe SWARTVAGHER
Browse files
Fix condition to print warning "worker did less than x iterations"
parent
4da861f5
Changes
1
Show whitespace changes
Inline
Side-by-side
src/openmp_memset.c
View file @
5aab5f7f
...
@@ -287,7 +287,7 @@ static double memset_run_kernel(enum bench_type bench_type)
...
@@ -287,7 +287,7 @@ static double memset_run_kernel(enum bench_type bench_type)
{
{
for
(
int
i
=
0
;
i
<
nb_threads
;
i
++
)
for
(
int
i
=
0
;
i
<
nb_threads
;
i
++
)
{
{
if
(
nb_iter_per_thread
[
i
]
<
=
NB_ITER
)
if
(
nb_iter_per_thread
[
i
]
<
NB_ITER
)
{
{
fprintf
(
stderr
,
"# Warning: thread %d did less than %d iterations (%u).
\n
"
,
i
,
NB_ITER
,
nb_iter_per_thread
[
i
]);
fprintf
(
stderr
,
"# Warning: thread %d did less than %d iterations (%u).
\n
"
,
i
,
NB_ITER
,
nb_iter_per_thread
[
i
]);
}
}
...
...
Write
Preview
Supports
Markdown
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