A method is disclosed for optimizing an MPI procedure by altering to a
procedure other than the MPI procedure invocation portion or by altering
the execution sequence. In this method of optimizing a program that uses
MPI during compiling, optimization of an MPI procedure is realized by
detecting an MPI procedure invocation portion within a received source
program, and then altering the MPI procedure invocation portion to a
procedure other than the detected MPI procedure invocation portion or by
altering the execution sequence.