|
@@ -132,8 +132,8 @@ void initialize_chol_model(struct starpu_perfmodel* model, char * symbol,
|
|
|
double (*cuda_cost_function)(struct starpu_task *, struct starpu_perfmodel_arch*, unsigned))
|
|
|
{
|
|
|
model->symbol = symbol;
|
|
|
- starpu_perfmodel_init(model);
|
|
|
model->type = STARPU_HISTORY_BASED;
|
|
|
+ starpu_perfmodel_init(model);
|
|
|
model->per_arch[STARPU_CPU_WORKER][0][0][0].cost_function = cpu_cost_function;
|
|
|
if(starpu_worker_get_count_by_type(STARPU_CUDA_WORKER) != 0)
|
|
|
model->per_arch[STARPU_CUDA_WORKER][0][0][0].cost_function = cuda_cost_function;
|