MCPcopy Create free account
hub / github.com/KnowingNothing/MatmulTutorial / get_row_major_tuple

Function get_row_major_tuple

cutlass.py/swizzle.py:38–39  ·  view source on GitHub ↗
(xy, rows, cols)

Source from the content-addressed store, hash-verified

36 return x * cols + y
37
38 def get_row_major_tuple(xy, rows, cols):
39 return (xy // cols, xy % cols)
40
41 def get_col_major_ind(x, y, rows, cols):
42 return x + y * rows

Callers 1

test_swizzleFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_swizzleFunction · 0.68