ProcessDist.h 533 Bytes
Newer Older
1
2
3
4
5
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
#include <string.h>
#include <slurm/slurm.h>
6
#include "malleabilityStates.h"
7

8
9
10
//#define COMM_UNRESERVED -2
//#define COMM_IN_PROGRESS -1
//#define COMM_FINISHED 0
11

12
13
//#define COMM_PHY_NODES 1
//#define COMM_PHY_CPU 2
14

15
16
//#define COMM_SPAWN_SERIAL 0
//#define COMM_SPAWN_PTHREAD 1
17

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