cuda.bindings._v2.driver.logical_endpoint_add_device#

cuda.bindings._v2.driver.logical_endpoint_add_device(uint32_t le_id, int dev)#

Associates a device to a multicast logical endpoint.

Associates a device to a logical endpoint. The type of the logical endpoint must be CU_LOGICAL_ENDPOINT_TYPE_MULTICAST. The added device will be a part of the multicast team of size specified by CUlogicalEndpointProp.multicast.numDevices during cuLogicalEndpointCreate. The association of the device to the multicast logical endpoint is permanent during the life time of the multicast logical endpoint. All devices must be added to the multicast logical endpoint before any memory can be bound to any device in the team. A multicast logical endpoint will not be ready for use until all devices have been added. User can query whether the logical endpoint is ready for use via cuLogicalEndpointQuery. This call may fail with CUDA_ERROR_INVALID_DEVICE if the device specified by dev does not belong to the same clique as the other devices previously added to this multicast logical endpoint.

Parameters:
  • le_id (uint32_t) – Logical endpoint id representing a multicast logical endpoint.

  • dev (int) – Device that will be associated with the multicast logical endpoint.

See also

cuLogicalEndpointAddDevice