Expand description
Compilation targets. A Target describes the device and options code is compiled for, as an
instance of a registered TargetKind; it is created from a tag, a kind name or a config.
Structs§
- Target
- A compilation target: its
kind, thekeysthat classify it, such ascpu, theattrsof its options, and an optionalhosttarget for the code that runs on the host. A target may come from a registeredtag, such asnvidia/nvidia-a100. - Target
Kind - A kind of target, such as
llvmorcuda: itsname, the options it takes, and the device type and keys of its targets by default. - Target
Kind Obj - The object behind
TargetKind. - Target
Obj - The object behind
Target.
Functions§
- build
- Generate the code of
modulewith the code generatortarget.build.<kind>, such asllvm,c,cuda,cuda_hostornvptx. - list_
tags - Return the registered target tags, with their targets (
target.TargetTagListTags). - register_
tag - Register the tag
namefor the targetconfigdescribes, replacing a previous one only ifoverride_, and return that target (target.TargetTagAddTag).