# Functions
NewNvidiaNode returns a new NvidiaNode.
NewNvidiaTree returns a new NvidiaTree.
# Constants
HundredCore represents 100 virtual cores.
MaxProcess is the Maximum number of process in one device.
NamePattern is the name pattern of nvidia device.
# Variables
ByAllocatableCores compares two NvidiaNode by available cores.
ByAllocatableMemory compares two NvidiaNode by available memory.
ByAvailable compares two NvidiaNode by count of available leaves.
ByID compares two NvidiaNode by ID.
ByMemory compares two NvidiaNode by memory already used.
ByPids compares two NvidiaNode by length of PIDs running on node.
ByType compares two NvidiaNode by GpuTopologyLevel.
PrintSorter is used to sort nodes when printing them out.
# Structs
DeviceMeta contains metadata of GPU device.
NvidiaNode represents a node of Nvidia GPU.
NvidiaTree represents a Nvidia GPU in a tree.
SchedulerCache contains allocatable resource of GPU.