Explorar el Código

When evicting data, push it to its home node, not systematically RAM.

Samuel Thibault hace 12 años
padre
commit
d2772ccb73
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/datawizard/memalloc.c

+ 1 - 1
src/datawizard/memalloc.c

@@ -358,7 +358,7 @@ static size_t try_to_free_mem_chunk(struct _starpu_mem_chunk *mc, unsigned node)
 
 			/* in case there was nobody using that buffer, throw it
 			 * away after writing it back to main memory */
-			transfer_subtree_to_node(handle, node, 0);
+			transfer_subtree_to_node(handle, node, handle->home_node != -1 ? handle->home_node : 0);
 
 #ifdef STARPU_MEMORY_STATS
 			_starpu_memory_handle_stats_loaded_owner(handle, 0);