cuda.bindings._v2.driver.stream_get_device#

cuda.bindings._v2.driver.stream_get_device(intptr_t h_stream) → int#

Returns the device handle of the stream.

Returns in *device the device handle of the stream.

Parameters:

h_stream (intptr_t) – Handle to the stream to be queried.

Returns:

Returns the device to which a stream belongs.

Return type:

int

See also

cuStreamGetDevice