{"id":"compute.device--ResolveDevicePlacement","name":"ResolveDevicePlacement","owner":"yeho","package":"compute.device","kind":"function","signature":"external ResolveDevicePlacement(text workload, text requestedBackend) returns devicePlacementPlan","description":"Resolve device placement.","context":"Inspect device capability catalogs and model resource lifetimes and placement decisions.","parameters":[{"name":"workload","type":"text","description":"Supply workload as text."},{"name":"requestedBackend","type":"text","description":"Supply requested backend as text."}],"returns":"devicePlacementPlan","members":[],"tags":["compute","compute.device","cpu","device","function","source-example","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/device/device.yh","line":651,"sha256":"d567cec5c410960532c93c94cdb489280cbff52cec7785f98104cb8cd3ee181c"},"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 ResolveDevicePlacement","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.device\n\n// Inspect device capability catalogs and model resource lifetimes and placement decisions.\ntext workload = \"workload\"\ntext requestedBackend = \"requested Backend\"\ndevicePlacementPlan result = ResolveDevicePlacement(workload, requestedBackend)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__resolvedeviceplacement\"\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.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":"a8448bfb304594a0031ae08937b0218937eba805c4559fa541f78c157addfc94","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=compute.device--ResolveDevicePlacement","json":"https://demonhunterlabs.com/reference/items/compute.device--ResolveDevicePlacement.json","markdown":"https://demonhunterlabs.com/reference/text/compute.device--ResolveDevicePlacement.md"}
