{"id":"compute.accelerator--autotuningPolicy","name":"autotuningPolicy","owner":"yeho","package":"compute.accelerator","kind":"thing","signature":"external thing autotuningPolicy","description":"A autotuning policy record carrying schema, seed, budgetUs, requiredSamples, fallbackLocalSizeX, 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":"seed","kind":"field","type":"int","description":"Stores seed as int.","signature":"int seed","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"budgetUs","kind":"field","type":"int","description":"Stores budget us as int.","signature":"int budgetUs","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"requiredSamples","kind":"field","type":"int","description":"Stores required samples as int.","signature":"int requiredSamples","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"fallbackLocalSizeX","kind":"field","type":"int","description":"Stores fallback local size x as int.","signature":"int fallbackLocalSizeX","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"cacheKeyFields","kind":"field","type":"text","description":"Stores cache key fields as text.","signature":"text cacheKeyFields","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"invalidation","kind":"field","type":"text","description":"Stores invalidation as text.","signature":"text invalidation","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"autotuningPolicy","kind":"constructor","parameters":[{"name":"schema","type":"text","description":"Schema."},{"name":"seed","type":"int","description":"Seed."},{"name":"budgetUs","type":"int","description":"Budget us."},{"name":"requiredSamples","type":"int","description":"Required samples."},{"name":"fallbackLocalSizeX","type":"int","description":"Fallback local size x."},{"name":"cacheKeyFields","type":"text","description":"Cache key fields."},{"name":"invalidation","type":"text","description":"Invalidation."}],"returns":"void","signature":"autotuningPolicy(text schema, int seed, int budgetUs, int requiredSamples, int fallbackLocalSizeX, text cacheKeyFields, text invalidation)","description":"Autotuning policy.","tags":["thing","constructor","compute.accelerator"],"updated":"2026-09-09"},{"name":"IsValid","kind":"method","parameters":[],"returns":"bool","signature":"IsValid() returns bool","description":"Is valid.","tags":["thing","method","compute.accelerator"],"exampleId":"method-IsValid-8","updated":"2026-09-09"}],"tags":["accelerator","compute","compute.accelerator","cpu","method","source-example","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/accelerator/accelerator.yh","line":98,"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 autotuningPolicy","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.\nautotuningPolicy sample = autotuningPolicy(\"schema\", 1, 1, 1, 1, \"cache Key Fields\", \"invalidation\")\nConsole.Log(Text.From(sample.schema))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_accelerator__autotuningpolicy\"\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":"86b003b7ef84a1c2c1fcc624f5bc9c3f5435391b90683afa07e51cd049ae5c02","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-IsValid-8","title":"autotuningPolicy.IsValid","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.accelerator\n\n// Is valid.\nautotuningPolicy instance = autotuningPolicy(\"schema\", 1, 1, 1, 1, \"cache Key Fields\", \"invalidation\")\nbool result = instance.IsValid()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_accelerator__autotuningpolicy\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"a86a422194dc1d4e9bcfca88fe144675e7183161373536d4b74fabfe97d5bace","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["schema","seed","budgetUs","requiredSamples","fallbackLocalSizeX","cacheKeyFields","invalidation","autotuningPolicy","IsValid"],"url":"https://demonhunterlabs.com/academy/api?item=compute.accelerator--autotuningPolicy","json":"https://demonhunterlabs.com/reference/items/compute.accelerator--autotuningPolicy.json","markdown":"https://demonhunterlabs.com/reference/text/compute.accelerator--autotuningPolicy.md"}
