{"id":"compute.accelerator--autotuningCandidate","name":"autotuningCandidate","owner":"yeho","package":"compute.accelerator","kind":"thing","signature":"external thing autotuningCandidate","description":"A autotuning candidate record carrying localSizeX, parityPassed, medianKernelUs, minimumKernelUs, maximumKernelUs, and related state.","context":"Describe accelerator capabilities and explicit placement boundaries.","parameters":[],"returns":"void","members":[{"name":"localSizeX","kind":"field","type":"int","description":"Stores local size x as int.","signature":"int localSizeX","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"parityPassed","kind":"field","type":"bool","description":"Stores parity passed as bool.","signature":"bool parityPassed","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":"minimumKernelUs","kind":"field","type":"int","description":"Stores minimum kernel us as int.","signature":"int minimumKernelUs","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"maximumKernelUs","kind":"field","type":"int","description":"Stores maximum kernel us as int.","signature":"int maximumKernelUs","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"sampleCount","kind":"field","type":"int","description":"Stores sample count as int.","signature":"int sampleCount","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"rejection","kind":"field","type":"text","description":"Stores rejection as text.","signature":"text rejection","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"autotuningCandidate","kind":"constructor","parameters":[{"name":"localSizeX","type":"int","description":"Local size x."},{"name":"parityPassed","type":"bool","description":"Parity passed."},{"name":"medianKernelUs","type":"int","description":"Median kernel us."},{"name":"minimumKernelUs","type":"int","description":"Minimum kernel us."},{"name":"maximumKernelUs","type":"int","description":"Maximum kernel us."},{"name":"sampleCount","type":"int","description":"Sample count."},{"name":"rejection","type":"text","description":"Rejection."}],"returns":"void","signature":"autotuningCandidate(int localSizeX, bool parityPassed, int medianKernelUs, int minimumKernelUs, int maximumKernelUs, int sampleCount, text rejection)","description":"Autotuning candidate.","tags":["thing","constructor","compute.accelerator"],"updated":"2026-09-09"},{"name":"IsAdmissible","kind":"method","parameters":[{"name":"requiredSamples","type":"int","description":"Required samples."},{"name":"budgetUs","type":"int","description":"Budget us."}],"returns":"bool","signature":"IsAdmissible(int requiredSamples, int budgetUs) returns bool","description":"Is admissible.","tags":["thing","method","compute.accelerator"],"exampleId":"method-IsAdmissible-8","updated":"2026-09-09"},{"name":"SpreadUs","kind":"method","parameters":[],"returns":"int","signature":"SpreadUs() returns int","description":"Spread us.","tags":["thing","method","compute.accelerator"],"exampleId":"method-SpreadUs-9","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":66,"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 autotuningCandidate","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.\nautotuningCandidate sample = autotuningCandidate(1, true, 1, 1, 1, 1, \"rejection\")\nConsole.Log(Text.From(sample.localSizeX))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_accelerator__autotuningcandidate\"\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":"d5c4b398129be1df5602d53a51911979ad647285a8fec36c28339eb9dd809018","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-IsAdmissible-8","title":"autotuningCandidate.IsAdmissible","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 admissible.\nautotuningCandidate instance = autotuningCandidate(1, true, 1, 1, 1, 1, \"rejection\")\nint argument_requiredSamples = 1\nint argument_budgetUs = 1\nbool result = instance.IsAdmissible(argument_requiredSamples, argument_budgetUs)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_accelerator__autotuningcandidate\"\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":"1ab5bd2129d4c50dc0ac8a6a5f75c2c0575e70612d39e26f77e412f0dd94ac1f","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-SpreadUs-9","title":"autotuningCandidate.SpreadUs","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.accelerator\n\n// Spread us.\nautotuningCandidate instance = autotuningCandidate(1, true, 1, 1, 1, 1, \"rejection\")\nint result = instance.SpreadUs()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_accelerator__autotuningcandidate\"\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":"142d876ce74c8ef977d225dfcda6b8eb7f39cf0b2cdd538dde72938882b4971a","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["localSizeX","parityPassed","medianKernelUs","minimumKernelUs","maximumKernelUs","sampleCount","rejection","autotuningCandidate","IsAdmissible","SpreadUs"],"url":"https://demonhunterlabs.com/academy/api?item=compute.accelerator--autotuningCandidate","json":"https://demonhunterlabs.com/reference/items/compute.accelerator--autotuningCandidate.json","markdown":"https://demonhunterlabs.com/reference/text/compute.accelerator--autotuningCandidate.md"}
