Skip to main content

cudaStreamGetDevice

Function cudaStreamGetDevice 

Source
pub unsafe extern "C" fn cudaStreamGetDevice(
    hStream: cudaStream_t,
    device: *mut c_int,
) -> cudaError_t
Expand description

Query the device of a stream.

Returns in *device the device of the stream.

ยงParameters

  • hStream: Handle to the stream to be queried.
  • device: Returns the device to which the stream belongs.