//clika-runtime/io.clika.modelverse/DeviceMemory
DeviceMemory
[common]
data class DeviceMemory(val device: String, val totalBytes: Long, val freeBytes: Long, val runtimeBytes: Long, val activeBytes: Long)
A device's memory as the runtime reads it (Modelverse.deviceMemory): the physical total, what is free, the runtime's own share and the pool bytes in use.
Constructors
| DeviceMemory | [common] constructor(device: String, totalBytes: Long, freeBytes: Long, runtimeBytes: Long, activeBytes: Long) |
Properties
| Name | Summary |
|---|---|
| activeBytes | [common] val activeBytes: Long |
| device | [common] val device: String The device as the library labels it, <Api>:<index> (CPU:-1 for the whole machine's cpu, CUDA:0). |
| freeBytes | [common] val freeBytes: Long |
| runtimeBytes | [common] val runtimeBytes: Long |
| totalBytes | [common] val totalBytes: Long |