cuda.bindings._v2.driver.logical_endpoint_create#
- cuda.bindings._v2.driver.logical_endpoint_create(uint32_t le_id, prop)#
Creates a logical endpoint with the requested properties and associates it with the logical endpoint id.
This creates a logical endpoint as described by
prop. The number of participating devices is determined by theCUlogicalEndpointProp.type. If the type isCU_LOGICAL_ENDPOINT_TYPE_UNICASTthenCUlogicalEndpointProp.unicast.devicespecifies the owner device of the unicast logical endpoint. If the type isCU_LOGICAL_ENDPOINT_TYPE_MULTICASTthenCUlogicalEndpointProp.multicast.numDevicesspecifies the number of devices in the multicast logical endpoint team. Devices can be added to a multicast logical endpoint viacuLogicalEndpointAddDevice. After all the participating devices have been added, a call tocuLogicalEndpointQuerymust be made to ensure that the logical endpoint is ready for memory binding and access. A unicast logical endpoint does not have a notion of adding devices viacuLogicalEndpointAddDevice. However, a call tocuLogicalEndpointQuerymust still be made to ensure that the logical endpoint is ready for memory binding and access. Memory is bound to the logical endpoint via eithercuLogicalEndpointBindAddrorcuLogicalEndpointBindMem, and can be unbound viacuLogicalEndpointUnbind. The total amount of memory that can be bound per device is specified byCUlogicalEndpointProp.size. This size must be a multiple of the value forbindAlignmentas returned bycuLogicalEndpointGetLimits. The maximum size for the logical endpoint cannot exceed the value formaxSizeas returned bycuLogicalEndpointGetLimits. The bind alignment and maximum size depend on the properties of the logical endpoint.- Parameters:
le_id (uint32_t) – Logical endpoint id that will be associated with the newly created logical endpoint.
prop (intptr_t) – Properties of the logical endpoint to create.
See also
cuLogicalEndpointCreate