BackendInfo

data class BackendInfo(val backend: ComputeBackend, val name: String, val compiled: Boolean, val available: Boolean, val deviceCount: Int)(source)

One hardware backend known to the native runtime, as reported by kggml_runtime_get_backends().

Constructors

Link copied to clipboard
constructor(backend: ComputeBackend, name: String, compiled: Boolean, available: Boolean, deviceCount: Int)

Properties

Link copied to clipboard

true if the backend is usable on this device right now (compiled and a device exists).

Link copied to clipboard

the ComputeBackend this entry describes (never ComputeBackend.AUTO).

Link copied to clipboard

true if support for this backend was compiled into the runtime build.

Link copied to clipboard

number of ggml devices backing this backend (always 0 for ComputeBackend.NPU_COREML, which is a compile-time capability flag rather than a ggml device).

Link copied to clipboard

native display name, e.g. "CPU", "Metal", "Vulkan", "CoreML".