cuda.bindings._v2.driver.stream_get_flags#

cuda.bindings._v2.driver.stream_get_flags(intptr_t h_stream) → unsigned int#

Query the flags of a given stream.

Query the flags of a stream created using cuStreamCreate, cuStreamCreateWithPriority or cuGreenCtxStreamCreate and return the flags in flags.

Parameters:

h_stream (intptr_t) – Handle to the stream to be queried.

Returns:

Pointer to an unsigned integer in which the stream’s

flags are returned The value returned in flags is a logical ‘OR’ of all flags that were used while creating this stream. See cuStreamCreate for the list of valid flags.

Return type:

unsigned int

See also

cuStreamGetFlags