GpuDeviceInfo class

One inference-capable GPU-class device, as returned by listGpuDevices.

Constructors

GpuDeviceInfo({required GpuBackend backend, required int mainGpu, required String name, required String description, required String deviceId, required GpuDeviceType type, required int memoryFreeBytes, required int memoryTotalBytes})
Creates a GpuDeviceInfo.
const

Properties

backend → GpuBackend
The backend that exposes this device.
final
description → String
Human-readable description (e.g. NVIDIA GeForce RTX 5050 Laptop GPU). Falls back to name when the backend reports no description.
final
deviceId → String
Stable device identifier when the backend reports one (e.g. a PCI address); empty otherwise.
final
hashCode → int
The hash code for this object.
no setterinherited
isDiscreteGpu → bool
A dedicated GPU with its own VRAM (not an integrated/shared-memory GPU).
no setter
mainGpu → int
Offload index within backend: the value to pass as ModelParams.mainGpu (with splitMode none) to pin to this device. Counted over that backend's offload devices only.
final
memoryFreeBytes → int
Free device memory in bytes at enumeration time.
final
memoryTotalBytes → int
Total device memory in bytes.
final
name → String
Short device name reported by the backend (e.g. Vulkan1).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → GpuDeviceType
Device category. Integrated GPUs report shared system memory, so callers preferring dedicated VRAM should favor GpuDeviceType.discreteGpu.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited