Explorar o código

Also propagate relaxed_coherency to memory chunk that could already be allocated

Samuel Thibault %!s(int64=13) %!d(string=hai) anos
pai
achega
fe42152165
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/datawizard/reduction.c

+ 4 - 0
src/datawizard/reduction.c

@@ -94,6 +94,8 @@ void _starpu_data_start_reduction_mode(starpu_data_handle_t handle)
 		replicate = &handle->per_worker[worker];
 		replicate->initialized = 0;
 		replicate->relaxed_coherency = 2;
+		if (replicate->mc)
+			replicate->mc->relaxed_coherency = 2;
 	}
 }
 
@@ -259,6 +261,8 @@ void _starpu_data_end_reduction_mode(starpu_data_handle_t handle)
 		struct _starpu_data_replicate *replicate;
 		replicate = &handle->per_worker[worker];
 		replicate->relaxed_coherency = 1;
+		if (replicate->mc)
+			replicate->mc->relaxed_coherency = 1;
 	}
 }