Explorar el Código

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

Samuel Thibault hace 10 años
padre
commit
b7c3d93c34
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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;
 	}