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

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

//[clika-runtime](../../../../index.md)/[io.clika.runtime](../../index.md)/[Device](../index.md)/[Companion](index.md)/[gpu](gpu.md)

# gpu

[common]\
fun [gpu](gpu.md)(index: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) = 0): [Device](../index.md)

The generic accelerator: the first GPU backend that loads and exposes a device on this host, else the CPU (said once at warning level on the runtime's log channel).