{"id":"compute.accelerator--autotuningDecision","name":"autotuningDecision","owner":"yeho","package":"compute.accelerator","kind":"thing","signature":"external thing autotuningDecision","description":"A autotuning decision record carrying schema, selectedLocalSizeX, medianKernelUs, usedFallback, correctnessProtected, and related state.","context":"Describe accelerator capabilities and explicit placement boundaries.","parameters":[],"returns":"void","members":[{"name":"schema","kind":"field","type":"text","description":"Stores schema as text.","signature":"text schema","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"selectedLocalSizeX","kind":"field","type":"int","description":"Stores selected local size x as int.","signature":"int selectedLocalSizeX","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"medianKernelUs","kind":"field","type":"int","description":"Stores median kernel us as int.","signature":"int medianKernelUs","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"usedFallback","kind":"field","type":"bool","description":"Stores used fallback as bool.","signature":"bool usedFallback","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"correctnessProtected","kind":"field","type":"bool","description":"Stores correctness protected as bool.","signature":"bool correctnessProtected","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"reason","kind":"field","type":"text","description":"Stores reason as text.","signature":"text reason","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"autotuningDecision","kind":"constructor","parameters":[{"name":"schema","type":"text","description":"Schema."},{"name":"selectedLocalSizeX","type":"int","description":"Selected local size x."},{"name":"medianKernelUs","type":"int","description":"Median kernel us."},{"name":"usedFallback","type":"bool","description":"Used fallback."},{"name":"correctnessProtected","type":"bool","description":"Correctness protected."},{"name":"reason","type":"text","description":"Reason."}],"returns":"void","signature":"autotuningDecision(text schema, int selectedLocalSizeX, int medianKernelUs, bool usedFallback, bool correctnessProtected, text reason)","description":"Autotuning decision.","tags":["thing","constructor","compute.accelerator"],"updated":"2026-09-09"}],"tags":["accelerator","compute","compute.accelerator","cpu","source-example","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/accelerator/accelerator.yh","line":125,"sha256":"4a5575b3e69481d90c2c7322dabea16851f23cdf654342127c36726c1475a86a"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use autotuningDecision","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.accelerator\n\n// Describe accelerator capabilities and explicit placement boundaries.\nautotuningDecision sample = autotuningDecision(\"schema\", 1, 1, true, true, \"reason\")\nConsole.Log(Text.From(sample.schema))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_accelerator__autotuningdecision\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.accelerator\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/accelerator\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"4e0fdf13a03ee5a2815db5b4038e92c049c575923615892dcf2c78e1b314b01c","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["schema","selectedLocalSizeX","medianKernelUs","usedFallback","correctnessProtected","reason","autotuningDecision"],"url":"https://demonhunterlabs.com/academy/api?item=compute.accelerator--autotuningDecision","json":"https://demonhunterlabs.com/reference/items/compute.accelerator--autotuningDecision.json","markdown":"https://demonhunterlabs.com/reference/text/compute.accelerator--autotuningDecision.md"}
