QUDA  v1.1.0
A library for QCD on GPUs
Functions
comm_common.cpp File Reference
#include <unistd.h>
#include <assert.h>
#include <limits>
#include <quda_internal.h>
#include <communicator_quda.h>
#include <comm_quda.h>

Go to the source code of this file.

Functions

char * comm_hostname (void)
 
double comm_drand (void)
 
MsgHandlecomm_declare_send_relative_ (const char *func, const char *file, int line, void *buffer, int dim, int dir, size_t nbytes)
 
MsgHandlecomm_declare_receive_relative_ (const char *func, const char *file, int line, void *buffer, int dim, int dir, size_t nbytes)
 
MsgHandlecomm_declare_strided_send_relative_ (const char *func, const char *file, int line, void *buffer, int dim, int dir, size_t blksize, int nblocks, size_t stride)
 
MsgHandlecomm_declare_strided_receive_relative_ (const char *func, const char *file, int line, void *buffer, int dim, int dir, size_t blksize, int nblocks, size_t stride)
 
Topologycomm_create_topology (int ndim, const int *dims, QudaCommsMap rank_from_coords, void *map_data, int my_rank)
 
void comm_abort (int status)
 

Function Documentation

◆ comm_abort()

void comm_abort ( int  status)

Definition at line 208 of file comm_common.cpp.

◆ comm_create_topology()

Topology* comm_create_topology ( int  ndim,
const int *  dims,
QudaCommsMap  rank_from_coords,
void *  map_data,
int  my_rank 
)

Definition at line 173 of file comm_common.cpp.

◆ comm_declare_receive_relative_()

MsgHandle* comm_declare_receive_relative_ ( const char *  func,
const char *  file,
int  line,
void *  buffer,
int  dim,
int  dir,
size_t  nbytes 
)

Receive from the "dir" direction in the "dim" dimension

Definition at line 78 of file comm_common.cpp.

◆ comm_declare_send_relative_()

MsgHandle* comm_declare_send_relative_ ( const char *  func,
const char *  file,
int  line,
void *  buffer,
int  dim,
int  dir,
size_t  nbytes 
)

Send to the "dir" direction in the "dim" dimension

Definition at line 44 of file comm_common.cpp.

◆ comm_declare_strided_receive_relative_()

MsgHandle* comm_declare_strided_receive_relative_ ( const char *  func,
const char *  file,
int  line,
void *  buffer,
int  dim,
int  dir,
size_t  blksize,
int  nblocks,
size_t  stride 
)

Strided receive from the "dir" direction in the "dim" dimension

Definition at line 145 of file comm_common.cpp.

◆ comm_declare_strided_send_relative_()

MsgHandle* comm_declare_strided_send_relative_ ( const char *  func,
const char *  file,
int  line,
void *  buffer,
int  dim,
int  dir,
size_t  blksize,
int  nblocks,
size_t  stride 
)

Strided send to the "dir" direction in the "dim" dimension

Definition at line 108 of file comm_common.cpp.

◆ comm_drand()

double comm_drand ( void  )

We provide our own random number generator to avoid re-seeding rand(), which might also be used by the calling application. This is a clone of rand48(), provided by stdlib.h on UNIX.

Returns
a random double in the interval [0,1)

Definition at line 33 of file comm_common.cpp.

◆ comm_hostname()

char* comm_hostname ( void  )

Definition at line 10 of file comm_common.cpp.