Enum Class NvidiaGPUPluginForRuntimeV2.DeviceLinkType
java.lang.Object
java.lang.Enum<NvidiaGPUPluginForRuntimeV2.DeviceLinkType>
org.apache.hadoop.yarn.server.nodemanager.containermanager.resourceplugin.com.nvidia.NvidiaGPUPluginForRuntimeV2.DeviceLinkType
- All Implemented Interfaces:
Serializable,Comparable<NvidiaGPUPluginForRuntimeV2.DeviceLinkType>,Constable
- Enclosing class:
- NvidiaGPUPluginForRuntimeV2
public static enum NvidiaGPUPluginForRuntimeV2.DeviceLinkType
extends Enum<NvidiaGPUPluginForRuntimeV2.DeviceLinkType>
Different type of link.
The weight of each link is a relative value.
The higher weight, the higher cost between the GPUs
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCross CPU through socket-level link (e.g.Need to traverse multiple PCIe switch to talk.For Nvdia GPU NVLink.Connected to same CPU (Same NUMA node).Just need to traverse one PCIe switch to talk. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
P2PLinkNVLink9
For Nvdia GPU NVLink. -
P2PLinkNVLink8
-
P2PLinkNVLink7
-
P2PLinkNVLink6
-
P2PLinkNVLink5
-
P2PLinkNVLink4
-
P2PLinkNVLink3
-
P2PLinkNVLink2
-
P2PLinkNVLink1
-
P2PLinkSameCPUSocket
Connected to same CPU (Same NUMA node). -
P2PLinkCrossCPUSocket
Cross CPU through socket-level link (e.g. QPI). Usually cross NUMA node -
P2PLinkSingleSwitch
Just need to traverse one PCIe switch to talk. -
P2PLinkMultiSwitch
Need to traverse multiple PCIe switch to talk.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getWeight
public int getWeight()
-