Step 1: Download the MVAPICH1.19 from the http://mvapich.cse.ohio-state.edu/ . The current version at point of writing is MVAPICH2
Step 2: Compile the MPAPICH2 with intel and cuda.
# tar -zxvf mvapich2-1.9.gz # cd mvapich2-1.9 # mkdir buildmpi # ../configure --prefix=/usr/local/mvapich2-1.9-intel-cuda CC=icc CXX=icpc F77=ifort FC=ifort --with-cuda=/opt/cuda/ --with-cuda-include=/opt/cuda/include --with-cuda-libpath=/opt/cuda/lib64 # make -j8 # make install