Please refer to Sections 4 and 5 of the MVAPICH User Guide at:

http://mvapich.cse.ohio-state.edu/support/mvapich_user_guide.html
