Currently, the reverse cache read/write will allocate a temporary buffer whose dimension order was determined by the order of iter vars in the block.
However, user might customize the storage of allocated buffers (e.g. the default dimension order might be [N, M] but the user needs an [M, N] storage instead).
Solution
Add an argument dim_order=[0, 2, 1] which accepts a list of integers, which specifies the order of dimensions in allocated buffers. The numbers in provided dimension order list indicate the block itervar index.
Problem
Currently, the reverse cache read/write will allocate a temporary buffer whose dimension order was determined by the order of iter vars in the block.
However, user might customize the storage of allocated buffers (e.g. the default dimension order might be
[N, M]
but the user needs an[M, N]
storage instead).Solution
Add an argument
dim_order=[0, 2, 1]
which accepts a list of integers, which specifies the order of dimensions in allocated buffers. The numbers in provided dimension order list indicate the block itervar index.