Forráskód Böngészése

src/datawizard/user_interactions.c: in function starpu_data_release_on_node, change the order for functions _starpu_unlock_post_sync_tasks and _starpu_release_data_on_node as _starpu_unlock_post_sync_tasks needs to access handle which can be freed in _starpu_release_data_on_node

Marc Sergent 12 éve
szülő
commit
df02c8376e
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      src/datawizard/user_interactions.c

+ 3 - 3
src/datawizard/user_interactions.c

@@ -323,11 +323,11 @@ void starpu_data_release_on_node(starpu_data_handle_t handle, unsigned node)
 {
 	STARPU_ASSERT(handle);
 
-	/* The application can now release the rw-lock */
-	_starpu_release_data_on_node(handle, 0, &handle->per_node[node]);
-
 	/* In case there are some implicit dependencies, unlock the "post sync" tasks */
 	_starpu_unlock_post_sync_tasks(handle);
+
+	/* The application can now release the rw-lock */
+	_starpu_release_data_on_node(handle, 0, &handle->per_node[node]);
 }
 
 void starpu_data_release(starpu_data_handle_t handle)