MAOS
Multithreaded Adaptive Optics Simulator
Loading...
Searching...
No Matches
stream_t Class Reference
Collaboration diagram for stream_t:

Public Member Functions

 stream_t ()
void init ()
 ~stream_t ()
void deinit ()
void reset ()
void sync ()
 operator cudaStream_t ()
cublasHandle_t blas ()
cusparseHandle_t sparse ()
cusolverDnHandle_t dn ()

Constructor & Destructor Documentation

◆ stream_t()

stream_t::stream_t ( )

Create the stream and its cublas, cusparse and cusolver handles.

◆ ~stream_t()

stream_t::~stream_t ( )

Destroy the handles and the stream.

Member Function Documentation

◆ init()

void stream_t::init ( )

Create the stream and the handles associated with it.

◆ deinit()

void stream_t::deinit ( )

Destroy the handles and the stream (synchronizing it first).

◆ reset()

void stream_t::reset ( )

Recreate the stream and handles, e.g., to place them on the current GPU.

◆ sync()

void stream_t::sync ( )

Block until all work in the stream is done.

◆ operator cudaStream_t()

stream_t::operator cudaStream_t ( )

Implicit conversion to the underlying stream.

Returns
The cuda stream. Owned by this object.

◆ blas()

cublasHandle_t stream_t::blas ( )
Returns
The cublas handle bound to this stream. Owned by this object.

◆ sparse()

cusparseHandle_t stream_t::sparse ( )
Returns
The cusparse handle bound to this stream. Owned by this object.

◆ dn()

cusolverDnHandle_t stream_t::dn ( )
Returns
The cusolver dense handle bound to this stream. Owned by this object.

The documentation for this class was generated from the following file:
  • cuda/math/common.h