Mojo function
parallelize_over_rows
parallelize_over_rows[func: def(Int, Int) capturing -> None](shape: IndexList[shape.size, element_type=shape.element_type], axis: Int, grain_size: Int)
Parallelize func over non-axis dims of shape.
Parameters:
- func (
def(Int, Int) capturing -> None): Function to call on range of rows.
Args:
parallelize_over_rows[FuncType: def(Int, Int) register_passable -> None](func: FuncType, shape: IndexList[shape.size, element_type=shape.element_type], axis: Int, grain_size: Int)
Parallelize func over non-axis dims of shape.
Parameters:
- FuncType (
def(Int, Int) register_passable -> None): The body function type.
Args:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!