compute.simd · function ·

TargetSupportsCapability

Target supports capability.

computecompute.simdcpufunctionsimdsource-exampleyeho

Describe and exercise bounded SIMD-style workloads and their fallback boundaries.

external TargetSupportsCapability(text target, simdCapability capability) returns bool

Status: source-declared

Parameters

text target
Supply target as text.
simdCapability capability
Supply capability as simdCapability.

Use TargetSupportsCapability

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

using compute.simd

// Describe and exercise bounded SIMD-style workloads and their fallback boundaries.
text target = "target"
simdCapability capability = simdCapability("Nova", "target", "lane Family", 1, 1, true, "ready", "notes")
bool result = TargetSupportsCapability(target, capability)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.compute_simd__targetsupportscapability"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.simd"
version = "0.1.0"
path = "../../../yeho/packages/compute/simd"
Notes and source

Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

yeho/packages/compute/simd/simd_selection.yh:43