fupermod: Functional Performance Models of heterogeneous processors

Data points

Classes

struct  fupermod_data

Functions

fupermod_datafupermod_data_alloc ()
void fupermod_data_free (fupermod_data *data)
int fupermod_data_read (FILE *stream, fupermod_data *data)
int fupermod_data_write_head (FILE *stream, fupermod_library *library)
int fupermod_data_write (FILE *stream, fupermod_data *data, fupermod_library *library)
int fupermod_data_add (fupermod_data *data, fupermod_point point)
char * fupermod_data_filename (const char *path, fupermod_process_conf conf)

Detailed Description

API for input/output the data obtained from benchmarks. The main data structure is fupermod_data, which consists of experimental points fupermod_point.


Function Documentation

fupermod_data* fupermod_data_alloc (  ) 

Allocates the data

void fupermod_data_free ( fupermod_data data  ) 

Frees the data

int fupermod_data_read ( FILE *  stream,
fupermod_data data 
)

Reads data from a file

int fupermod_data_write_head ( FILE *  stream,
fupermod_library library 
)

Writes header info to a file

int fupermod_data_write ( FILE *  stream,
fupermod_data data,
fupermod_library library 
)

Writes data to a file

int fupermod_data_add ( fupermod_data data,
fupermod_point  point 
)

Adds a data point

Parameters:
data data
point point
Returns:
index or -1
char* fupermod_data_filename ( const char *  path,
fupermod_process_conf  conf 
)

Returns pointer to allocated memory containing the name of a data file in the form: "path.hostname.rank_intra.device_type.fpm". Expect the tool to already have populated conf with appropriate info. User must free the allocated memory manually

Parameters:
path initial path
conf configuration to generate the rest of the file name