소스 검색

Fix computing footprint without a model

Samuel Thibault 10 년 전
부모
커밋
d8d4de5c8d
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/datawizard/footprint.c

+ 5 - 1
src/datawizard/footprint.c

@@ -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;