| CPC G06F 3/0659 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0673 (2013.01); G06F 9/30043 (2013.01); G06F 9/30098 (2013.01); G06F 9/30145 (2013.01)] | 20 Claims |

|
1. A method for writing data to a memory, the method comprising:
for a first iteration of a first loop in a first dimension, receiving a first block of data comprising a plurality of elements;
receiving a total byte count for the first loop;
receiving a width value associated with the first loop;
determining that the total byte count for the first loop exceeds the width value;
disabling a first portion of the first block of data in response to determining that the total byte count exceeds the width value;
enabling a second portion of the first block of data in response to determining that the total byte count exceeds the width value; and
writing only the second portion of the first block of data to the memory.
|