|
KMR
|
Static-Spawning Interface. More...
#include <mpi.h>#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <string.h>#include <errno.h>#include <dlfcn.h>#include <assert.h>#include "kmrspawn.h"#include "kmr.h"#include "kmrimpl.h"Go to the source code of this file.
Functions | |
| static int | kmr_spawn_clean_process (struct kmr_spawn_hooks *hooks) |
| static int | kmr_spawn_exec_command (struct kmr_spawn_hooks *hooks, int argc, char **argv) |
| int | kmr_spawn_hookup_standin (struct kmr_spawn_hooks *hooks) |
| static int | kmr_spawn_join_to_master (struct kmr_spawn_hooks *hooks, struct kmr_spawn_work *w, size_t msglen) |
| static int | kmr_spawn_make_argv_printable (char *s, size_t sz, char **argv) |
| void KMR_LIBAPI() | kmr_spawn_service (struct kmr_spawn_hooks *hooks, int status) |
| void KMR_LIBAPI() | kmr_spawn_set_verbosity (struct kmr_spawn_hooks *hooks, int level) |
| int KMR_LIBAPI() | kmr_spawn_setup (struct kmr_spawn_hooks *hooks, MPI_Comm basecomm, int masterrank, int(*execfn)(struct kmr_spawn_hooks *hooks, int argc, char **argv), int nsubworlds, MPI_Comm subworlds[], unsigned long colors[], size_t argssize) |
| static int | kmr_spawn_start_work (struct kmr_spawn_hooks *hooks, struct kmr_spawn_work *w, size_t msglen) |
Variables | |
| static struct kmr_spawn_hooks * | kmr_fake_spawn_hooks = 0 |
Static-Spawning Interface.
This is a part of the spawning library (https://github.com/riken-rccs/mpispawner). See also the source code of the KMR map-reduce library for the use of spawning (https://github.com/riken-rccs/kmr). It is the worker-side of the master-worker protocol, and the master-side is in "kmrwfmap.c" in KMR. Note that this code is also included in KMR to implement a dummy spawning for testing.
Definition in file kmrspawn.c.
1.8.14