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 module
platforms
Names for the platform predicates that kernel registrations use most.
Each alias is a PlatformPredicate built from the atoms in
extensibility.platform_predicates. Pass one to @extensibility.register as
cond, or combine aliases with & and |. Name a more specific platform
predicate with comptime where it is used:
comptime B200 = ACCELERATOR & CUDA & model("NVIDIA B200")comptime values
ACCELERATOR
comptime ACCELERATOR = type("gpu")
CPU
comptime CPU = type("cpu")
CUDA
comptime CUDA = (ACCELERATOR & api("cuda"))
HIP
comptime HIP = (ACCELERATOR & api("hip"))
METAL
comptime METAL = (ACCELERATOR & api("metal"))