Patent ID: 8924946

Claim:
A method executed by at least one processor device comprising: analyzing, using a compiler operated by the at least one processor device, one or more programming code segments to automatically recognize code fragments that correspond to one or more optimal code fragments for detecting that the one or more programming code segments need to be replaced, wherein the one or more optimal code fragments are one of point-to-point communication fragments and all-to-all communication fragments; accessing one or more programming libraries; identifying one or more inferior code fragments that correspond to one or more optimal code fragments within the one or more programming libraries; ascertaining what is being accomplished by the one or more programming code segments; determining if the one or more optimal code fragments is a correct type of code fragment for replacement and whether it is safe to replace the one or more inferior code fragments with the one or more optimal code fragments that are the correct type of code fragment using predetermined safety criteria; and replacing the one or more inferior code fragments with the one or more optimal code fragments, wherein the one or more code segments are analyzed by a compiler, and if the compiler is not able to analyze the one or more code segments then option Message Passing Interface (MPI) library routine is utilized.