cuda.core.StreamOptions#

class cuda.core.StreamOptions(
nonblocking: cython.bint = True,
priority: int | None = None,
synchronization_policy: object = None,
)#

Customizable Stream options.

nonblocking#

Stream does not synchronize with the NULL stream. (Default to True)

Type:

bool, optional

priority#

Stream priority where lower number represents a higher priority. (Default to lowest priority)

Type:

int, optional

synchronization_policy#

CPU wait policy applied when synchronizing this stream from the host. Maps to CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY via cuStreamSetAttribute. (Default to None, leaving the driver default)

Type:

SynchronizationPolicyType | None, optional