photon  1.1
Functions | Variables
libphoton.c File Reference
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "libphoton.h"
#include "photon_backend.h"
#include "photon_pwc.h"
#include "photon_coll.h"
#include "photon_forwarder.h"
#include "logging.h"
#include "util.h"

Go to the source code of this file.

Functions

int photon_initialized ()
 
int photon_init (photonConfig cfg)
 
int photon_cancel (photon_rid request, int flags)
 
int photon_finalize ()
 
int photon_register_buffer (void *buf, uint64_t size)
 
int photon_unregister_buffer (void *buf, uint64_t size)
 
int photon_get_dev_addr (int af, photonAddr addr)
 
int photon_get_dev_name (char **dev_name)
 
int photon_register_addr (photonAddr addr, int af)
 
int photon_unregister_addr (photonAddr addr, int af)
 
int photon_test (photon_rid request, int *flag, int *type, photonStatus status)
 
int photon_wait (photon_rid request)
 
int photon_post_recv_buffer_rdma (int proc, void *ptr, uint64_t size, int tag, photon_rid *request)
 
int photon_post_send_buffer_rdma (int proc, void *ptr, uint64_t size, int tag, photon_rid *request)
 
int photon_post_send_request_rdma (int proc, uint64_t size, int tag, photon_rid *request)
 
int photon_wait_recv_buffer_rdma (int proc, uint64_t size, int tag, photon_rid *request)
 
int photon_wait_send_buffer_rdma (int proc, uint64_t size, int tag, photon_rid *request)
 
int photon_wait_send_request_rdma (int tag)
 
int photon_post_os_put (photon_rid request, int proc, void *ptr, uint64_t size, int tag, uint64_t r_offset)
 
int photon_post_os_get (photon_rid request, int proc, void *ptr, uint64_t size, int tag, uint64_t r_offset)
 
int photon_post_os_put_direct (int proc, void *ptr, uint64_t size, photonBuffer rbuf, int flags, photon_rid *request)
 
int photon_post_os_get_direct (int proc, void *ptr, uint64_t size, photonBuffer rbuf, int flags, photon_rid *request)
 
int photon_send_FIN (photon_rid request, int proc, int flags)
 
int photon_wait_any (int *ret_proc, photon_rid *ret_req)
 
int photon_wait_any_ledger (int *ret_proc, photon_rid *ret_req)
 
int photon_probe_ledger (int proc, int *flag, int type, photonStatus status)
 
int photon_probe (photonAddr addr, int *flag, photonStatus status)
 
int photon_send (photonAddr addr, void *ptr, uint64_t size, int flags, uint64_t *request)
 Experimental UD interface. More...
 
int photon_recv (uint64_t request, void *ptr, uint64_t size, int flags)
 
int photon_put_with_completion (int proc, uint64_t size, photonBuffer lbuf, photonBuffer rbuf, photon_cid local, photon_cid remote, int flags)
 
int photon_get_with_completion (int proc, uint64_t size, photonBuffer lbuf, photonBuffer rbuf, photon_cid local, photon_cid remote, int flags)
 
int photon_probe_completion (int proc, int *flag, int *remaining, photon_cid *comp, int *src, void(*cb)(photon_cid), int flags)
 
int photon_collective_init (photonComm comm, photon_coll ctype, photon_cid local, photon_rid *request, int flags)
 
int photon_collective_join (photon_rid request, void *in, void *out, int scount, int rcount, photonDatatype stype, photonDatatype rtype, int root, void *op)
 
int photon_collective_comm_create (void *active, int num_active, int total, photonComm *c)
 In-progress communicator handling. More...
 
int photon_collective_init_new_comm (void *active, int num_active, int total, photon_coll ctype, photon_cid local, photon_rid *request, int flags, photonComm *c)
 In-progress communicator handling. More...
 
int photon_io_init (char *file, int amode, void *view, int niter)
 
int photon_io_finalize ()
 
void photon_io_print_info (void *io)
 
int photon_get_buffer_private (void *buf, uint64_t size, const struct photon_buffer_priv_t **pptr)
 
int photon_get_buffer_remote (photon_rid request, photonBuffer ret_buf)
 

Variables

photonConfig __photon_config = NULL
 
photonBackend __photon_shmem = NULL
 
photonBackend __photon_fabric = NULL
 
photonForwarder __photon_forwarder = NULL
 
int _LEDGER_SIZE
 
int _photon_myrank
 
int _photon_nproc
 
int _photon_nforw
 
int _photon_fproc
 
int _photon_ebsize
 
int _photon_pbsize
 
int _photon_smsize
 
int _photon_upsize
 
int _photon_spsize
 
int _photon_idsize
 
int _forwarder
 

Function Documentation

◆ photon_io_finalize()

int photon_io_finalize ( )

Definition at line 571 of file libphoton.c.

◆ photon_io_init()

int photon_io_init ( char *  file,
int  amode,
void *  view,
int  niter 
)

Definition at line 566 of file libphoton.c.

◆ photon_io_print_info()

void photon_io_print_info ( void *  io)

Definition at line 576 of file libphoton.c.

Variable Documentation

◆ __photon_config

photonConfig __photon_config = NULL

Definition at line 48 of file libphoton.c.

◆ __photon_fabric

photonBackend __photon_fabric = NULL

Definition at line 50 of file libphoton.c.

◆ __photon_forwarder

photonForwarder __photon_forwarder = NULL

Definition at line 51 of file libphoton.c.

◆ __photon_shmem

photonBackend __photon_shmem = NULL

Definition at line 49 of file libphoton.c.

◆ _forwarder

int _forwarder

Definition at line 64 of file libphoton.c.

◆ _LEDGER_SIZE

int _LEDGER_SIZE

Definition at line 53 of file libphoton.c.

◆ _photon_ebsize

int _photon_ebsize

Definition at line 58 of file libphoton.c.

◆ _photon_fproc

int _photon_fproc

Definition at line 57 of file libphoton.c.

◆ _photon_idsize

int _photon_idsize

Definition at line 63 of file libphoton.c.

◆ _photon_myrank

int _photon_myrank

Definition at line 54 of file libphoton.c.

◆ _photon_nforw

int _photon_nforw

Definition at line 56 of file libphoton.c.

◆ _photon_nproc

int _photon_nproc

Definition at line 55 of file libphoton.c.

◆ _photon_pbsize

int _photon_pbsize

Definition at line 59 of file libphoton.c.

◆ _photon_smsize

int _photon_smsize

Definition at line 60 of file libphoton.c.

◆ _photon_spsize

int _photon_spsize

Definition at line 62 of file libphoton.c.

◆ _photon_upsize

int _photon_upsize

Definition at line 61 of file libphoton.c.