cuda.core.experimental._stream.IsStreamT

protocol cuda.core.experimental._stream.IsStreamT

typing.Protocol.

Classes that implement this protocol must have the following methods / attributes:

__cuda_stream__() Tuple[int, int]

For any Python objects that are meant to be interpreted as a CUDA stream, they can do so by implementing this protocol that returns a 2-tuple: The protocol version number (currently 0) and the address of cudaStream_t. Both values should be Python int.