Skip to main content

//clika-runtime/io.clika.runtime/DeviceProperties

DeviceProperties

[jvm]
data class DeviceProperties(val name: String, val kind: Int, val driverVersion: String, val backendRuntimeVersion: String, val smCount: Int, val computeCapabilityMajor: Int, val computeCapabilityMinor: Int, val warpSize: Int, val maxThreadsPerBlock: Int, val sharedMemoryPerBlockBytes: Long, val totalMemoryBytes: Long, val hasTensorCores: Boolean, val supportsFp16: Boolean, val supportsBf16: Boolean, val supportsFp8E4m3: Boolean, val unavailableReason: String)

A device's static capabilities (see Backends.properties). kind is a ClikaRtGen.DEVICE_KIND_* value: 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; DEVICE_KIND_UNKNOWN when the backend reports no kind. A field the backend does not report is 0 / false / "". unavailableReason is empty when the device serves.

Constructors​

DeviceProperties[jvm]
constructor(name: String, kind: Int, driverVersion: String, backendRuntimeVersion: String, smCount: Int, computeCapabilityMajor: Int, computeCapabilityMinor: Int, warpSize: Int, maxThreadsPerBlock: Int, sharedMemoryPerBlockBytes: Long, totalMemoryBytes: Long, hasTensorCores: Boolean, supportsFp16: Boolean, supportsBf16: Boolean, supportsFp8E4m3: Boolean, unavailableReason: String)

Properties​

NameSummary
backendRuntimeVersion[jvm]
val backendRuntimeVersion: String
computeCapabilityMajor[jvm]
val computeCapabilityMajor: Int
computeCapabilityMinor[jvm]
val computeCapabilityMinor: Int
driverVersion[jvm]
val driverVersion: String
hasTensorCores[jvm]
val hasTensorCores: Boolean
kind[jvm]
val kind: Int
kindName[jvm]
val kindName: String
kind as a word.
maxThreadsPerBlock[jvm]
val maxThreadsPerBlock: Int
name[jvm]
val name: String
sharedMemoryPerBlockBytes[jvm]
val sharedMemoryPerBlockBytes: Long
smCount[jvm]
val smCount: Int
supportsBf16[jvm]
val supportsBf16: Boolean
supportsFp16[jvm]
val supportsFp16: Boolean
supportsFp8E4m3[jvm]
val supportsFp8E4m3: Boolean
totalMemoryBytes[jvm]
val totalMemoryBytes: Long
unavailableReason[jvm]
val unavailableReason: String
warpSize[jvm]
val warpSize: Int