Spawn_DataStructure.h 678 Bytes
Newer Older
1
2
3
4
5
6
#ifndef MAM_SPAWN_DATASTRUCTURE_H
#define MAM_SPAWN_DATASTRUCTURE_H

#include <mpi.h>

/* --- SPAWN STRUCTURE --- */
7
8
9

typedef struct {
  int spawn_qty;
10
  char *cmd;
11
12
13
  MPI_Info mapping;
} Spawn_set;

14
15
16
17
18
19
typedef struct {
  int opened_port;
  char *port_name, *service_name;
  char *remote_port, *remote_service;
} Spawn_ports;

20
21
22
typedef struct {
  int spawn_qty, initial_qty, target_qty;
  int already_created;
23
  int total_spawns;
24
  int spawn_is_single, spawn_is_async, spawn_is_intercomm, spawn_is_multiple, spawn_is_parallel;
25
//  MPI_Info mapping;
26
27
  int mapping_fill_method;

28
29
  MPI_Comm comm, returned_comm; // ONLY SET FOR SOURCE PROCESSES
  Spawn_set *sets;
30
31
32
} Spawn_data;

#endif