No, MPI does not support shared memory support. In fact, MPI would not want to support shared memory. The reason is that a program written using MPI must scale for a large number of processors, and a large number of processors never have shared memory.
However, it can often happen that groups of a small number of processors (in this set of a large number of processors) share a common memory. However, OpenMP is used to use this shared memory.
OpenMP is very simple. I highly recommend you study it.
Shahbaz
source share