<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
It appears that you need to start at the beginning to get some of the basics of MPI. This mailing isn’t a good forum to teach you everything you need to know, but there are great tutorials all over the web to help you out.
<div class=""><br class="">
</div>
<div class="">One of my favorites for some of the most beginner topics is: <a href="http://mpitutorial.com" class="">http://mpitutorial.com</a></div>
<div class=""><br class="">
</div>
<div class="">Check that out and see if it helps with your problems. I’d also recommend the “Using MPI” series of books.</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">Wesley</div>
<div class=""><br class="">
</div>
<div class="">
<div>
<blockquote type="cite" class="">
<div class="">On Nov 29, 2014, at 10:00 PM, نازنین <<a href="mailto:nazanin.mirshokraei@gmail.com" class="">nazanin.mirshokraei@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">please give me more detail . you mean to compile mpich-3.0.4 with what flags?
<div class="">
<div class=""><br class="">
</div>
<div class="">./configure --prefix=/home/nazanin/program_install/mpich-3.0.4</div>
<div class="">make</div>
<div class="">make install</div>
</div>
<div class=""><br class="">
</div>
<div class="">do u mean to add another flag to the command ?</div>
<div class="">thanks </div>
<div class="">nazi</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Sat, Nov 29, 2014 at 8:53 AM, Junchao Zhang <span dir="ltr" class="">
<<a href="mailto:jczhang@mcs.anl.gov" target="_blank" class="">jczhang@mcs.anl.gov</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr" class="">Try to compile your program with mpicc or mpicxx</p>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_quote">On Nov 29, 2014 8:15 AM, "نازنین" <<a href="mailto:nazanin.mirshokraei@gmail.com" target="_blank" class="">nazanin.mirshokraei@gmail.com</a>> wrote:<br type="attribution" class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" class="">thank u for your reply .... can you please tell me what is the reason? it is my first time running a mpi ....
<div class="">i compiled a program with cpp which tells to use :</div>
<div class="">
<div class="">export USE_MPI=on # distributed-memory parallelism</div>
<div class=""> export USE_MPIF90=on # compile with mpif90 script</div>
<div class=""> export which_MPI=mpich # compile with MPICH library</div>
<div class="">#export which_MPI=mpich2 # compile with MPICH2 library</div>
<div class=""># export which_MPI=openmpi # compile with OpenMPI library</div>
<div class=""><br class="">
</div>
<div class="">#export USE_OpenMP=on # shared-memory parallelism</div>
<div class=""><br class="">
</div>
<div class=""># export FORT=ifort</div>
<div class="">export FORT=gfortran</div>
<div class="">#export FORT=pgi</div>
<div class=""><br class="">
</div>
<div class=""> #export USE_DEBUG= # use Fortran debugging flags</div>
<div class=""> export USE_LARGE=on # activate 64-bit compilation</div>
<div class="">#export USE_NETCDF4=on # compile with NetCDF-4 library</div>
<div class="">#export USE_PARALLEL_IO=on # Parallel I/O with Netcdf-4/HDF5</div>
<div class=""><br class="">
</div>
<div class="">#export USE_MY_LIBS=on # use my library paths below</div>
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">and then it gives me a file(coawstM) and the manual tells me to run that file in this way :</div>
<div class="">mpirun -np 2 ./coawstM <a href="http://swan_only.in/" target="_blank" class="">swan_only.in</a><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">what will be the reason? is it because mpich was not compiled truely or the coawstM is not working for a reason?</div>
<div class="">thank you</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Sat, Nov 29, 2014 at 6:07 AM, Junchao Zhang <span dir="ltr" class="">
<<a href="mailto:jczhang@mcs.anl.gov" target="_blank" class="">jczhang@mcs.anl.gov</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" class="">As indicated by the message, you passed an i<span style="font-family:arial,sans-serif;font-size:13px" class="">nvalid communicator to </span><span style="font-family:arial,sans-serif;font-size:13px" class="">MPI_Comm_rank() in your program.</span></div>
<div class="gmail_extra"><br clear="all" class="">
<div class="">
<div class="">
<div dir="ltr" class="">--Junchao Zhang</div>
</div>
</div>
<br class="">
<div class="gmail_quote">
<div class="">
<div class="">On Sat, Nov 29, 2014 at 4:32 AM, نازنین <span dir="ltr" class=""><<a href="mailto:nazanin.mirshokraei@gmail.com" target="_blank" class="">nazanin.mirshokraei@gmail.com</a>></span> wrote:<br class="">
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">
<div class="">
<div dir="ltr" class="">hi does any one know about this error :
<div class="">
<div class="">Fatal error in PMPI_Comm_rank: Invalid communicator, error stack:</div>
<div class="">PMPI_Comm_rank(108): MPI_Comm_rank(comm=0x0, rank=0x7fff24a405bc) failed</div>
<div class="">PMPI_Comm_rank(66).: Invalid communicator</div>
<div class="">Fatal error in PMPI_Comm_rank: Invalid communicator, error stack:</div>
<div class="">PMPI_Comm_rank(108): MPI_Comm_rank(comm=0x0, rank=0x7fff63e1598c) failed</div>
<div class="">PMPI_Comm_rank(66).: Invalid communicator</div>
</div>
<div class=""><br class="">
</div>
<div class="">it is when i run mpich like :</div>
<div class=""><span style="font-family:arial,sans-serif;font-size:12.8000001907349px" class="">mpirun -np 2 ./coawstM </span><a href="http://swan_only.in/" style="font-family:arial,sans-serif;font-size:12.8000001907349px" target="_blank" class="">swan_only.in</a><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">i don't know if this is a problem in my executable file (coawstM) or this is from mpich or any other hardware issues or anything else </div>
<div class="">thank you for your help</div>
<div class="">nazi</div>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank" class="">discuss@mpich.org</a><br class="">
To manage subscription options or unsubscribe:<br class="">
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank" class="">https://lists.mpich.org/mailman/listinfo/discuss</a><br class="">
</blockquote>
</div>
<br class="">
</div>
<br class="">
_______________________________________________<br class="">
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank" class="">discuss@mpich.org</a><br class="">
To manage subscription options or unsubscribe:<br class="">
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank" class="">https://lists.mpich.org/mailman/listinfo/discuss</a><br class="">
</blockquote>
</div>
<br class="">
</div>
<br class="">
_______________________________________________<br class="">
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank" class="">discuss@mpich.org</a><br class="">
To manage subscription options or unsubscribe:<br class="">
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank" class="">https://lists.mpich.org/mailman/listinfo/discuss</a><br class="">
</blockquote>
</div>
</div>
</div>
<br class="">
_______________________________________________<br class="">
discuss mailing list <a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a><br class="">
To manage subscription options or unsubscribe:<br class="">
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank" class="">https://lists.mpich.org/mailman/listinfo/discuss</a><br class="">
</blockquote>
</div>
<br class="">
</div>
_______________________________________________<br class="">
discuss mailing list <a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a><br class="">
To manage subscription options or unsubscribe:<br class="">
<a href="https://lists.mpich.org/mailman/listinfo/discuss" class="">https://lists.mpich.org/mailman/listinfo/discuss</a></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>