![]() |
cuLite v0.3.1
A lite CUDA C++ Interface
|
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. | |
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.
| culite::CudaStream::CudaStream | ( | ) |
Constructor.
Creates a new CUDA stream for asynchronous operations.
| culite::CudaStream::~CudaStream | ( | ) |
Destructor.
Destroys the CUDA stream and releases associated resources.
| void culite::CudaStream::sync | ( | ) |
Synchronizes the CUDA stream.
Blocks the host until all operations in the stream are complete.
| 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.