Przeglądaj źródła

replay needs to initialize data when it will be read, not written

Samuel Thibault 5 lat temu
rodzic
commit
727dbf905f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tools/starpu_replay.c

+ 1 - 1
tools/starpu_replay.c

@@ -448,7 +448,7 @@ static void variable_data_register_check(size_t * array_of_size, int nb_handles)
 				handles_cell->handle = handles_ptr[h]; /* Get the hidden key (initial handle from the file) to store it as a key*/
 
 				replay_data_register(handles_ptr+h,
-						modes_ptr[h] & STARPU_W ? STARPU_MAIN_RAM : -1,
+						modes_ptr[h] & STARPU_R ? STARPU_MAIN_RAM : -1,
 						array_of_size[h], array_of_size[h], array_of_size[h]);
 
 				handles_cell->mem_ptr = handles_ptr[h]; /* Store the new value of the handle into the hash table */