18.3.22. pmix_app_t
pmix_app_t — Describes an application context for spawn operations
18.3.22.1. SYNTAX
18.3.22.1.1. C Syntax
#include <pmix_common.h>
typedef struct pmix_app {
char *cmd;
char **argv;
char **env;
char *cwd;
int maxprocs;
pmix_info_t *info;
size_t ninfo;
} pmix_app_t;
18.3.22.2. DESCRIPTION
The pmix_app_t structure describes the application context for the
PMIx_Spawn(3) and PMIx_Spawn_nb operations. Each
structure fully specifies one application to be launched.
The fields are:
cmdThe executable to be launched, given as a string.
argvA
NULL-terminated, argv-style array of argument strings passed to the executable.envA
NULL-terminated, argv-style array of environment variable strings to be set in the environment of the spawned processes.cwdThe current working directory in which the spawned processes are to be started.
maxprocsThe maximum number of processes to be started with this application profile.
infoAn array of pmix_info_t structures containing attributes that describe this application (e.g., directives influencing how it is to be launched).
ninfoThe number of elements in the
infoarray.
18.3.22.3. STATIC INITIALIZER
A statically declared pmix_app_t may be initialized with the
PMIX_APP_STATIC_INIT macro, which sets cmd, argv, env, cwd, and info to NULL and maxprocs and ninfo to 0:
pmix_app_t app = PMIX_APP_STATIC_INIT;
See also