photon  1.1
Functions | Variables
photon_exchange.c File Reference
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "libphoton.h"
#include "photon_backend.h"
#include "photon_exchange.h"
#include "photon_collectives.h"
#include "logging.h"

Go to the source code of this file.

Functions

int photon_exchange_init (photonConfig lcfg, photonConfig cfg)
 
int photon_exchange_finalize (photonConfig lcfg)
 
int photon_exchange_allgather (void *ptr, void *ivec_ptr, int n)
 
int photon_exchange_barrier ()
 
int photon_exchange_ledgers (ProcessInfo *processes, int flags)
 
int photon_setup_ri_ledger (ProcessInfo *photon_processes, char *buf, int num_entries)
 
int photon_setup_fin_ledger (ProcessInfo *photon_processes, char *buf, int num_entries)
 
int photon_setup_pwc_ledger (ProcessInfo *photon_processes, char *buf, int num_entries)
 
int photon_setup_eager_ledger (ProcessInfo *photon_processes, char *buf, int num_entries)
 
int photon_setup_eager_buf (ProcessInfo *photon_processes, char *buf, int size)
 
int photon_setup_pwc_buf (ProcessInfo *photon_processes, char *buf, int size)
 

Variables

photonComm PHOTON_COMM_WORLD = NULL
 
photon_datatype_t photon_datatype_null = NULL
 
photon_datatype_t photon_char
 
photon_datatype_t photon_signed_char
 
photon_datatype_t photon_unsigned_char
 
photon_datatype_t photon_byte
 
photon_datatype_t photon_short
 
photon_datatype_t photon_unsigned_short
 
photon_datatype_t photon_int
 
photon_datatype_t photon_unsigned
 
photon_datatype_t photon_long
 
photon_datatype_t photon_unsigned_long
 
photon_datatype_t photon_long_long_int
 
photon_datatype_t photon_unsigned_long_long
 
photon_datatype_t photon_float
 
photon_datatype_t photon_double
 
photon_datatype_t photon_long_double
 
photon_datatype_t photon_wchar
 
photon_datatype_t photon_packed
 
photon_op_t photon_op_null = NULL
 
photon_op_t photon_op_min
 
photon_op_t photon_op_max
 
photon_op_t photon_op_sum
 
photon_op_t photon_op_prod
 
photon_op_t photon_op_land
 
photon_op_t photon_op_band
 
photon_op_t photon_op_lor
 
photon_op_t photon_op_bor
 
photon_op_t photon_op_lxor
 
photon_op_t photon_op_bxor
 
photon_op_t photon_op_maxloc
 
photon_op_t photon_op_minloc
 
photon_op_t photon_op_replace
 
photon_op_t photon_op_no_op
 

Function Documentation

◆ photon_exchange_allgather()

int photon_exchange_allgather ( void *  ptr,
void *  ivec_ptr,
int  n 
)

Definition at line 147 of file photon_exchange.c.

◆ photon_exchange_barrier()

int photon_exchange_barrier ( )

Definition at line 193 of file photon_exchange.c.

◆ photon_exchange_finalize()

int photon_exchange_finalize ( photonConfig  lcfg)

Definition at line 133 of file photon_exchange.c.

◆ photon_exchange_init()

int photon_exchange_init ( photonConfig  lcfg,
photonConfig  cfg 
)

Definition at line 68 of file photon_exchange.c.

◆ photon_exchange_ledgers()

int photon_exchange_ledgers ( ProcessInfo processes,
int  flags 
)

Definition at line 240 of file photon_exchange.c.

◆ photon_setup_eager_buf()

int photon_setup_eager_buf ( ProcessInfo photon_processes,
char *  buf,
int  size 
)

Definition at line 509 of file photon_exchange.c.

◆ photon_setup_eager_ledger()

int photon_setup_eager_ledger ( ProcessInfo photon_processes,
char *  buf,
int  num_entries 
)

Definition at line 475 of file photon_exchange.c.

◆ photon_setup_fin_ledger()

int photon_setup_fin_ledger ( ProcessInfo photon_processes,
char *  buf,
int  num_entries 
)

Definition at line 404 of file photon_exchange.c.

◆ photon_setup_pwc_buf()

int photon_setup_pwc_buf ( ProcessInfo photon_processes,
char *  buf,
int  size 
)

Definition at line 543 of file photon_exchange.c.

