Spawn_DataStructure.h 678 Bytes
Newer Older
Iker Martín Álvarez's avatar
Iker Martín Álvarez committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef MAM_SPAWN_DATASTRUCTURE_H
#define MAM_SPAWN_DATASTRUCTURE_H

#include <mpi.h>

/* --- SPAWN STRUCTURE --- */

typedef struct {
  int spawn_qty;
  char *cmd;
  MPI_Info mapping;
} Spawn_set;

typedef struct {
  int opened_port;
  char *port_name, *service_name;
  char *remote_port, *remote_service;
} Spawn_ports;

typedef struct {
  int spawn_qty, initial_qty, target_qty;
  int already_created;
  int total_spawns;
  int spawn_is_single, spawn_is_async, spawn_is_intercomm, spawn_is_multiple, spawn_is_parallel;
//  MPI_Info mapping;
  int mapping_fill_method;

  MPI_Comm comm, returned_comm; // ONLY SET FOR SOURCE PROCESSES
  Spawn_set *sets;
} Spawn_data;

#endif