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,
Queries details about atomic operations supported between two devices.
Returns in
*capabilitiesthe details about requested atomic*operationsover the the link betweensrc_deviceanddst_device. The allocated size of*operationsand*capabilitiesmust becount. For eachCUatomicOperationin*operations, the corresponding result in*capabilitieswill be a bitmask indicating which ofCUatomicOperationCapabilitythe link supports natively. ReturnsCUDA_ERROR_INVALID_DEVICEifsrc_deviceordst_deviceare not valid or if they represent the same device. ReturnsCUDA_ERROR_INVALID_VALUEif*capabilitiesor*operationsis NULL, ifcountis 0, or if any of*operationsis not valid.- Parameters:
- Returns:
- Returned capability details of each requested
operation.
- Return type:
unsigned int
See also
cuDeviceGetP2PAtomicCapabilities