cuda.bindings._v2.driver.StreamWriteValueFlags#

class cuda.bindings._v2.driver.StreamWriteValueFlags(value: int)#

Flags for cuStreamWriteValue32

See CUstreamWriteValue_flags.

DEFAULT: 0

Default behavior

NO_MEMORY_BARRIER: 1

Permits the write to be reordered with writes which were issued before it, as a performance optimization. Normally, cuStreamWriteValue32 will provide a memory fence before the write, which has similar semantics to __threadfence_system() but is scoped to the stream rather than a CUDA thread. This flag is not supported in the v2 API.