Browse Source

use STARPU_MAIN_RAM macro

Samuel Thibault 10 years ago
parent
commit
c494f6aa54
1 changed files with 1 additions and 1 deletions
  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 */