IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /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. /get-started.md).

Mojo function

wmma_acc_row

def wmma_acc_row(elem: Int, lane_half: Int) -> Int

Row of WMMA C/D element elem held by a lane in half lane_half.

RDNA3 (gfx11) interleaves the two lane halves: row = elem2 + lane_half. RDNA4 (gfx12) gives lanes 0-15 rows 0-7 and lanes 16-31 rows 8-15: row = elem + 8lane_half.

Args:

  • ​elem (Int): Index of the element in the lane's C/D fragment.
  • ​lane_half (Int): lane // 16.

Returns:

Int

Was this page helpful?