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

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

//[clika-runtime](../../../index.md)/[io.clika.modelverse](../index.md)/[Modelverse](index.md)/[deviceMemory](deviceMemory.md)

# deviceMemory

[common]\
fun [deviceMemory](deviceMemory.md)(device: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)): [DeviceMemory](../DeviceMemory/index.md)

A device's memory as the runtime reads it: [device](deviceMemory.md) in the runtime's own spelling (`cpu`, `cuda:0`, `vulkan:0`). A device the runtime cannot read refuses with [ModelverseException](../ModelverseException/index.md).