# autotuningCacheRecord

A autotuning cache record record carrying schema, kernelIdentity, compilerIdentity, deviceIdentity, driverIdentity, and related state.

Last updated: 2026-09-09

Package: compute.accelerator | Status: source-declared

Tags: accelerator, compute, compute.accelerator, cpu, method, source-example, thing, yeho

Describe accelerator capabilities and explicit placement boundaries.

```yh
external thing autotuningCacheRecord
```

- text schema: Stores schema as text.
- text kernelIdentity: Stores kernel identity as text.
- text compilerIdentity: Stores compiler identity as text.
- text deviceIdentity: Stores device identity as text.
- text driverIdentity: Stores driver identity as text.
- text policyIdentity: Stores policy identity as text.
- int selectedLocalSizeX: Stores selected local size x as int.
- autotuningCacheRecord(text schema, text kernelIdentity, text compilerIdentity, text deviceIdentity, text driverIdentity, text policyIdentity, int selectedLocalSizeX): Autotuning cache record.
- Matches(text kernelIdentity, text compilerIdentity, text deviceIdentity, text driverIdentity, text policyIdentity) returns bool: Matches.

## Use autotuningCacheRecord

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

Verification: type checked

```yh
using compute.accelerator

// Describe accelerator capabilities and explicit placement boundaries.
autotuningCacheRecord sample = autotuningCacheRecord("schema", "kernel Identity", "compiler Identity", "device Identity", "driver Identity", "policy Identity", 1)
Console.Log(Text.From(sample.schema))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_accelerator__autotuningcacherecord"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.accelerator"
version = "0.1.0"
path = "../../../yeho/packages/compute/accelerator"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.accelerator--autotuningCacheRecord/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## autotuningCacheRecord.Matches

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.accelerator

// Matches.
autotuningCacheRecord instance = autotuningCacheRecord("schema", "kernel Identity", "compiler Identity", "device Identity", "driver Identity", "policy Identity", 1)
text argument_kernelIdentity = "argument kernel Identity"
text argument_compilerIdentity = "argument compiler Identity"
text argument_deviceIdentity = "argument device Identity"
text argument_driverIdentity = "argument driver Identity"
text argument_policyIdentity = "argument policy Identity"
bool result = instance.Matches(argument_kernelIdentity, argument_compilerIdentity, argument_deviceIdentity, argument_driverIdentity, argument_policyIdentity)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_accelerator__autotuningcacherecord"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.accelerator"
version = "0.1.0"
path = "../../../yeho/packages/compute/accelerator"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.accelerator--autotuningCacheRecord/method-Matches-8 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

Source: yeho/packages/compute/accelerator/accelerator.yh

AI training permission: https://demonhunterlabs.com/ai-use
