Parcourir la source

Make sure we don't evict a data in WT mode

Samuel Thibault il y a 13 ans
Parent
commit
281ca7bccc
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/datawizard/memalloc.c

+ 4 - 0
src/datawizard/memalloc.c

@@ -304,6 +304,10 @@ static size_t try_to_free_mem_chunk(struct _starpu_mem_chunk *mc, unsigned node)
 	handle = mc->data;
 	STARPU_ASSERT(handle);
 
+	/* This data should be written through to this node, avoid dropping it! */
+	if (handle->wt_mask & (1<<node))
+		return 0;
+
 	/* REDUX memchunk */
 	if (mc->relaxed_coherency == 2)
 	{