pub unsafe extern "C" fn cudaExecutionCtxStreamCreate(
phStream: *mut cudaStream_t,
ctx: cudaExecutionContext_t,
flags: c_uint,
priority: c_int,
) -> cudaError_tExpand description
Creates a stream and initializes it for the given execution context.
The API creates a CUDA stream with the specified flags and priority, initializing it with resources as defined at the time of creating the specified ctx. Additionally, the API also enables work submitted to to the stream to be tracked under ctx.
The supported values for flags are:
Specifying priority affects the scheduling priority of work in the stream. Priorities provide a hint to preferentially run work with higher priority when possible, but do not preempt already-running work or provide any other functional guarantee on execution order. priority follows a convention where lower numbers represent higher priorities. ‘0’ represents default priority. The range of meaningful numerical priorities can be queried using cudaDeviceGetStreamPriorityRange. If the specified priority is outside the numerical range returned by cudaDeviceGetStreamPriorityRange, it will automatically be clamped to the lowest or the highest number in the range.
§Parameters
phStream: Returned stream handle.ctx: Execution context to initialize the stream with (required parameter, see note below).flags: Flags for stream creation.priority: Stream priority.