Explorar o código

Do not even try to free data which was allocated by the user.

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

+ 4 - 0
src/datawizard/memalloc.c

@@ -310,6 +310,10 @@ static size_t try_to_free_mem_chunk(struct _starpu_mem_chunk *mc, unsigned node)
 	if (handle->wt_mask & (1<<node))
 		return 0;
 
+	/* This data was registered from this node, we will not be able to drop it anyway */
+	if ((int) node == handle->home_node)
+		return 0;
+
 	/* REDUX memchunk */
 	if (mc->relaxed_coherency == 2)
 	{