Просмотр исходного кода

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

Cédric Augonnet лет назад: 15
Родитель
Сommit
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);