-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathpcu_pmpi.h
30 lines (24 loc) · 954 Bytes
/
pcu_pmpi.h
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
/******************************************************************************
Copyright 2011 Scientific Computation Research Center,
Rensselaer Polytechnic Institute. All rights reserved.
This work is open source software, licensed under the terms of the
BSD license as described in the LICENSE file in the top-level directory.
*******************************************************************************/
#ifndef PCU_PMPI_H
#define PCU_PMPI_H
#include "pcu_mpi.h"
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
void pcu_pmpi_init(MPI_Comm comm, pcu_mpi_t *mpi);
void pcu_pmpi_finalize(pcu_mpi_t *m);
int pcu_pmpi_size(const pcu_mpi_t *self);
int pcu_pmpi_rank(const pcu_mpi_t *self);
void pcu_pmpi_send(const pcu_mpi_t *, pcu_message *m, MPI_Comm comm);
bool pcu_pmpi_receive(const pcu_mpi_t *, pcu_message *m, MPI_Comm comm);
bool pcu_pmpi_done(const pcu_mpi_t *, pcu_message *m);
#ifdef __cplusplus
}
#endif
#endif