For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo struct
TargetProfile
struct TargetProfile
Unified hardware target description.
The algorithm declares WHAT ops exist (logical op table). The
TargetProfile describes HOW the hardware executes them. Platform-
specific factories (e.g., mi355x_target() in amd_target.mojo) provide
both from a single call β no redundant configuration.
Usage:
# Platform-specific factory (from amd_target):
comptime target = mi355x_target()
var annotated = annotate_ops(logical_ops, target.cost_model)
var config = target.pipelineFieldsβ
- βcost_model (
TargetCostModel): Per-op costs (resource, latency, role). - βpipeline (
PipelineConfig): Pipeline structure (depth, MMA grid, buffer strategy).
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable
Methodsβ
__init__β
def __init__(out self, cost_model: TargetCostModel, pipeline: PipelineConfig)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!