---
title: "DeviceKind"
sidebar_label: "DeviceKind"
description: "Kotlin binding reference: DeviceKind."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[DeviceKind](index.md)

# DeviceKind

[common]\
enum [DeviceKind](index.md) : [Enum](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-enum/index.html)&lt;[DeviceKind](index.md)&gt; 

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](UNKNOWN/index.md) when the backend reports no kind.

## Entries

| | |
|---|---|
| [UNKNOWN](UNKNOWN/index.md) | [common]<br>[UNKNOWN](UNKNOWN/index.md) |
| [CPU](CPU/index.md) | [common]<br>[CPU](CPU/index.md) |
| [INTEGRATED_GPU](INTEGRATED_GPU/index.md) | [common]<br>[INTEGRATED_GPU](INTEGRATED_GPU/index.md) |
| [DISCRETE_GPU](DISCRETE_GPU/index.md) | [common]<br>[DISCRETE_GPU](DISCRETE_GPU/index.md) |
| [VIRTUAL_GPU](VIRTUAL_GPU/index.md) | [common]<br>[VIRTUAL_GPU](VIRTUAL_GPU/index.md) |
| [ACCELERATOR](ACCELERATOR/index.md) | [common]<br>[ACCELERATOR](ACCELERATOR/index.md) |

## Types

| Name | Summary |
|---|---|
| [Companion](Companion/index.md) | [common]<br>object [Companion](Companion/index.md) |

## Properties

| Name | Summary |
|---|---|
| [code](code.md) | [common]<br>val [code](code.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) |
| [name](../PaddingSide/LEFT/index.md) | [common]<br>val [name](../PaddingSide/LEFT/index.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) |
| [ordinal](../PaddingSide/LEFT/index.md) | [common]<br>val [ordinal](../PaddingSide/LEFT/index.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) |

## Functions

| Name | Summary |
|---|---|
| [valueOf](valueOf.md) | [common]<br>fun [valueOf](valueOf.md)(value: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)): [DeviceKind](index.md)<br>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](values.md) | [common]<br>fun [values](values.md)(): [Array](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html)&lt;[DeviceKind](index.md)&gt;<br>Returns an array containing the constants of this enum type, in the order they're declared. |