The adiak plugin interface needs a complete documented example included showing:
- what a plugin must and might do (and when, in lifecycle terms).
- what threading contract the plugin must comply with (looks like adiak is by design single-threaded, but I don't find it stated anywhere). e.g. will it be called from inside openmp non-gpu threads? pthreads?
It's not clear to me if tests/testlib.c is a plugin demo or if it is complete wrt both how a plugin is called and what other things in the adiak api a plugin can call.