cuda.bindings.nvml.device_get_topology_common_ancestor#

cuda.bindings.nvml.device_get_topology_common_ancestor(
intptr_t device1,
intptr_t device2,
) int#

Retrieve the common ancestor for two devices For all products. Supported on Linux only.

Parameters:
  • device1 (intptr_t) – The identifier of the first device.

  • device2 (intptr_t) – The identifier of the second device.

Returns:

A nvmlGpuTopologyLevel_t that gives the path type.

Return type:

int

See also

nvmlDeviceGetTopologyCommonAncestor