

Then, click to run the program.Ĭonfigure the Project for Pregel+ Programming In the Application panel, set Application program as the object file under the Debug folder just compiled. Switch back to the C/C++ perspective, and click Ĭreate a new Parallel Application (not C/C++ Application), and in the Resources panel, set Number of processes as 4 to run four processes in the local machine in parallel. If the following error is reported, add localhost to /usr/local/etc/openmpi-default-hostfile and then stop and restart the resource manager. Click directly in the next panel prompted. Switch to the Parallel Runtime perspective.Īdd a resource manager, choose Open MPI in the prompted panel and click. To run the demo program, we need to create and start a resource manager. Ĭhoose −> to compile the demo program for computing Pi.

Input a project name of your choice, choose MPI Pi C++ Project and click. Start Eclipse and choose a workspace of your choice.

Export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
