Thin RAII wrapper around cudaStream_t. More...
#include <Stream.h>
Public Member Functions | |
Stream () | |
Create an asynchronous stream object on the current CUDA device. More... | |
Stream (std::nullptr_t) | |
Create a NULL stream object (which causes implicit synchronization). More... | |
operator bool () const | |
Return true if the Stream is not NULL. More... | |
cudaStream_t | get () const |
Return the underlying cudaStream_t object. More... | |
void | record_event (Event) const |
Record an event to capture the contents of the stream. More... | |
Event | record_event () const |
Record an event to capture the contents of the stream. More... | |
void | wait_event (Event) const |
Wait for an event to complete. More... | |
Thin RAII wrapper around cudaStream_t.
isce3::cuda::core::Stream::Stream | ( | ) |
Create an asynchronous stream object on the current CUDA device.
isce3::cuda::core::Stream::Stream | ( | std::nullptr_t | ) |
Create a NULL stream object (which causes implicit synchronization).
|
inline |
Return the underlying cudaStream_t object.
|
explicit |
Return true if the Stream is not NULL.
void isce3::cuda::core::Stream::record_event | ( | Event | ) | const |
Record an event to capture the contents of the stream.
Event isce3::cuda::core::Stream::record_event | ( | ) | const |
Record an event to capture the contents of the stream.
void isce3::cuda::core::Stream::wait_event | ( | Event | ) | const |
Wait for an event to complete.