cuda.bindings._v2.driver.device_get_p2p_atomic_capabilities#

cuda.bindings._v2.driver.device_get_p2p_atomic_capabilities(
intptr_t operations,
unsigned int count,
int src_device,
int dst_device,
) → unsigned int#

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 count. 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 count is 0, or if any of *operations is not valid.

Parameters:
  • operations (intptr_t) – Requested operations.

  • count (unsigned int) – Count of requested operations and size of capabilities.

  • 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