QUDA  v0.5.0
A library for QCD on GPUs
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
comm_single.cpp
Go to the documentation of this file.
1 
5 #include <stdlib.h>
6 #include <comm_quda.h>
7 
8 void comm_init(int ndim, const int *dims, QudaCommsMap rank_from_coords, void *map_data)
9 {
10  Topology *topo = comm_create_topology(ndim, dims, rank_from_coords, map_data);
12 }
13 
14 int comm_rank(void) { return 0; }
15 
16 int comm_size(void) { return 1; }
17 
18 int comm_gpuid(void) { return 0; }
19 
20 MsgHandle *comm_declare_send_displaced(void *buffer, const int displacement[], size_t nbytes) { return NULL; }
21 
22 MsgHandle *comm_declare_receive_displaced(void *buffer, const int displacement[], size_t nbytes) { return NULL; }
23 
24 void comm_free(MsgHandle *mh) {}
25 
26 void comm_start(MsgHandle *mh) {}
27 
28 void comm_wait(MsgHandle *mh) {}
29 
30 int comm_query(MsgHandle *mh) { return 1; }
31 
32 void comm_allreduce(double* data) {}
33 
34 void comm_allreduce_max(double* data) {}
35 
36 void comm_allreduce_array(double* data, size_t size) {}
37 
38 void comm_allreduce_int(int* data) {}
39 
40 void comm_broadcast(void *data, size_t nbytes) {}
41 
42 void comm_barrier(void) {}
43 
44 void comm_abort(int status) { exit(status); }
45