Class NMGpuResourceInfo
java.lang.Object
org.apache.hadoop.yarn.server.nodemanager.webapp.dao.NMResourceInfo
org.apache.hadoop.yarn.server.nodemanager.webapp.dao.gpu.NMGpuResourceInfo
Gpu device information return to client when
NMWebServices.getNMResourceInfo(String)
is invoked.-
Constructor Summary
ConstructorsConstructorDescriptionNMGpuResourceInfo(GpuDeviceInformation gpuDeviceInformation, List<GpuDevice> totalGpuDevices, List<AssignedGpuDevice> assignedGpuDevices) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAssignedGpuDevices(List<AssignedGpuDevice> assignedGpuDevices) voidsetGpuDeviceInformation(GpuDeviceInformation gpuDeviceInformation) voidsetTotalGpuDevices(List<GpuDevice> totalGpuDevices) Methods inherited from class org.apache.hadoop.yarn.server.nodemanager.webapp.dao.NMResourceInfo
getResourceValue, setResourceValue
-
Constructor Details
-
NMGpuResourceInfo
public NMGpuResourceInfo(GpuDeviceInformation gpuDeviceInformation, List<GpuDevice> totalGpuDevices, List<AssignedGpuDevice> assignedGpuDevices) -
NMGpuResourceInfo
public NMGpuResourceInfo()
-
-
Method Details
-
getGpuDeviceInformation
-
setGpuDeviceInformation
-
getTotalGpuDevices
-
setTotalGpuDevices
-
getAssignedGpuDevices
-
setAssignedGpuDevices
-