Things needed for memory modeling automatic generation of tests
branch name: tiling_loop_generation
file name: scripts/test_generating_code.py
TODO: @Ritvik1sharma needs to split this into test_generating_code_mem.py and test_generating_code_ideal.py. Also test_generating_code_mem.py should call test_generating_code_ideal.py to generate the inner-most loop.
Needed from pre-tiling scripts
Generate format arrays (seg/crd for sparse, dim for dense) for EACH level of the memory hierarchy. Must follow the same naming convention as @Ritvik1sharma's convention
Change naming convention nested file structure for pre-tiled tiles. I.e. i00_k00_i0_k0 --> i00_k00/i0_k0
Make sure to give crd array for tile file names that goes from ref --> crd tuple
Compiler
Name of expressions/test
Input tensor list and result tensor at the top of the SAM graph (where formats are given). I.e. in_tensors="B(i,k),C(k,j)" and out_tensors="X(i,j)"
For next steps/future work with different tiling index reorderings:
Either need 1) a database of all "input iteration" permutations for orders 1, 2, 3, ...
or 2) Need the compiler to generate the "input iteration" graph for each level that's a different index ordering
Things needed for memory modeling automatic generation of tests branch name: tiling_loop_generation file name: scripts/test_generating_code.py
TODO: @Ritvik1sharma needs to split this into test_generating_code_mem.py and test_generating_code_ideal.py. Also test_generating_code_mem.py should call test_generating_code_ideal.py to generate the inner-most loop.
Needed from pre-tiling scripts
Compiler
For next steps/future work with different tiling index reorderings: Either need 1) a database of all "input iteration" permutations for orders 1, 2, 3, ... or 2) Need the compiler to generate the "input iteration" graph for each level that's a different index ordering