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

<!-- 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)/[cpu](cpu.md)

# cpu

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

`cpu()` is every core; `cpu(i)` is socket `i`.