pub unsafe extern "C" fn cuStreamCreate(
phStream: *mut CUstream,
Flags: c_uint,
) -> CUresultExpand description
Create a stream.
Creates a stream and returns a handle in phStream. The Flags argument determines behaviors of the stream.
Valid values for Flags are:
CUstream_flags_enum::CU_STREAM_DEFAULT: Default stream creation flag.CUstream_flags_enum::CU_STREAM_NON_BLOCKING: Specifies that work running in the created stream may run concurrently with work in stream 0 (the NULL stream), and that the created stream should perform no implicit synchronization with stream 0.
Note that this function may also return error codes from previous, asynchronous launches.
§Parameters
phStream: Returned newly created stream.Flags: Parameters for stream creation.
§Return value
CUresult::CUDA_SUCCESSCUresult::CUDA_ERROR_DEINITIALIZEDCUresult::CUDA_ERROR_NOT_INITIALIZEDCUresult::CUDA_ERROR_INVALID_CONTEXTCUresult::CUDA_ERROR_INVALID_VALUECUresult::CUDA_ERROR_OUT_OF_MEMORYCUresult::CUDA_ERROR_EXTERNAL_DEVICE
See also: cuStreamDestroy, cuStreamCreateWithPriority, cuGreenCtxStreamCreate, cuStreamGetPriority, cuStreamGetFlags, cuStreamGetDevice, cuStreamWaitEvent, cuStreamQuery, cuStreamSynchronize, cuStreamAddCallback, cudaStreamCreate, cudaStreamCreateWithFlags.