Explorar o código

use STARPU_MAIN_RAM macro

Samuel Thibault %!s(int64=10) %!d(string=hai) anos
pai
achega
c494f6aa54
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/datawizard/memalloc.c

+ 1 - 1
src/datawizard/memalloc.c

@@ -489,7 +489,7 @@ static unsigned try_to_reuse_mem_chunk(struct _starpu_mem_chunk *mc, unsigned no
 			/* in case there was nobody using that buffer, throw it
 			 * away after writing it back to main memory */
 			_STARPU_TRACE_START_WRITEBACK(node);
-			transfer_subtree_to_node(old_data, node, 0);
+			transfer_subtree_to_node(old_data, node, STARPU_MAIN_RAM);
 			_STARPU_TRACE_END_WRITEBACK(node);
 
 			/* now replace the previous data */