Skip to main content

cudaStreamCreateWithFlags

Function cudaStreamCreateWithFlags 

Source
pub unsafe extern "C" fn cudaStreamCreateWithFlags(
    pStream: *mut cudaStream_t,
    flags: c_uint,
) -> cudaError_t
Expand description

Create an asynchronous stream.

Creates a new asynchronous stream on the context that is current to the calling host thread. If no context is current to the calling host thread, then the primary context for a device is selected, made current to the calling thread, and initialized before creating a stream on it. The flags argument determines the behaviors of the stream. Valid values for flags are.

ยงParameters

  • pStream: Pointer to new stream identifier.
  • flags: Parameters for stream creation.