holoscan::synchronize_cuda_streams
holoscan::synchronize_cuda_streams
Record an event on producer_stream and make consumer_stream wait on it.
No-op when the two streams are identical. Used to order Tensor-producing work on a producer stream before a consumer stream reads the result.
Returns: Empty on success, or an Error describing the failed CUDA call.
Parameters
producer_stream
The stream that produced the data.
consumer_stream
The stream that will consume the data.