c
#include <flux/shell.h>
#include <errno.h>
const struct taskmap * flux_shell_get_taskmap (flux_shell_t *shell);
Link with -lflux-core
.
flux_shell_get_taskmap
returns the current shell task map. The task map can be used to map job task ranks to node IDs and get the set of tasks assigned to any node ID. The struct taskmap
object can be queried via the functions exported in libflux-taskmap.so
.
This function returns a pointer to the shell's internal struct taskmap
or NULL
on failure with errno
set.
- EINVAL
if
shell
is NULL or the function is called before the initial taskmap is set by the shell.
rfc:spec_34