cuda.bindings._v2.driver.stream_create#

cuda.bindings._v2.driver.stream_create(unsigned int flags) → intptr_t#

Create a stream.

Creates a stream and returns a handle in ph_stream. The flags argument determines behaviors of the stream. Valid values for flags are:.

  • CU_STREAM_DEFAULT: Default stream creation flag.

  • 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.

Parameters:

flags (unsigned int) – Parameters for stream creation.

Returns:

Returned newly created stream.

Return type:

intptr_t

See also

cuStreamCreate