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

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

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

# DeviceReport

[common]\
data class [DeviceReport](index.md)(val index: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), val name: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), val totalMemoryBytes: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html))

One compute device of a backend, as the hardware inventory lists it.

## Constructors

| | |
|---|---|
| [DeviceReport](DeviceReport.md) | [common]<br>constructor(index: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), name: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), totalMemoryBytes: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)) |

## Properties

| Name | Summary |
|---|---|
| [index](index-property.md) | [common]<br>val [index](index-property.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)<br>The device's ordinal under its backend (`CUDA:1` is index 1). |
| [name](name.md) | [common]<br>val [name](name.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) |
| [totalMemoryBytes](totalMemoryBytes.md) | [common]<br>val [totalMemoryBytes](totalMemoryBytes.md): [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)<br>The device's physical memory in bytes; 0 when the backend does not report it. |