cuda.bindings._v2.driver.device_get_host_atomic_capabilities#
- cuda.bindings._v2.driver.device_get_host_atomic_capabilities(operations, int dev)#
Query atomic operation capabilities between host and device.
Returns details about the requested atomic
operationsover the link betweendevand the host. For eachAtomicOperationinoperations, the corresponding result is a bitmask ofAtomicOperationCapabilityvalues indicating which operations the link supports natively.Raises
InvalidDeviceErrorifdevis not valid, andInvalidValueErrorifoperationsis empty or any operation value is invalid.- Parameters:
operations – Buffer of
AtomicOperationenum values whose capabilities should be queried (any buffer-exposing object, e.g. a numpyint32array; non-contiguous inputs are copied). Each item must be 4 bytes.dev (int) – Device handle.
- Returns:
- numpy
uint32array of the same length asoperations containing the capability flags for each requested operation.
- numpy
- Return type:
See also
cuDeviceGetHostAtomicCapabilities