cuda.bindings._v2.driver.device_get_p2p_atomic_capabilities#

cuda.bindings._v2.driver.device_get_p2p_atomic_capabilities(
operations,
int src_device,
int dst_device,
)#

Queries details about atomic operations supported between two devices.

Returns in *capabilities the details about requested atomic *operations over the the link between src_device and dst_device. The allocated size of *operations and *capabilities must be len(operations). For each CUatomicOperation in *operations, the corresponding result in *capabilities will be a bitmask indicating which of CUatomicOperationCapability the link supports natively. Returns CUDA_ERROR_INVALID_DEVICE if src_device or dst_device are not valid or if they represent the same device. Returns CUDA_ERROR_INVALID_VALUE if *capabilities or *operations is NULL, if len(operations) is 0, or if any of *operations is not valid.

Parameters:
  • operations (object) –

    Requested operations. It must be:

    • a Python sequence of AtomicOperation, or

    • None for NULL.

  • src_device (int) – The source device of the target link.

  • dst_device (int) – The destination device of the target link.

Returns:

Returned capability details of each requested

operation.

Return type:

unsigned int

See also

cuDeviceGetP2PAtomicCapabilities