compute.accelerator · function ·

SelectAutotuningCandidate

Select autotuning candidate.

acceleratorcomputecompute.acceleratorcpufunctionsource-exampleyeho

Describe accelerator capabilities and explicit placement boundaries.

external SelectAutotuningCandidate(list of autotuningCandidate candidates, autotuningPolicy policy) returns autotuningDecision

Status: source-declared

Parameters

list of autotuningCandidate candidates
Supply candidates as list of autotuningCandidate.
autotuningPolicy policy
Supply policy as autotuningPolicy.

Use SelectAutotuningCandidate

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

using compute.accelerator

// Describe accelerator capabilities and explicit placement boundaries.
list of autotuningCandidate candidates = []
autotuningPolicy policy = autotuningPolicy("schema", 1, 1, 1, 1, "cache Key Fields", "invalidation")
autotuningDecision result = SelectAutotuningCandidate(candidates, policy)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.compute_accelerator__selectautotuningcandidate"
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"
Notes and source

Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

yeho/packages/compute/accelerator/accelerator.yh:194