cuda.core.system.get_topology_common_ancestor#

cuda.core.system.get_topology_common_ancestor(
Device device1: Device,
Device device2: Device,
) GpuTopologyLevel#

Retrieve the common ancestor for two devices.

For Linux only.

Parameters:
  • device1 (Device) – The first device.

  • device2 (Device) – The second device.

Returns:

The common ancestor level of the two devices.

Return type:

GpuTopologyLevel