Explorar o código

Fix starpu_sync_data_with_mem by properly releasing the data once it has been
updated.

Cédric Augonnet %!s(int64=17) %!d(string=hai) anos
pai
achega
18cac2a36a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/datawizard/coherency.c

+ 2 - 2
src/datawizard/coherency.c

@@ -327,7 +327,7 @@ static inline void _starpu_sync_data_with_mem_continuation(void *arg)
 	STARPU_ASSERT(!ret);
 	STARPU_ASSERT(!ret);
 	
 	
 	/* the application does not need to "lock" the data anymore */
 	/* the application does not need to "lock" the data anymore */
-	notify_data_dependencies(state);
+	release_data(state, 0);
 
 
 	pthread_mutex_lock(&statenode->lock);
 	pthread_mutex_lock(&statenode->lock);
 	statenode->finished = 1;
 	statenode->finished = 1;
@@ -371,7 +371,7 @@ void starpu_sync_data_with_mem(data_state *state)
 	ret = fetch_data(state, STARPU_R);
 	ret = fetch_data(state, STARPU_R);
 	STARPU_ASSERT(!ret);
 	STARPU_ASSERT(!ret);
 
 
-	release_rw_lock(&state->data_lock);
+	release_data(state, 0);
 #endif
 #endif
 }
 }