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 operations over the link between dev and the host. For each AtomicOperation in operations, the corresponding result is a bitmask of AtomicOperationCapability values indicating which operations the link supports natively.

Raises InvalidDeviceError if dev is not valid, and InvalidValueError if operations is empty or any operation value is invalid.

Parameters:
  • operations – Buffer of AtomicOperation enum values whose capabilities should be queried (any buffer-exposing object, e.g. a numpy int32 array; non-contiguous inputs are copied). Each item must be 4 bytes.

  • dev (int) – Device handle.

Returns:

numpy uint32 array of the same length as operations

containing the capability flags for each requested operation.

Return type:

object

See also

cuDeviceGetHostAtomicCapabilities