Sfoglia il codice sorgente

src/core/task.c: call _starpu_register_model instead starpu_perfmodel_init to make sure models will be registered and thus freed when calling starpu_shutdown

Nathalie Furmento 10 anni fa
parent
commit
4f998283c7
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/core/task.c

+ 2 - 2
src/core/task.c

@@ -487,14 +487,14 @@ int starpu_task_submit(struct starpu_task *task)
 
 		if (task->cl->model)
 		{
-			starpu_perfmodel_init(NULL, task->cl->model);
+			_starpu_register_model(task->cl->model);
 			if (task->cl->model->symbol)
 				_starpu_load_perfmodel(task->cl->model);
 		}
 
 		if (task->cl->power_model)
 		{
-			starpu_perfmodel_init(NULL, task->cl->power_model);
+			_starpu_register_model(task->cl->power_model);
 			if (task->cl->power_model->symbol)
 				_starpu_load_perfmodel(task->cl->power_model);
 		}