argobots icon indicating copy to clipboard operation
argobots copied to clipboard

Utilize the new pool interface

Open shintaro-iwasaki opened this issue 3 years ago • 2 comments

#354 introduced a new pool interface, which is more flexible and easy to implement. We should implement the following to fully utilize this new pool interface.

  • New user APIs (mainly pool routines) that accept ABT_pool_context
  • Clarification and revision of API descriptions
  • Predefined random work-stealing pool (ABT_POOL_RANDWS)
  • Predefined priority-aware pool ABT_POOL_PRIO_FIFO (or maybe ABT_POOL_PRIO_RANDWS ...?)
  • More examples (ring-buffer, LIFO, fine-grained priority control, ...)

shintaro-iwasaki avatar Jul 26 '21 21:07 shintaro-iwasaki

ABT_pool functions that accept ABT_pool_context were implemented by #357. A predefined random work-stealing pool (ABT_POOL_RANDWS) was implemented by #359.

shintaro-iwasaki avatar Aug 05 '21 14:08 shintaro-iwasaki

Some users are still relying on the old customized pool API (see #366). We should create a unit test similar to https://github.com/pmodels/argobots/blob/main/test/basic/pool_user_def.c for the old custom pool API.

shintaro-iwasaki avatar Aug 23 '21 02:08 shintaro-iwasaki