KMR
|
KMR Spawned Program Wrapper. More...
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <fcntl.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include "kmr.h"
Go to the source code of this file.
Classes | |
union | SOCKADDR |
Functions | |
int | main (int argc, char **argv) |
KMR Spawned Program Wrapper.
It wraps a command of a spawned process which runs independently and makes no communication to the parent (the spawner), so that it lets the parent notified about the end of the process. It has two modes corresponding to kmr_map_processes() and kmr_map_serial_processes(). (MODE 0): It fork-execs an independent MPI program for kmr_map_processes(), and makes a socket to the parent to notify the end of the process via socket closure. It uses a socket because MPI communication to the parent is unusable. USAGE: kmrwatch0 "mpi" ipaddr magic "--" command... (MODE 1): It fork-execs a non-MPI program for kmr_map_serial_processes(), by surrounding it with calls to MPI_Init() and MPI_Finalize(), and sends a reply to the parent. See manual pages for more information. USAGE: kmrwatch0 "seq" any magic "--" command...
To enable tracing, set 'T' as the last character in the magic argument.
Definition in file kmrwatch0.c.