cuda.core.experimental._stream.IsStreamT¶
- protocol cuda.core.experimental._stream.IsStreamT¶
-
Classes that implement this protocol must have the following methods / attributes:
- __cuda_stream__() Tuple[int, int] ¶
For any Python object that is meant to be interpreted as a CUDA stream, the intent can be communicated by implementing this protocol that returns a 2-tuple: The protocol version number (currently
0
) and the address ofcudaStream_t
. Both values should be Python int.