The docs for hipEventQuery currently state:
This function will return #hipErrorNotReady if all commands in the appropriate stream (specified to hipEventRecord()) have completed. If that work has not completed, or if hipEventRecord() was not called on the event, then #hipSuccess is returned.
That looks incorrect, since if all the work have completed, why return NotReady? Should not it be the other way around?