cuLite v0.3.1
A lite CUDA C++ Interface
Loading...
Searching...
No Matches
culite::CudaStream Class Reference

CUDA stream encapsulation class. More...

Public Member Functions

 CudaStream ()
 Constructor.
 ~CudaStream ()
 Destructor.
void sync ()
 Synchronizes the CUDA stream.
cudaStream_t stream ()
 Retrieves the underlying CUDA stream handle.

Detailed Description

CUDA stream encapsulation class.

This class provides a RAII wrapper around CUDA streams for managing asynchronous kernel execution and memory operations. The stream is created on construction and destroyed on destruction.

Constructor & Destructor Documentation

◆ CudaStream()

culite::CudaStream::CudaStream ( )

Constructor.

Creates a new CUDA stream for asynchronous operations.

◆ ~CudaStream()

culite::CudaStream::~CudaStream ( )

Destructor.

Destroys the CUDA stream and releases associated resources.

Member Function Documentation

◆ sync()

void culite::CudaStream::sync ( )

Synchronizes the CUDA stream.

Blocks the host until all operations in the stream are complete.

◆ stream()

cudaStream_t culite::CudaStream::stream ( )

Retrieves the underlying CUDA stream handle.

Provides access to the native CUDA stream handle for use with CUDA runtime API functions and cuBLAS operations.

Returns
The CUDA stream handle.