{"id":"compute.accelerator--autotuningCacheRecord","name":"autotuningCacheRecord","owner":"yeho","package":"compute.accelerator","kind":"thing","signature":"external thing autotuningCacheRecord","description":"A autotuning cache record record carrying schema, kernelIdentity, compilerIdentity, deviceIdentity, driverIdentity, 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":"kernelIdentity","kind":"field","type":"text","description":"Stores kernel identity as text.","signature":"text kernelIdentity","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"compilerIdentity","kind":"field","type":"text","description":"Stores compiler identity as text.","signature":"text compilerIdentity","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"deviceIdentity","kind":"field","type":"text","description":"Stores device identity as text.","signature":"text deviceIdentity","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"driverIdentity","kind":"field","type":"text","description":"Stores driver identity as text.","signature":"text driverIdentity","tags":["thing","field","compute.accelerator"],"updated":"2026-09-09"},{"name":"policyIdentity","kind":"field","type":"text","description":"Stores policy identity as text.","signature":"text policyIdentity","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":"autotuningCacheRecord","kind":"constructor","parameters":[{"name":"schema","type":"text","description":"Schema."},{"name":"kernelIdentity","type":"text","description":"Kernel identity."},{"name":"compilerIdentity","type":"text","description":"Compiler identity."},{"name":"deviceIdentity","type":"text","description":"Device identity."},{"name":"driverIdentity","type":"text","description":"Driver identity."},{"name":"policyIdentity","type":"text","description":"Policy identity."},{"name":"selectedLocalSizeX","type":"int","description":"Selected local size x."}],"returns":"void","signature":"autotuningCacheRecord(text schema, text kernelIdentity, text compilerIdentity, text deviceIdentity, text driverIdentity, text policyIdentity, int selectedLocalSizeX)","description":"Autotuning cache record.","tags":["thing","constructor","compute.accelerator"],"updated":"2026-09-09"},{"name":"Matches","kind":"method","parameters":[{"name":"kernelIdentity","type":"text","description":"Kernel identity."},{"name":"compilerIdentity","type":"text","description":"Compiler identity."},{"name":"deviceIdentity","type":"text","description":"Device identity."},{"name":"driverIdentity","type":"text","description":"Driver identity."},{"name":"policyIdentity","type":"text","description":"Policy identity."}],"returns":"bool","signature":"Matches(text kernelIdentity, text compilerIdentity, text deviceIdentity, text driverIdentity, text policyIdentity) returns bool","description":"Matches.","tags":["thing","method","compute.accelerator"],"exampleId":"method-Matches-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":145,"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 autotuningCacheRecord","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.\nautotuningCacheRecord sample = autotuningCacheRecord(\"schema\", \"kernel Identity\", \"compiler Identity\", \"device Identity\", \"driver Identity\", \"policy Identity\", 1)\nConsole.Log(Text.From(sample.schema))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_accelerator__autotuningcacherecord\"\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":"91a04a2a6c820187894fa705bfc59e3aae550ef03cb8052904a2ca2c98528e3c","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Matches-8","title":"autotuningCacheRecord.Matches","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.accelerator\n\n// Matches.\nautotuningCacheRecord instance = autotuningCacheRecord(\"schema\", \"kernel Identity\", \"compiler Identity\", \"device Identity\", \"driver Identity\", \"policy Identity\", 1)\ntext argument_kernelIdentity = \"argument kernel Identity\"\ntext argument_compilerIdentity = \"argument compiler Identity\"\ntext argument_deviceIdentity = \"argument device Identity\"\ntext argument_driverIdentity = \"argument driver Identity\"\ntext argument_policyIdentity = \"argument policy Identity\"\nbool result = instance.Matches(argument_kernelIdentity, argument_compilerIdentity, argument_deviceIdentity, argument_driverIdentity, argument_policyIdentity)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_accelerator__autotuningcacherecord\"\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":"a5cd121e46fc3afbeda9ddf2a39e59d7adee31d69cb7613bfd8f47a222523a47","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["schema","kernelIdentity","compilerIdentity","deviceIdentity","driverIdentity","policyIdentity","selectedLocalSizeX","autotuningCacheRecord","Matches"],"url":"https://demonhunterlabs.com/academy/api?item=compute.accelerator--autotuningCacheRecord","json":"https://demonhunterlabs.com/reference/items/compute.accelerator--autotuningCacheRecord.json","markdown":"https://demonhunterlabs.com/reference/text/compute.accelerator--autotuningCacheRecord.md"}
