Eclipse, MPICH and PTP for the user. Configure and run tasks on the cluster

Configure Eclipse and PTP MPICH — that's one thing. And it solved. Start the task. Especially when it comes to the end user. Beware — many pictures.

First of all, we need a graphical session. How to use VNC or how to use a graphical session from Putty that is described in many places and we will not stop.
The main window of Eclipse:



the

Create and compile the project

1) new project C




2) Select project type



Choose the parallel computation of PI. If Eclipse prompts you for configuration data is MPI, you need to click Yes, next, New and find the directory /home/mpich/include. Then change the line Build-MPI Command mpicc in /home/mpich/bin/mpicc. Click Apply. Note: it is critical. Otherwise, the compilation will be carried out correctly. Enter the name of the project. Next.



step 2. Next.



step 3 create the project that you want to remove the checkmark from the Use default item information, leave the rest unchanged. Next, and then Finish.

3)go to the Parallel Runtime perspective.



This perspective can be called after clicking on the Other



Call the context menu in the Resource Manager, click Add Resource Manager. In the selection field to leave MPICH2, Next, on the next page, again Next. On the next page, uncheck Use default location and enter the Location field /home/mpich/bin directory.

Next, again Next. Finish. 4) Run the Resource Manager





5) Create a run configuration



Click on Run Configurations.



double-click on the Parallel Applications. Choose Number of processes required number of cores. In the tab Application, specify the project name and executable (initially located in Name_of_project=>Debug=>name_of_project



In the Debugger tab, you must specify the path to the Eclipse debugger, SDM. Full path: /distr/soft/eclipse/plugins/org.eclipse.ptp.linux.x86_3.0.1.200912191959/bin/sdm and then click on Run and observe the result.


Article based on information from habrahabr.ru

Комментарии

Популярные сообщения из этого блога

Templates ESKD and GOST 7.32 for Lyx 1.6.x

Monitoring PostgreSQL + php-fpm + nginx + disk using Zabbix

Custom table in MODx Revolution