compute.accelerator · thing ·
autotuningPolicy
A autotuning policy record carrying schema, seed, budgetUs, requiredSamples, fallbackLocalSizeX, and related state.
Describe accelerator capabilities and explicit placement boundaries.
external thing autotuningPolicyStatus: source-declared
Fields and methods (9)
text schema- Stores schema as text.
int seed- Stores seed as int.
int budgetUs- Stores budget us as int.
int requiredSamples- Stores required samples as int.
int fallbackLocalSizeX- Stores fallback local size x as int.
text cacheKeyFields- Stores cache key fields as text.
text invalidation- Stores invalidation as text.
autotuningPolicy(text schema, int seed, int budgetUs, int requiredSamples, int fallbackLocalSizeX, text cacheKeyFields, text invalidation)- Autotuning policy.
IsValid() returns bool- Is valid. Complete example
Use autotuningPolicy
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.
autotuningPolicy sample = autotuningPolicy("schema", 1, 1, 1, 1, "cache Key Fields", "invalidation")
Console.Log(Text.From(sample.schema))
project.mech
manifestVersion = "2"
package = "api.example.compute_accelerator__autotuningpolicy"
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"
autotuningPolicy.IsValid
A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.
cpu · method · source-example · type checked
using compute.accelerator
// Is valid.
autotuningPolicy instance = autotuningPolicy("schema", 1, 1, 1, 1, "cache Key Fields", "invalidation")
bool result = instance.IsValid()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.compute_accelerator__autotuningpolicy"
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:98