瀏覽代碼

doc/tutorial/vector_scal_task_insert.c: wait for task completion

Nathalie Furmento 11 年之前
父節點
當前提交
3dfa294771
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      doc/tutorial/vector_scal_task_insert.c

+ 3 - 0
doc/tutorial/vector_scal_task_insert.c

@@ -97,6 +97,9 @@ int main(int argc, char **argv)
 				 0);
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_insert");
 
+	/* Wait for tasks completion */
+	starpu_task_wait_for_all();
+
 	/* StarPU does not need to manipulate the array anymore so we can stop
 	 * monitoring it */
 	starpu_data_unregister(vector_handle);