瀏覽代碼

Add assert message when there is no init_cl for reduction

Philippe SWARTVAGHER 4 年之前
父節點
當前提交
15327da2f8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/datawizard/reduction.c

+ 1 - 1
src/datawizard/reduction.c

@@ -54,7 +54,7 @@ void _starpu_redux_init_data_replicate(starpu_data_handle_t handle, struct _star
 	STARPU_ASSERT(replicate->allocated);
 
 	struct starpu_codelet *init_cl = handle->init_cl;
-	STARPU_ASSERT(init_cl);
+	STARPU_ASSERT_MSG(init_cl, "There is no initialisation codelet for the reduction of the handle %p. Maybe you forget to call starpu_data_set_reduction_methods() ?", handle->root_handle);
 
 	_starpu_cl_func_t init_func = NULL;