You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We give an example where an index array is passed rather than a simple occa::range
Additionally, this @inner loop has 2 dimensions so the expected OCCA_FUNCTION should be taking in an int2 for the inner indices
API
Basic Example
Here we generate a for-loop that goes through
[0, N)
and tiled bytileSize
Indices + Multiple Dimensions
We give an example where an index array is passed rather than a simple
occa::range
Additionally, this
@inner
loop has 2 dimensions so the expectedOCCA_FUNCTION
should be taking in anint2
for the inner indicesImplementation
It would be nice to template the
forLoop<outerSize, innerSize>
to avoid code repetition, but there are 2 not-so-great UX issues:intTuple<outerSize>
->int
/int2
/int3
run
that I'm aware ofWe can also add
tile
methods to make it simple to generate the outer/inner loop combinationsThe text was updated successfully, but these errors were encountered: