ROSS
io.h File Reference
#include "ross-types.h"
#include "tw-opts.h"

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 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

◆ deserialize_f

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

Definition at line 45 of file io.h.

◆ model_size_f

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

Definition at line 46 of file io.h.

◆ serialize_f

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

Definition at line 44 of file io.h.

Enumeration Type Documentation

◆ io_load_e

enum io_load_e
Enumerator
NONE 
PRE_INIT 
INIT 
POST_INIT 

Definition at line 20 of file io.h.

Function Documentation

◆ io_appending_job()

void io_appending_job ( )

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

◆ io_event_cancel()

void io_event_cancel ( tw_event * e)

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

◆ io_event_deserialize()

size_t io_event_deserialize ( tw_event * e,
void * buffer )

Definition at line 68 of file io-serialize.c.

◆ io_event_grab()

tw_event * io_event_grab ( tw_pe * pe)
extern

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

◆ io_event_serialize()

size_t io_event_serialize ( tw_event * e,
void * buffer )

Definition at line 52 of file io-serialize.c.

◆ io_init()

void io_init ( )

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

◆ io_load_checkpoint()

void io_load_checkpoint ( char * master_filename,
io_load_type load_at )

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

◆ io_load_events()

void io_load_events ( tw_pe * me)

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

◆ io_lp_deserialize()

size_t io_lp_deserialize ( tw_lp * lp,
void * buffer )

Definition at line 27 of file io-serialize.c.

◆ io_lp_serialize()

size_t io_lp_serialize ( tw_lp * lp,
void * buffer )

Definition at line 3 of file io-serialize.c.

◆ io_read_checkpoint()

void io_read_checkpoint ( )

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

◆ io_register_model_version()

void io_register_model_version ( char * sha1)

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

◆ io_store_checkpoint()

void io_store_checkpoint ( char * master_filename,
int data_file_number )

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

Variable Documentation

◆ g_io_buffered_events

tw_eventq g_io_buffered_events
extern

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

◆ g_io_checkpoint_name

char g_io_checkpoint_name[1024]
extern

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

◆ g_io_events_buffered_per_rank

int g_io_events_buffered_per_rank
extern

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

◆ g_io_free_events

tw_eventq g_io_free_events
extern

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

◆ g_io_load_at

io_load_type g_io_load_at
extern

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

◆ g_io_lp_types

io_lptype* g_io_lp_types
extern

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

◆ g_io_number_of_files

int g_io_number_of_files
extern

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

◆ g_io_partitions

io_partition* g_io_partitions
extern

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

◆ io_opts

const tw_optdef io_opts[3]
extern

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

◆ io_partition_field_count

int io_partition_field_count = 6
static

Definition at line 66 of file io.h.