tilus.ir.layout.global_row_major

tilus.ir.layout.global_row_major

tilus.ir.layout.global_row_major(*shape)[source]

Create a global layout with row-major order.

Parameters:

shape (Sequence[Expr | int]) – The shape of the global tensor. Each dimension can be an expression of grid-invariant expression, or a constant integer.

Returns:

ret – A global layout with the specified shape in row-major order.

Return type:

GlobalLayout