flux_shell_get_taskmap(3)
SYNOPSIS
#include <flux/shell.h>
#include <errno.h>
const struct taskmap * flux_shell_get_taskmap (flux_shell_t *shell);
Link with -lflux-core.
DESCRIPTION
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
.
RETURN VALUE
This function returns a pointer to the shell's internal struct taskmap
or NULL
on failure with errno
set.
ERRORS
- EINVAL
if
shell
is NULL or the function is called before the initial taskmap is set by the shell.
RESOURCES
Flux: http://flux-framework.org
Flux RFC: https://flux-framework.readthedocs.io/projects/flux-rfc
Issue Tracker: https://github.com/flux-framework/flux-core/issues