<div dir="ltr">Hello<br>Thank you very much for the detailed instructions. However, I am still lost in this (I am just a beginner), do you have an example of .bashrc file? and where exactely this file should be placed (I mean in the root dir or on my home dir.?). because I think it is all about this file (I feel something missing in it?) I am attaching a copy of that file so you may have some idea what is going on. <br>
<br>Thank you very much, <br><br><div class="gmail_quote">On Fri, Dec 17, 2010 at 12:36 AM, Gus Correa <span dir="ltr"><<a href="mailto:gus@ldeo.columbia.edu">gus@ldeo.columbia.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">Talla wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello;<br>
I build a cluster using Rocks/Open CentOS and I need to perform a parallel jobn it, therefore I am looking for complete instructions how to set up MPICH to get it run correctly as I am struggling with it for while.<br>
<br>
Your help is really appreciated, Cordially.<br>
<br>
</blockquote></div></div>
Hi<br>
<br>
I may have answered you in the Rocks list already.<br>
Anyway, there it goes again.<br>
<br>
0) READ the MPICH2 Installation Guide and User Guide first.<br>
There are complete instructions there.<br>
Did you read them?<br>
<br>
1) Install one (ONLY ONE) of the resource manager rolls: SGE or Torque.<br>
(I use and prefer Torque, which is simpler, but other people love SGE.)<br>
<br>
2) Download the latest greatest MPICH2 tarball to /share/apps/mydownloads, and untar it (tar -zxvf mpich2-... ).<br>
Configure and install MPICH2 on /share/apps/mpich2.<br>
You can use gcc, g++, and gfortran compilers for this,<br>
something like this:<br>
<br>
configure --prefix=/share/apps/mpich2 CC=gcc CXX=g++ F77=gfortran<br>
F90=gfortran<br>
make<br>
make install<br>
<br>
3) Set the environment varialbles in your .cshrc or .bashrc file<br>
(as a regular user, NOT root), so that:<br>
<br>
/share/apps/mpich2/bin is first in your PATH,<br>
/share/apps/mpich2/share/man is first in your MANPATH,<br>
/share/apps/mpich2/lib is first in your LD_LIBRARY_PATH.<br>
<br>
4) Compile the cpi.c example in the "examples"<br>
directory in the MPICH2 *distribution* directory<br>
(i.e. /share/apps/mydownloads/mpich2-.../examples)<br>
using mpicc<br>
<br>
mpicc -o cpi cpi.c<br>
<br>
5) Write a job submission script for it.<br>
Here is one for Torque:<br>
<br>
#PBS -N cpi<br>
#PBS -q default<br>
#PBS -l nodes=2:ppn=4 #example asking for 2 nodes with 4 cores each<br>
<br>
mpiexec.hydra -f $PBS_NODEFILE -np 8 cpi<br>
<br>
6) Alternatively, if you don't want to use Torque or SGE, create a "mynodefile" according to the MPICH2, and launch the job<br>
directly on the command line:<br>
<br>
mpiexec.hydra -f mynodefile -np 8 cpi<br>
<br>
Also<br>
<br>
mpiexec.hydra --help<br>
<br>
will give you a lot of information about it.<br>
<br>
Good luck<br><font color="#888888">
Gus Correa</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><br><br>
<div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div></div>