Open eclipse by right clicking the desktop and
selecting “eclipse (mpi)” (if you're using the
virtual machine image or remote cluster).
Go to File → New → Project.
Select “Managed Make C++ Project” under the “C”
folder in the New Project dialog.
Name the project.
Leave this dialog as it is and press “Next
>”.
Leave this dialog as it is and press “Next
>”.
Put a checkbox next to “Add MPI project settings
to this project”.
Uncheck “Use default information” and replace
both “MPI compile command” and “MPI link command”
with mpicxx.
Select the new project in the left hand menu and
go to Project → Properties.
Select “C/C++ Build” from the left hand menu.
From the “Tool Settings” tab, scroll down the menu
and select “GCC C++ Compiler”. Replace g++ with
mpicxx in the “Command” textbox to the right. Press
“Apply” and then “OK”.