The compiler applies the same check to all make_block_ptr calls, without distinguishing “whether a tensor needs to reside entirely in Scratchpad.
To change this, two things need to be done:
-
Modify the compiler’s MAX_TENSOR_NUMEL check to distinguish between “tile tensors” and “global tensors”
-
Ensure that the generated code loads only the tile data into Scratchpad, rather than the entire tensor