Skip to content

Class muda::Stream

ClassList > muda > Stream

RAII wrapper for cudaStream.

  • #include <stream.h>

Classes

Type Name
class FireAndForget
class GraphFireAndForget
class GraphTailLaunch
class TailLaunch

Public Types

Type Name
enum unsigned int Flag

Public Functions

Type Name
MUDA_NODISCARD Stream (Flag f=Flag::eDefault)
Stream (const Stream &) = delete
Stream (Stream && o)
void begin_capture (cudaStreamCaptureMode mode=cudaStreamCaptureModeThreadLocal) const
void end_capture (cudaGraph_t * graph) const
operator cudaStream_t () const
Stream & operator= (const Stream &) = delete
Stream & operator= (Stream && o)
cudaStream_t view () const
void wait () const
std::byte * workspace (size_t byte_size)
~Stream ()

Public Static Functions

Type Name
Stream & Default ()

Public Types Documentation

enum Flag

enum muda::Stream::Flag {
    eDefault = cudaStreamDefault,
    eNonBlocking = cudaStreamNonBlocking
};

Public Functions Documentation

function Stream [1/4]

MUDA_NODISCARD muda::Stream::Stream (
    Flag f=Flag::eDefault
) 

function Stream [2/4]

muda::Stream::Stream (
    const Stream &
) = delete

function Stream [3/4]

muda::Stream::Stream (
    Stream && o
) 

function begin_capture

void muda::Stream::begin_capture (
    cudaStreamCaptureMode mode=cudaStreamCaptureModeThreadLocal
) const

function end_capture

void muda::Stream::end_capture (
    cudaGraph_t * graph
) const

function operator cudaStream_t

inline muda::Stream::operator cudaStream_t () const

function operator=

Stream & muda::Stream::operator= (
    const Stream &
) = delete

function operator=

Stream & muda::Stream::operator= (
    Stream && o
) 

function view

inline cudaStream_t muda::Stream::view () const

function wait

void muda::Stream::wait () const

function workspace

std::byte * muda::Stream::workspace (
    size_t byte_size
) 

function ~Stream

muda::Stream::~Stream () 

Public Static Functions Documentation

function Default

static Stream & muda::Stream::Default () 


The documentation for this class was generated from the following file src/muda/launch/stream.h