Browse Source

add a sanity check that currently fails ... :/

Cédric Augonnet 16 years ago
parent
commit
62979fee84
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/datawizard/coherency.c

+ 1 - 0
src/datawizard/coherency.c

@@ -74,6 +74,7 @@ static void update_data_state(data_state *state, uint32_t requesting_node,
 		uint32_t node;
 		for (node = 0; node < MAXNODES; node++)
 		{
+			STARPU_ASSERT((state->per_node[node].refcnt == 0) || (node == requesting_node));
 			state->per_node[node].state = INVALID;
 		}
 		state->per_node[requesting_node].state = OWNER;