coder.loop.tile
Description
coder.loop.tile("
prompts the code generator to apply a tile transform the loop with loop index name
loopID
",tileSize
,"tiledLoopId
")loopID
in the generated code. This creates an outer loop that is tiled
according to the tileSize
value and the inner loop index is set to the
value of loopID
.
Use this transform to reduce iteration space of a loop into smaller blocks. This involves partitioning a large array from memory into smaller blocks that fit into your cache size. Use this transform when you have limited cache availability.
For more information about loop optimizations, see Optimize Loops in Generated Code.
creates a loop control object with loopObj
= coder.loop.tile(___)transformSchedule
property set to
coder.loop.tile
. Use the apply
method to apply the
transform to the specified loop.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2023a