ProcessDist.h 488 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
#include <string.h>
#include <slurm/slurm.h>

#define COMM_UNRESERVED -2
#define COMM_IN_PROGRESS -1
#define COMM_FINISHED 0

#define COMM_PHY_NODES 1
#define COMM_PHY_CPU 2

#define COMM_SPAWN_SERIAL 0
#define COMM_SPAWN_PTHREAD 1

17
int init_slurm_comm(char **argv, int myId, int numP, int root, int type_dist, int type_creation, MPI_Comm comm, MPI_Comm *child);
18
int check_slurm_comm(int myId, int root, int numP, MPI_Comm *child);