cubecl_hip_sys

Function hipStreamGetDevice

Source
pub unsafe extern "C" fn hipStreamGetDevice(
    stream: hipStream_t,
    device: *mut hipDevice_t,
) -> hipError_t
Expand description

@brief Get the device assocaited with the stream

@param[in] stream stream to be queried @param[out] device device associated with the stream @return #hipSuccess, #hipErrorInvalidValue, #hipErrorContextIsDestroyed, #hipErrorInvalidHandle, #hipErrorNotInitialized, #hipErrorDeinitialized, #hipErrorInvalidContext

@see hipStreamCreate, hipStreamDestroy, hipDeviceGetStreamPriorityRange