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

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

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Backends](index.md)/[deviceCount](deviceCount.md)

# deviceCount

[common]\
fun [deviceCount](deviceCount.md)(api: [ComputeApi](../ComputeApi/index.md)): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)

How many devices the backend exposes here (0 when it is unavailable).