MPI is distributed memory. It has only a limited concept of shared memory processing. If shared memory plays an important role in the performance of your program, I suggest you study OpenMP ; both can be combined in one application. (Ie, each node will work, ideally, with one OpenMP-based process that will communicate with other instances via MPI.)
source
share