Skip to main content

//clika-runtime/io.clika.runtime/ComputeApi

ComputeApi

[common]
enum ComputeApi : Enum<ComputeApi>

The compute backend a device dispatches through.

Entries​

CPU[common]
CPU
CUDA[common]
CUDA
VULKAN[common]
VULKAN
METAL[common]
METAL
HTP[common]
HTP
TPU[common]
TPU

Types​

NameSummary
Companion[common]
object Companion

Properties​

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

Functions​

NameSummary
valueOf[common]
fun valueOf(value: String): ComputeApi
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<ComputeApi>
Returns an array containing the constants of this enum type, in the order they're declared.