瀏覽代碼

src/core/workers.c: call _starpu_codelet_check_deprecated_fields() before accessing codelet

Nathalie Furmento 12 年之前
父節點
當前提交
93d2d8a50c
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/core/workers.c

+ 5 - 0
src/core/workers.c

@@ -68,6 +68,9 @@ static uint32_t _starpu_worker_exists_and_can_execute(struct starpu_task *task,
 {
 	int i;
 	int nworkers = starpu_worker_get_count();
+
+	_starpu_codelet_check_deprecated_fields(task->cl);
+
 	for (i = 0; i < nworkers; i++)
 	{
 		if (starpu_worker_get_type(i) != arch)
@@ -114,6 +117,8 @@ static uint32_t _starpu_worker_exists_and_can_execute(struct starpu_task *task,
    that may execute the task or not */
 uint32_t _starpu_worker_exists(struct starpu_task *task)
 {
+	_starpu_codelet_check_deprecated_fields(task->cl);
+
 	if (!(task->cl->where & config.worker_mask))
 		return 0;