Patent Document ID: 10152310
Application ID: 14723141
Patent Status: 1

Claim One:
1. A method for compiling code to reduce memory bandwidth when processing code on a computer, comprising: automatically identifying a sequence of operations for fusing, wherein said sequence of operations correspond to instructions from a source code; determining subdivisions of a final output of said sequence of operations; analyzing at least one of said subdivisions final output; determining input data and intermediate operations, using said analyzing of said at least one of said subdivisions final output, needed to obtain a final subdivision output for each of said subdivisions; automatically generating code to fuse said sequence of operations employing said subdivisions, wherein: said automatically identifying and said automatically generating are performed by a processor; and said automatically generating includes generating code to: save said input data in a local memory; perform said intermediate operations; and save temporary results of said intermediate operations in said local memory; and generating code to save said final subdivision output for each of said subdivisions in an external memory, wherein said saving said input data in said local memory, said saving said temporary results of said intermediate operations in said local memory, and saving said final subdivision output for each of said subdivisions in said external memory reduces said memory bandwidth independent of a skill of a programmer.