isce3  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
isce3::cuda::core::Stream Class Reference

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...
 

Detailed Description

Thin RAII wrapper around cudaStream_t.

Constructor & Destructor Documentation

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).

Member Function Documentation

cudaStream_t isce3::cuda::core::Stream::get ( ) const
inline

Return the underlying cudaStream_t object.

isce3::cuda::core::Stream::operator bool ( ) const
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.


The documentation for this class was generated from the following file:

Generated for ISCE3.0 by doxygen 1.8.5.