IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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 function

print_entry

print_entry(prefix: StringSlice[StaticConstantOrigin], idx: Int, name: StringSlice[StaticConstantOrigin], e: ScheduleEntry)

Prints one ScheduleEntry on a single line, with the caller's pre-resolved tag name.

Format: [] s= sub= k=<k_offset> wait=<wait_value> pf=<is_prefetch>

Callers resolve the tag name themselves (kernel tags are schedule-specific):

var name = (
    my_op_name(e.op.tag) if e.op.tag < 128
    else default_op_name(e.op.tag)
)
print_entry("KRN ", i, name, e)

Args:

  • ​prefix (StringSlice[StaticConstantOrigin]): Short label printed before the index (e.g. "KRN").
  • ​idx (Int): Index of the entry within its phase.
  • ​name (StringSlice[StaticConstantOrigin]): Display name for e.op.tag, resolved by the caller.
  • ​e (ScheduleEntry): The schedule entry to print.