瀏覽代碼

Make sure not to add the post_sync_task when none was define because sequential consistency was not enabled

Samuel Thibault 11 年之前
父節點
當前提交
9d36c055e7
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/datawizard/user_interactions.c

+ 2 - 1
src/datawizard/user_interactions.c

@@ -322,7 +322,8 @@ int starpu_data_acquire_on_node(starpu_data_handle_t handle, int node, enum star
 	 * We enqueue the "post" sync task in the list associated to the handle
 	 * so that it is submitted by the starpu_data_release
 	 * function. */
-	_starpu_add_post_sync_tasks(wrapper.post_sync_task, handle);
+	if (sequential_consistency)
+		_starpu_add_post_sync_tasks(wrapper.post_sync_task, handle);
 
         _STARPU_LOG_OUT();
 	return 0;