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

◆ deserialize_f

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

Definition at line 45 of file io.h.

◆ io_load_type

typedef enum io_load_e io_load_type

Definition at line 26 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.

References l_io_append_flag, and l_io_init_flag.

◆ io_event_cancel()

void io_event_cancel ( tw_event * e)

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

References g_io_buffered_events, g_io_free_events, tw_eventq_delete_any(), and tw_eventq_push().

Referenced by event_cancel().

◆ io_event_deserialize()

◆ io_event_grab()

◆ io_event_serialize()

◆ io_init()

◆ io_load_checkpoint()

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.

◆ io_load_events()

◆ io_lp_deserialize()

◆ io_lp_serialize()

◆ io_read_checkpoint()

◆ io_register_model_version()

void io_register_model_version ( char * sha1)

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

References model_version.

◆ io_store_checkpoint()

Variable Documentation

◆ g_io_buffered_events

tw_eventq g_io_buffered_events
extern

◆ g_io_checkpoint_name

char g_io_checkpoint_name[1024]
extern

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

Referenced by io_load_checkpoint(), and io_read_checkpoint().

◆ g_io_events_buffered_per_rank

int g_io_events_buffered_per_rank
extern

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

Referenced by io_event_grab(), and setup_pes().

◆ g_io_free_events

tw_eventq g_io_free_events
extern

◆ g_io_load_at

io_load_type g_io_load_at
extern

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

Referenced by io_load_checkpoint(), and tw_init_lps().

◆ g_io_lp_types

io_lptype* g_io_lp_types
extern

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

Referenced by io_read_checkpoint(), and io_store_checkpoint().

◆ g_io_number_of_files

int g_io_number_of_files
extern

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

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

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

Referenced by tw_init().

◆ io_partition_field_count

int io_partition_field_count = 6
static

Definition at line 66 of file io.h.

Referenced by io_read_checkpoint(), and io_store_checkpoint().