Преглед изворни кода

When reusing a data request, we need to properly upgrade the access mode
associated to the previous request.

Cédric Augonnet пре 15 година
родитељ
комит
4e0e278760
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/datawizard/coherency.c

+ 1 - 1
src/datawizard/coherency.c

@@ -270,7 +270,7 @@ int _starpu_fetch_data_on_node(starpu_data_handle handle, uint32_t requesting_no
 
 			/* transform that request into the proper access mode (prefetch could be read only) */
 #warning check that
-			r->mode = mode;
+			r->mode |= mode;
 		}
 
 		//fprintf(stderr, "found a similar request : refcnt (req) %d\n", r->refcnt);