QUDA
v0.7.0
A library for QCD on GPUs
|
Go to the source code of this file.
Functions | |
void | comm_init (int ndim, const int *dims, QudaCommsMap rank_from_coords, void *map_data) |
int | comm_rank (void) |
int | comm_size (void) |
int | comm_gpuid (void) |
MsgHandle * | comm_declare_send_displaced (void *buffer, const int displacement[], size_t nbytes) |
MsgHandle * | comm_declare_receive_displaced (void *buffer, const int displacement[], size_t nbytes) |
MsgHandle * | comm_declare_strided_send_displaced (void *buffer, const int displacement[], size_t blksize, int nblocks, size_t stride) |
MsgHandle * | comm_declare_strided_receive_displaced (void *buffer, const int displacement[], size_t blksize, int nblocks, size_t stride) |
void | comm_free (MsgHandle *mh) |
void | comm_start (MsgHandle *mh) |
void | comm_wait (MsgHandle *mh) |
int | comm_query (MsgHandle *mh) |
void | comm_allreduce (double *data) |
void | comm_allreduce_max (double *data) |
void | comm_allreduce_array (double *data, size_t size) |
void | comm_allreduce_int (int *data) |
void | comm_broadcast (void *data, size_t nbytes) |
void | comm_barrier (void) |
void | comm_abort (int status) |
void comm_abort | ( | int | status | ) |
Definition at line 54 of file comm_single.cpp.
void comm_allreduce | ( | double * | data | ) |
Definition at line 42 of file comm_single.cpp.
void comm_allreduce_array | ( | double * | data, |
size_t | size | ||
) |
Definition at line 46 of file comm_single.cpp.
void comm_allreduce_int | ( | int * | data | ) |
Definition at line 48 of file comm_single.cpp.
void comm_allreduce_max | ( | double * | data | ) |
Definition at line 44 of file comm_single.cpp.
void comm_barrier | ( | void | ) |
Definition at line 52 of file comm_single.cpp.
void comm_broadcast | ( | void * | data, |
size_t | nbytes | ||
) |
broadcast from rank 0
Definition at line 50 of file comm_single.cpp.
MsgHandle* comm_declare_receive_displaced | ( | void * | buffer, |
const int | displacement[], | ||
size_t | nbytes | ||
) |
Create a persistent message handler for a relative receive
buffer | Buffer into which message will be received |
dim | Dimension from message will be received |
dir | Direction from messaged with be recived (0 - backwards, 1 forwards) |
nbytes | Size of message in bytes |
Declare a message handle for receiving from a node displaced in (x,y,z,t) according to "displacement"
Definition at line 23 of file comm_single.cpp.
MsgHandle* comm_declare_send_displaced | ( | void * | buffer, |
const int | displacement[], | ||
size_t | nbytes | ||
) |
Create a persistent message handler for a relative send
buffer | Buffer from which message will be sent |
dim | Dimension in which message will be sent |
dir | Direction in which messaged with be sent (0 - backwards, 1 forwards) |
nbytes | Size of message in bytes |
Declare a message handle for sending to a node displaced in (x,y,z,t) according to "displacement"
Definition at line 20 of file comm_single.cpp.
MsgHandle* comm_declare_strided_receive_displaced | ( | void * | buffer, |
const int | displacement[], | ||
size_t | blksize, | ||
int | nblocks, | ||
size_t | stride | ||
) |
Create a persistent strided message handler for a displaced receive
buffer | Buffer into which message will be received |
displacement | Array of offsets specifying the relative node from which we are receiving |
blksize | Size of block in bytes |
nblocks | Number of blocks |
stride | Stride between blocks in bytes |
Declare a message handle for receiving from a node displaced in (x,y,z,t) according to "displacement"
Declare a message handle for strided receiving from a node displaced in (x,y,z,t) according to "displacement"
Definition at line 30 of file comm_single.cpp.
MsgHandle* comm_declare_strided_send_displaced | ( | void * | buffer, |
const int | displacement[], | ||
size_t | blksize, | ||
int | nblocks, | ||
size_t | stride | ||
) |
Create a persistent strided message handler for a displaced send
buffer | Buffer from which message will be sent |
displacement | Array of offsets specifying the relative node to which we are sending |
blksize | Size of block in bytes |
nblocks | Number of blocks |
stride | Stride between blocks in bytes |
Declare a message handle for sending to a node displaced in (x,y,z,t) according to "displacement"
Declare a message handle for strided sending to a node displaced in (x,y,z,t) according to "displacement"
Definition at line 26 of file comm_single.cpp.
void comm_free | ( | MsgHandle * | mh | ) |
Definition at line 34 of file comm_single.cpp.
int comm_gpuid | ( | void | ) |
Definition at line 18 of file comm_single.cpp.
void comm_init | ( | int | ndim, |
const int * | dims, | ||
QudaCommsMap | rank_from_coords, | ||
void * | map_data | ||
) |
Dummy communications layer for single-GPU backend.
Definition at line 8 of file comm_single.cpp.
int comm_query | ( | MsgHandle * | mh | ) |
Definition at line 40 of file comm_single.cpp.
int comm_rank | ( | void | ) |
Definition at line 14 of file comm_single.cpp.
int comm_size | ( | void | ) |
Definition at line 16 of file comm_single.cpp.
void comm_start | ( | MsgHandle * | mh | ) |
Definition at line 36 of file comm_single.cpp.
void comm_wait | ( | MsgHandle * | mh | ) |
Definition at line 38 of file comm_single.cpp.