ROSS
Data Structures | Typedefs | Enumerations | Functions | Variables
io.h File Reference

Go to the source code of this file.

Data Structures

struct  io_lptype
 
struct  io_partition
 
struct  io_lp_store
 
struct  io_event_store
 

Typedefs

typedef enum io_load_e io_load_type
 
typedef void(* serialize_f )(void *state, void *buffer, tw_lp *lp)
 
typedef void(* deserialize_f )(void *state, void *buffer, tw_lp *lp)
 
typedef size_t(* model_size_f )(void *state, tw_lp *lp)
 

Enumerations

enum  io_load_e { NONE, PRE_INIT, INIT, POST_INIT }
 

Functions

void io_register_model_version (char *sha1)
 
void io_init ()
 
void io_load_checkpoint (char *master_filename, io_load_type load_at)
 
void io_store_checkpoint (char *master_filename, int data_file_number)
 
void io_appending_job ()
 
void io_load_events (tw_pe *me)
 
void io_event_cancel (tw_event *e)
 
void io_read_checkpoint ()
 
size_t io_lp_serialize (tw_lp *lp, void *buffer)
 
size_t io_lp_deserialize (tw_lp *lp, void *buffer)
 
size_t io_event_serialize (tw_event *e, void *buffer)
 
size_t io_event_deserialize (tw_event *e, void *buffer)
 
tw_eventio_event_grab (tw_pe *pe)
 

Variables

int g_io_number_of_files
 
const tw_optdef io_opts [3]
 
io_load_type g_io_load_at
 
char g_io_checkpoint_name [1024]
 
int g_io_events_buffered_per_rank
 
io_lptypeg_io_lp_types
 
static int io_partition_field_count = 6
 
io_partitiong_io_partitions
 
tw_eventq g_io_buffered_events
 
tw_eventq g_io_free_events
 

Typedef Documentation

typedef void(* deserialize_f)(void *state, void *buffer, tw_lp *lp)

Definition at line 42 of file io.h.

typedef enum io_load_e io_load_type

Definition at line 23 of file io.h.

typedef size_t(* model_size_f)(void *state, tw_lp *lp)

Definition at line 43 of file io.h.

typedef void(* serialize_f)(void *state, void *buffer, tw_lp *lp)

Definition at line 41 of file io.h.

Enumeration Type Documentation

enum io_load_e
Enumerator
NONE 
PRE_INIT 
INIT 
POST_INIT 

Definition at line 17 of file io.h.

Function Documentation

void io_appending_job ( )

Definition at line 101 of file io-mpi.c.

References l_io_append_flag, and l_io_init_flag.

void io_event_cancel ( tw_event e)

Definition at line 70 of file io-mpi.c.

References tw_eventq_delete_any(), and tw_eventq_push().

Referenced by event_cancel().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t io_event_deserialize ( tw_event e,
void *  buffer 
)
tw_event* io_event_grab ( tw_pe pe)
size_t io_event_serialize ( tw_event e,
void *  buffer 
)
void io_init ( )
void io_load_checkpoint ( char *  master_filename,
io_load_type  load_at 
)

Definition at line 107 of file io-mpi.c.

References g_io_checkpoint_name, and g_io_load_at.

void io_load_events ( tw_pe me)
size_t io_lp_deserialize ( tw_lp lp,
void *  buffer 
)
size_t io_lp_serialize ( tw_lp lp,
void *  buffer 
)
void io_read_checkpoint ( )
void io_register_model_version ( char *  sha1)

Definition at line 38 of file io-mpi.c.

References model_version.

void io_store_checkpoint ( char *  master_filename,
int  data_file_number 
)

Variable Documentation

tw_eventq g_io_buffered_events

Definition at line 24 of file io-mpi.c.

char g_io_checkpoint_name[1024]

Definition at line 22 of file io-mpi.c.

Referenced by io_load_checkpoint(), and io_read_checkpoint().

int g_io_events_buffered_per_rank

Definition at line 23 of file io-mpi.c.

Referenced by io_event_grab(), and setup_pes().

tw_eventq g_io_free_events

Definition at line 25 of file io-mpi.c.

Referenced by setup_pes().

io_load_type g_io_load_at

Definition at line 21 of file io-mpi.c.

Referenced by io_load_checkpoint(), and tw_init_lps().

io_lptype* g_io_lp_types

Definition at line 20 of file io-mpi.c.

int g_io_number_of_files

Definition at line 11 of file io-mpi.c.

Referenced by io_init(), io_read_checkpoint(), and io_store_checkpoint().

io_partition* g_io_partitions

Definition at line 19 of file io-mpi.c.

const tw_optdef io_opts[3]

Definition at line 12 of file io-mpi.c.

Referenced by tw_init().

int io_partition_field_count = 6
static

Definition at line 63 of file io.h.

Referenced by io_read_checkpoint(), and io_store_checkpoint().