Samuel Thibault 9 anni fa
parent
commit
1af1847937
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/datawizard/memalloc.c

+ 1 - 1
src/datawizard/memalloc.c

@@ -1116,7 +1116,7 @@ static struct _starpu_mem_chunk *_starpu_memchunk_init(struct _starpu_data_repli
 	if (replicate->relaxed_coherency == 1)
 		/* SCRATCH is always easy to drop, thus clean */
 		mc->clean = 1;
-	else if (replicate->relaxed_coherency == 0 && handle->home_node != -1 && handle->per_node[replicate->memory_node].state != STARPU_INVALID)
+	else if (replicate->relaxed_coherency == 0 && handle->home_node != -1 && handle->per_node[(int) replicate->memory_node].state != STARPU_INVALID)
 		/* This is a normal data and the home node has the value */
 		mc->clean = 1;
 	mc->replicate = replicate;