For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
arch
def arch(value: StringLiteral) -> PlatformPredicate[comptime[label: KGENString, api: KGENString, arch: KGENString, model: KGENString] identical(arch, value.value)]
Returns a platform predicate that holds when the device architecture equals value.
Args:
- value (
StringLiteral): The device architecture, such as"sm_100a"or"gfx942".
Returns:
PlatformPredicate[comptime[label: KGENString, api: KGENString, arch: KGENString, model: KGENString] identical(arch, value.value)]: The platform predicate.