|
@@ -49,7 +49,7 @@ uint32_t _starpu_compute_buffers_footprint(struct starpu_perfmodel *model, struc
|
|
|
|
|
|
if (model)
|
|
|
{
|
|
|
- if (model->footprint)
|
|
|
+ if (model && model->footprint)
|
|
|
{
|
|
|
footprint = model->footprint(task);
|
|
|
}
|
|
@@ -72,6 +72,10 @@ uint32_t _starpu_compute_buffers_footprint(struct starpu_perfmodel *model, struc
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ footprint = starpu_task_data_footprint(task);
|
|
|
+ }
|
|
|
|
|
|
j->footprint = footprint;
|
|
|
j->footprint_is_computed = 1;
|