public class DefaultNGpuDevice extends Object implements NGpuDevice
NGpuDevice.CC_AMPERE, CC_DP4A, CC_PASCAL, CC_TURING, COMPUTE_CAPABILITY, DEVICE_TYPE, DRIVER_VERSION, KERNEL_DRIVER, MEMORY_BANDWIDTH_GBPS, PCI_BUS_ID, PCI_DEVICE_ID, PCIE_GEN_CURRENT, PCIE_GEN_MAX, PCIE_WIDTH_CURRENT, PCIE_WIDTH_MAX, PRIMARY_GPU_PROPERTY, UUID, VENDOR| Constructor and Description |
|---|
DefaultNGpuDevice(String name,
NRam vram,
Map<String,String> capabilities) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
capabilities() |
NOptional<String> |
capability(String key) |
int |
computeCapability() |
NGpuDeviceType |
deviceType() |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
hasTensorCores() |
boolean |
isComputeCapable() |
boolean |
isSupportedBf16() |
boolean |
isSupportedFp16() |
boolean |
isSupportedInt4() |
boolean |
isSupportedInt8() |
String |
name() |
static List<NGpuDevice> |
orderWithPrimaryFirst(List<NGpuDevice> gpus) |
String |
toString() |
NGpuVendor |
vendor() |
NRam |
vram() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitprimarypublic String name()
name in interface NGpuDevicepublic NRam vram()
vram in interface NGpuDevicepublic NOptional<String> capability(String key)
capability in interface NGpuDevicepublic Map<String,String> capabilities()
capabilities in interface NGpuDevicepublic NGpuVendor vendor()
vendor in interface NGpuDevicepublic NGpuDeviceType deviceType()
deviceType in interface NGpuDevicepublic int computeCapability()
computeCapability in interface NGpuDevicepublic boolean isComputeCapable()
isComputeCapable in interface NGpuDevicepublic boolean hasTensorCores()
hasTensorCores in interface NGpuDevicepublic boolean isSupportedFp16()
isSupportedFp16 in interface NGpuDevicepublic boolean isSupportedBf16()
isSupportedBf16 in interface NGpuDevicepublic boolean isSupportedInt8()
isSupportedInt8 in interface NGpuDevicepublic boolean isSupportedInt4()
isSupportedInt4 in interface NGpuDevicepublic static List<NGpuDevice> orderWithPrimaryFirst(List<NGpuDevice> gpus)
Copyright © 2026 vpc open source initiative. All rights reserved.