Checking whether Stream capture is active ( hipStreamCaptureStatusActive ) might not be enough, as there could be a status hipStreamCaptureStatusInvalidated which indicates the stream capture is invalidated but not terminated. This PR addresses this issue by calling hipStreamQuery() only if the stream capture status is hipStreamCaptureStatusNone
resolves # SWDEV-466097 & SWDEV-464655
Checking whether Stream capture is active ( hipStreamCaptureStatusActive ) might not be enough, as there could be a status hipStreamCaptureStatusInvalidated which indicates the stream capture is invalidated but not terminated. This PR addresses this issue by calling hipStreamQuery() only if the stream capture status is
hipStreamCaptureStatusNone