◆ photon_setup_pwc_ledger()

int photon_setup_pwc_ledger ( ProcessInfo photon_processes,
char *  buf,
int  num_entries 
)

Definition at line 438 of file photon_exchange.c.

◆ photon_setup_ri_ledger()

int photon_setup_ri_ledger ( ProcessInfo photon_processes,
char *  buf,
int  num_entries 
)

Definition at line 339 of file photon_exchange.c.

Variable Documentation

◆ photon_byte

photon_datatype_t photon_byte

Definition at line 37 of file photon_exchange.c.

◆ photon_char

photon_datatype_t photon_char

Definition at line 34 of file photon_exchange.c.

◆ PHOTON_COMM_WORLD

photonComm PHOTON_COMM_WORLD = NULL

Definition at line 32 of file photon_exchange.c.

◆ photon_datatype_null

photon_datatype_t photon_datatype_null = NULL

Definition at line 33 of file photon_exchange.c.

◆ photon_double

photon_datatype_t photon_double

Definition at line 47 of file photon_exchange.c.

◆ photon_float

photon_datatype_t photon_float

Definition at line 46 of file photon_exchange.c.

◆ photon_int

photon_datatype_t photon_int

Definition at line 40 of file photon_exchange.c.

◆ photon_long

photon_datatype_t photon_long

Definition at line 42 of file photon_exchange.c.

◆ photon_long_double

photon_datatype_t photon_long_double

Definition at line 48 of file photon_exchange.c.

◆ photon_long_long_int

photon_datatype_t photon_long_long_int

Definition at line 44 of file photon_exchange.c.

◆ photon_op_band

photon_op_t photon_op_band

Definition at line 58 of file photon_exchange.c.

◆ photon_op_bor

photon_op_t photon_op_bor

Definition at line 60 of file photon_exchange.c.

◆ photon_op_bxor

photon_op_t photon_op_bxor

Definition at line 62 of file photon_exchange.c.

◆ photon_op_land

photon_op_t photon_op_land

Definition at line 57 of file photon_exchange.c.

◆ photon_op_lor

photon_op_t photon_op_lor

Definition at line 59 of file photon_exchange.c.

◆ photon_op_lxor

photon_op_t photon_op_lxor

Definition at line 61 of file photon_exchange.c.

◆ photon_op_max

photon_op_t photon_op_max

Definition at line 54 of file photon_exchange.c.

◆ photon_op_maxloc

photon_op_t photon_op_maxloc

Definition at line 63 of file photon_exchange.c.

◆ photon_op_min

photon_op_t photon_op_min

Definition at line 53 of file photon_exchange.c.

◆ photon_op_minloc

photon_op_t photon_op_minloc

Definition at line 64 of file photon_exchange.c.

◆ photon_op_no_op

photon_op_t photon_op_no_op

Definition at line 66 of file photon_exchange.c.

◆ photon_op_null

photon_op_t photon_op_null = NULL

Definition at line 52 of file photon_exchange.c.

◆ photon_op_prod

photon_op_t photon_op_prod

Definition at line 56 of file photon_exchange.c.

◆ photon_op_replace

photon_op_t photon_op_replace

Definition at line 65 of file photon_exchange.c.

◆ photon_op_sum

photon_op_t photon_op_sum

Definition at line 55 of file photon_exchange.c.

◆ photon_packed

photon_datatype_t photon_packed

Definition at line 50 of file photon_exchange.c.

◆ photon_short

photon_datatype_t photon_short

Definition at line 38 of file photon_exchange.c.

◆ photon_signed_char

photon_datatype_t photon_signed_char

Definition at line 35 of file photon_exchange.c.

◆ photon_unsigned

photon_datatype_t photon_unsigned

Definition at line 41 of file photon_exchange.c.

◆ photon_unsigned_char

photon_datatype_t photon_unsigned_char

Definition at line 36 of file photon_exchange.c.

◆ photon_unsigned_long

photon_datatype_t photon_unsigned_long

Definition at line 43 of file photon_exchange.c.

◆ photon_unsigned_long_long

photon_datatype_t photon_unsigned_long_long

Definition at line 45 of file photon_exchange.c.

◆ photon_unsigned_short

photon_datatype_t photon_unsigned_short

Definition at line 39 of file photon_exchange.c.

◆ photon_wchar

photon_datatype_t photon_wchar

Definition at line 49 of file photon_exchange.c.