|
@@ -118,6 +118,7 @@ static void parse_model_file(FILE *f, struct starpu_perfmodel_t *model, unsigned
|
|
|
{
|
|
|
parse_per_arch_model_file(f, &model->per_arch[STARPU_CORE_DEFAULT], scan_history);
|
|
|
parse_per_arch_model_file(f, &model->per_arch[STARPU_CUDA_DEFAULT], scan_history);
|
|
|
+ parse_per_arch_model_file(f, &model->per_arch[STARPU_GORDON_DEFAULT], scan_history);
|
|
|
}
|
|
|
|
|
|
static void dump_per_arch_model_file(FILE *f, struct starpu_per_arch_perfmodel_t *per_arch_model)
|
|
@@ -153,6 +154,7 @@ static void dump_model_file(FILE *f, struct starpu_perfmodel_t *model)
|
|
|
{
|
|
|
dump_per_arch_model_file(f, &model->per_arch[STARPU_CORE_DEFAULT]);
|
|
|
dump_per_arch_model_file(f, &model->per_arch[STARPU_CUDA_DEFAULT]);
|
|
|
+ dump_per_arch_model_file(f, &model->per_arch[STARPU_GORDON_DEFAULT]);
|
|
|
}
|
|
|
|
|
|
static void initialize_per_arch_model(struct starpu_per_arch_perfmodel_t *per_arch_model)
|
|
@@ -165,6 +167,7 @@ static void initialize_model(struct starpu_perfmodel_t *model)
|
|
|
{
|
|
|
initialize_per_arch_model(&model->per_arch[STARPU_CORE_DEFAULT]);
|
|
|
initialize_per_arch_model(&model->per_arch[STARPU_CUDA_DEFAULT]);
|
|
|
+ initialize_per_arch_model(&model->per_arch[STARPU_GORDON_DEFAULT]);
|
|
|
}
|
|
|
|
|
|
static struct starpu_model_list_t *registered_models = NULL;
|
|
@@ -208,6 +211,10 @@ void register_model(struct starpu_perfmodel_t *model)
|
|
|
get_model_debug_path(model, "core", debugpath, 256);
|
|
|
model->per_arch[STARPU_CORE_DEFAULT].debug_file = fopen(debugpath, "a+");
|
|
|
STARPU_ASSERT(model->per_arch[STARPU_CORE_DEFAULT].debug_file);
|
|
|
+
|
|
|
+ get_model_debug_path(model, "gordon", debugpath, 256);
|
|
|
+ model->per_arch[STARPU_GORDON_DEFAULT].debug_file = fopen(debugpath, "a+");
|
|
|
+ STARPU_ASSERT(model->per_arch[STARPU_GORDON_DEFAULT].debug_file);
|
|
|
#endif
|
|
|
|
|
|
return;
|
|
@@ -249,6 +256,7 @@ void save_history_based_model(struct starpu_perfmodel_t *model)
|
|
|
fclose(f);
|
|
|
|
|
|
#ifdef DEBUG_MODEL
|
|
|
+ fclose(model->gordon_debug_file);
|
|
|
fclose(model->cuda_debug_file);
|
|
|
fclose(model->core_debug_file);
|
|
|
#endif
|