Loading...
Searching...
No Matches
perfmodel.h File Reference
`#include <common/config.h>`
`#include <starpu.h>`
`#include <core/task_bundle.h>`
`#include <stdio.h>`

Go to the source code of this file.

## Data Structures

struct | _starpu_perfmodel_state

## Macros

#define | _STARPU_PERFMODEL_VERSION

## Functions

char * | _starpu_get_perf_model_dir_codelet ()
char * | _starpu_get_perf_model_dir_bus ()
char * | _starpu_get_perf_model_dir_debug ()
double | _starpu_history_based_job_expected_perf (struct starpu_perfmodel *model, struct starpu_perfmodel_arch *arch, struct _starpu_job *j, unsigned nimpl)
void | _starpu_load_history_based_model (struct starpu_perfmodel *model, unsigned scan_history)
void | _starpu_init_and_load_perfmodel (struct starpu_perfmodel *model)
void | _starpu_initialize_registered_performance_models (void)
void | _starpu_deinitialize_registered_performance_models (void)
void | _starpu_deinitialize_performance_model (struct starpu_perfmodel *model)
double | _starpu_regression_based_job_expected_perf (struct starpu_perfmodel *model, struct starpu_perfmodel_arch *arch, struct _starpu_job *j, unsigned nimpl)
double | _starpu_non_linear_regression_based_job_expected_perf (struct starpu_perfmodel *model, struct starpu_perfmodel_arch *arch, struct _starpu_job *j, unsigned nimpl)
double | _starpu_multiple_regression_based_job_expected_perf (struct starpu_perfmodel *model, struct starpu_perfmodel_arch *arch, struct _starpu_job *j, unsigned nimpl)
void | _starpu_update_perfmodel_history (struct _starpu_job *j, struct starpu_perfmodel *model, struct starpu_perfmodel_arch *arch, unsigned cpuid, double measured, unsigned nimpl)
int | _starpu_perfmodel_create_comb_if_needed (struct starpu_perfmodel_arch *arch)
void | _starpu_create_sampling_directory_if_needed (void)
void | _starpu_load_bus_performance_files (void)
void | _starpu_set_calibrate_flag (unsigned val)
unsigned | _starpu_get_calibrate_flag (void)
unsigned * | _starpu_get_cuda_affinity_vector (unsigned gpuid)
unsigned * | _starpu_get_opencl_affinity_vector (unsigned gpuid)
void | _starpu_save_bandwidth_and_latency_disk (double bandwidth_write, double bandwidth_read, double latency_write, double latency_read, unsigned node, const char *name)
void | _starpu_write_double (FILE *f, const char *format, double val)
int | _starpu_read_double (FILE *f, char *format, double *val)
void | _starpu_simgrid_get_platform_path (int version, char *path, size_t maxlen)
void | _starpu_perfmodel_realloc (struct starpu_perfmodel *model, int nb)
void | _starpu_free_arch_combs (void)
hwloc_topology_t | _starpu_perfmodel_get_hwtopology ()

## Variables

unsigned | _starpu_calibration_minimum

## Data Structure Documentation

## _starpu_perfmodel_state

struct _starpu_perfmodel_state

Data Fields
struct starpu_perfmodel_per_arch ** | per_arch |
int ** | per_arch_is_set |
starpu_pthread_rwlock_t | model_rwlock |
int * | nimpls |
int * | nimpls_set |
int | ncombs | The number of combinations currently used by the model
int | ncombs_set | The number of combinations allocated in the array nimpls and ncombs
int * | combs |

## Macro Definition Documentation

## _STARPU_PERFMODEL_VERSION

#define _STARPU_PERFMODEL_VERSION

Performance models files are stored in a directory whose name include the version of the performance model format. The version number is also written in the file itself. When updating the format, the variable _STARPU_PERFMODEL_VERSION should be updated. It is then possible to switch easily between differents versions of StarPU having different performance model formats.