Skip to main content

//clika-runtime/io.clika.runtime/DeviceKind

DeviceKind

[common]
enum DeviceKind : Enum<DeviceKind>

Where a device sits relative to the host: an integrated GPU shares the host's memory (phones, Jetson boards, Apple silicon), a discrete one has its own, the CPU is the host itself; UNKNOWN when the backend reports no kind.

Entries​

UNKNOWN[common]
UNKNOWN
CPU[common]
CPU
INTEGRATED_GPU[common]
INTEGRATED_GPU
DISCRETE_GPU[common]
DISCRETE_GPU
VIRTUAL_GPU[common]
VIRTUAL_GPU
ACCELERATOR[common]
ACCELERATOR

Types​

NameSummary
Companion[common]
object Companion

Properties​

NameSummary
code[common]
val code: Int
name[common]
val name: String
ordinal[common]
val ordinal: Int

Functions​

NameSummary
valueOf[common]
fun valueOf(value: String): DeviceKind
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values[common]
fun values(): Array<DeviceKind>
Returns an array containing the constants of this enum type, in the order they're declared.