Ver código fonte

Do not emit invalidation events for data which is already invalid (notably because the node does not exist at all)

Samuel Thibault 10 anos atrás
pai
commit
b7c3d93c34
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/datawizard/interfaces/data_interface.c

+ 2 - 1
src/datawizard/interfaces/data_interface.c

@@ -938,7 +938,8 @@ static void _starpu_data_invalidate(void *data)
 			_starpu_request_mem_chunk_removal(handle, local, node, size);
 		}
 
-		_STARPU_TRACE_DATA_INVALIDATE(handle, node);
+		if (local->state != STARPU_INVALID)
+			_STARPU_TRACE_DATA_INVALIDATE(handle, node);
 		local->state = STARPU_INVALID;
 	}