Browse Source

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

Samuel Thibault 13 years ago
parent
commit
281ca7bccc
1 changed files with 4 additions and 0 deletions
  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;
 	handle = mc->data;
 	STARPU_ASSERT(handle);
 	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 */
 	/* REDUX memchunk */
 	if (mc->relaxed_coherency == 2)
 	if (mc->relaxed_coherency == 2)
 	{
 	{