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

append_amd_hints

def append_amd_hints(mut ker: List[ScheduleEntry], body: List[OpDesc], config: PipelineConfig, hints: AMDScheduleHints)

Append AMD schedule_group_barrier hints to a kernel entry list.

Args:

  • ​ker (List[ScheduleEntry]): The kernel entry list to append SCHED_GROUP_BARRIER entries to.
  • ​body (List[OpDesc]): The body operations used to count fragment loads and split loop-carried vs non-loop-carried frags.
  • ​config (PipelineConfig): The pipeline config, read for loop_carried.selector to identify the loop-carried fragment load subtile.
  • ​hints (AMDScheduleHints): Hardware expansion factors (MMA grid, tile sizes, store counts) used to compute per-op interleaving ratios.

Was this page helpful?