{"id":"compute.graph--CreateGraphExecutionPlan","name":"CreateGraphExecutionPlan","owner":"yeho","package":"compute.graph","kind":"function","signature":"external CreateGraphExecutionPlan(text name, graphModel model, graphCachePolicy cachePolicy, graphFallbackPolicy fallbackPolicy, graphSchedulerRule schedulerRule, text note) returns graphExecutionPlan","description":"Create graph execution plan from the supplied values.","context":"Describe compute work as an explicit graph with package-owned validation and scheduling metadata.","parameters":[{"name":"name","type":"text","description":"Supply name as text."},{"name":"model","type":"graphModel","description":"Supply model as graphModel."},{"name":"cachePolicy","type":"graphCachePolicy","description":"Supply cache policy as graphCachePolicy."},{"name":"fallbackPolicy","type":"graphFallbackPolicy","description":"Supply fallback policy as graphFallbackPolicy."},{"name":"schedulerRule","type":"graphSchedulerRule","description":"Supply scheduler rule as graphSchedulerRule."},{"name":"note","type":"text","description":"Supply note as text."}],"returns":"graphExecutionPlan","members":[],"tags":["compute","compute.graph","cpu","function","graph","source-example","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/graph/graph.yh","line":302,"sha256":"95bb29f53014a420ab0b1dfc18800f567a8e06f197650f133522eb254009014f"},"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 CreateGraphExecutionPlan","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.graph\n\n// Describe compute work as an explicit graph with package-owned validation and scheduling metadata.\ntext name = \"Nova\"\ngraphModel model = graphModel(\"Nova\", \"model Kind\", [], [], \"note\")\ngraphCachePolicy cachePolicy = graphCachePolicy(\"key\", \"scope\", true, true, \"note\")\ngraphFallbackPolicy fallbackPolicy = graphFallbackPolicy(\"primary Path\", \"fallback Path\", \"reason\", true, true, \"note\")\ngraphSchedulerRule schedulerRule = graphSchedulerRule(\"Nova\", \"path Order\", \"fusion Rule\", \"cache Rule\", \"note\")\ntext note = \"note\"\ngraphExecutionPlan result = CreateGraphExecutionPlan(name, model, cachePolicy, fallbackPolicy, schedulerRule, note)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__creategraphexecutionplan\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.graph\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/graph\"\n\n[[dependencies]]\npackage = \"compute.kernels\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/kernels\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"bba62f7dad477c6c42232b15bd8b91dcca250d73e56f5b46626f922bbb3b65ea","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=compute.graph--CreateGraphExecutionPlan","json":"https://demonhunterlabs.com/reference/items/compute.graph--CreateGraphExecutionPlan.json","markdown":"https://demonhunterlabs.com/reference/text/compute.graph--CreateGraphExecutionPlan.md"}
