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
sds
abt-io
Commits
3d1dfbf9
Commit
3d1dfbf9
authored
Mar 31, 2020
by
Rob Latham
Browse files
Add routine to get count of ULT from abt-io pool
parent
bc229af6
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/abt-io.h
View file @
3d1dfbf9
...
...
@@ -218,6 +218,11 @@ int abt_io_op_wait(abt_io_op_t* op);
*/
void
abt_io_op_free
(
abt_io_op_t
*
op
);
/**
* enquire about status of underlying Argobots pool
*/
size_t
abt_io_get_pending_op_count
(
abt_io_instance_id
aid
);
#ifdef __cplusplus
}
#endif
...
...
src/abt-io.c
View file @
3d1dfbf9
...
...
@@ -1021,3 +1021,14 @@ void abt_io_op_free(abt_io_op_t* op)
op
->
free_fn
(
op
->
state
);
free
(
op
);
}
size_t
abt_io_get_pending_op_count
(
abt_io_instance_id
aid
)
{
size_t
size
;
int
ret
;
ret
=
ABT_pool_get_size
(
aid
->
progress_pool
,
&
size
);
if
(
ret
==
ABT_SUCCESS
)
return
size
;
else
return
-
1
;
}
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