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
sds
abt-io
Commits
88ca3639
Commit
88ca3639
authored
Jan 25, 2016
by
Philip Carns
Browse files
document possible issue with benchmark
parent
8b0f2cb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/concurrent-write-bench.c
View file @
88ca3639
...
...
@@ -146,6 +146,7 @@ static void abt_bench(int argc, char **argv, unsigned int concurrency, size_t si
progress_xstreams
=
malloc
(
concurrency
*
sizeof
(
*
progress_xstreams
));
assert
(
progress_xstreams
);
printf
(
"WARNING: this benchmark may have an issue with one core busy spinning, see comments.
\n
"
);
/* set up argobots */
ret
=
ABT_init
(
argc
,
argv
);
assert
(
ret
==
0
);
...
...
@@ -191,6 +192,10 @@ static void abt_bench(int argc, char **argv, unsigned int concurrency, size_t si
arg
.
start_time
=
wtime
();
/* TODO: this is likely to be causing the main thread to busy spin
* waiting for the ULTs to complete. Need to confirm. Can be addressed
* in Argobots possibly or by working around with an eventual wait here.
*/
for
(
i
=
0
;
i
<
concurrency
;
i
++
)
ABT_thread_join
(
tid_array
[
i
]);
...
...
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