compute.accelerator · thing ·
autotuningDecision
A autotuning decision record carrying schema, selectedLocalSizeX, medianKernelUs, usedFallback, correctnessProtected, and related state.
Describe accelerator capabilities and explicit placement boundaries.
external thing autotuningDecisionStatus: source-declared
Fields and methods (7)
text schema- Stores schema as text.
int selectedLocalSizeX- Stores selected local size x as int.
int medianKernelUs- Stores median kernel us as int.
bool usedFallback- Stores used fallback as bool.
bool correctnessProtected- Stores correctness protected as bool.
text reason- Stores reason as text.
autotuningDecision(text schema, int selectedLocalSizeX, int medianKernelUs, bool usedFallback, bool correctnessProtected, text reason)- Autotuning decision.
Use autotuningDecision
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.
autotuningDecision sample = autotuningDecision("schema", 1, 1, true, true, "reason")
Console.Log(Text.From(sample.schema))
project.mech
manifestVersion = "2"
package = "api.example.compute_accelerator__autotuningdecision"
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:125