legate::cuda::StreamView#

class StreamView#

A simple wrapper around CUDA streams to inject auxiliary features.

Deprecated:

since 24.11: please provide your own implementation of this class

When LEGATE_SYNC_STREAM_VIEW is set to 1, every StreamView synchronizes the CUDA stream that it wraps when it is destroyed.

Public Functions

inline explicit StreamView(CUstream stream)#

Creates a StreamView with a raw CUDA stream.

Deprecated:

since 24.11: please provide your own implementation of this class

Parameters:

stream – Raw CUDA stream to wrap

inline operator CUstream() const#

Unwraps the raw CUDA stream.

Deprecated:

since 24.11: please provide your own implementation of this class

Returns:

Raw CUDA stream wrapped by the StreamView