Parcourir la source

If we use a relaxed coherency type of access, we don't update the status of the
"per_node" replicates which are used for normal R/W types of data accesses.

Cédric Augonnet il y a 14 ans
Parent
commit
7c0759dea4
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      src/datawizard/coherency.c

+ 5 - 0
src/datawizard/coherency.c

@@ -93,6 +93,11 @@ void _starpu_update_data_state(starpu_data_handle handle,
 				struct starpu_data_replicate_s *requesting_replicate,
 				starpu_access_mode mode)
 {
+	/* There is nothing to do for relaxed coherency modes (scratch or
+	 * reductions) */
+	if (!(mode & STARPU_RW))
+		return;
+
 	unsigned nnodes = _starpu_get_memory_nodes_count();
 
 	/* the data is present now */