PULSAR  2.0.0
Parallel Ultra-Light Systolic Array Runtime
 All Data Structures Files Functions Typedefs Enumerations Macros Groups
mpi_stubs.c
Go to the documentation of this file.
1 
11 #include "mpi_stubs.h"
12 
13 #ifndef MPI
14 
15 static void quit()
16 {
17  printf("PRT ERROR: PRT built without MPI\n)");
18  abort();
19 }
20 
21 int MPI_Initialized(int *flag)
22 {
23  *flag = 0;
24  return MPI_SUCCESS;
25 }
26 
27 int MPI_Comm_rank(MPI_Comm comm, int *rank)
28 {
29  *rank = 0;
30  return MPI_SUCCESS;
31 }
32 
33 int MPI_Comm_size(MPI_Comm comm, int *size)
34 {
35  *size = 1;
36  return MPI_SUCCESS;
37 }
38 
39 int MPI_Barrier(MPI_Comm comm)
40 {
41  return MPI_SUCCESS;
42 }
43 
44 int MPI_Cancel(MPI_Request *request) {quit();}
45 int MPI_Abort(MPI_Comm comm, int errorcode) {quit();}
46 int MPI_Test(MPI_Request *request, int *flag, MPI_Status *status) {quit();}
47 int MPI_Get_count(const MPI_Status *status, MPI_Datatype datatype, int *count) {quit();}
48 int MPI_Send(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) {quit();}
49 int MPI_Recv(void *buf, int count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Status *status) {quit();}
50 int MPI_Irecv(void *buf, int count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Request *request) {quit();}
51 int MPI_Isend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request *request) {quit();}
52 int MPI_Reduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, int root, MPI_Comm comm) {quit();}
53 
54 #endif /* MPI */