1. A computer implemented method for increasing performance of an operation on a distributed memory machine, the computer implemented method comprising: transforming asynchronous parallel steps in the operation into synchronous parallel steps by analyzing a sequence of steps executed by each processor in a plurality of processors, dividing each processor step in the sequence of steps into a chunk of instructions so that each shared memory access is a particular instruction chunk, aligning processor instruction chunks from each thread in a plurality of threads, and introducing artificial synchronization among the processor instruction chunks by inserting dummy processor instructions where required to facilitate alignment of the processor instruction chunks; rearranging the synchronous parallel steps of the operation to generate an altered operation that schedules memory accesses for increasing locality of reference by partitioning a target memory access array into a plurality of blocks, and assigning each block in the target memory access array to a different virtual thread in a plurality of threads; mapping the altered operation that schedules memory accesses for increasing locality of reference onto the distributed memory machine; and executing the altered operation on the distributed memory machine to simulate local memory accesses with virtual threads to check cache performance within each node of the distributed memory machine.