<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">please give me more detail . you mean to compile mpich-3.0.4 with what flags?<div><div><br></div><div>./configure --prefix=/home/nazanin/program_install/mpich-3.0.4</div><div>make</div><div>make install</div></div><div><br></div><div>do u mean to add another flag to the command ?</div><div>thanks </div><div>nazi</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 29, 2014 at 8:53 AM, Junchao Zhang <span dir="ltr"><<a href="mailto:jczhang@mcs.anl.gov" target="_blank">jczhang@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">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">nazanin.mirshokraei@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">thank u for your reply .... can you please tell me what is the reason? it is my first time running a mpi .... <div>i compiled a program with cpp which tells to use :</div><div><div>export USE_MPI=on # distributed-memory parallelism</div><div> export USE_MPIF90=on # compile with mpif90 script</div><div> export which_MPI=mpich # compile with MPICH library</div><div>#export which_MPI=mpich2 # compile with MPICH2 library</div><div># export which_MPI=openmpi # compile with OpenMPI library</div><div><br></div><div>#export USE_OpenMP=on # shared-memory parallelism</div><div><br></div><div># export FORT=ifort</div><div>export FORT=gfortran</div><div>#export FORT=pgi</div><div><br></div><div> #export USE_DEBUG= # use Fortran debugging flags</div><div> export USE_LARGE=on # activate 64-bit compilation</div><div>#export USE_NETCDF4=on # compile with NetCDF-4 library</div><div>#export USE_PARALLEL_IO=on # Parallel I/O with Netcdf-4/HDF5</div><div><br></div><div>#export USE_MY_LIBS=on # use my library paths below</div></div><div><br></div><div><br></div><div><br></div><div>and then it gives me a file(coawstM) and the manual tells me to run that file in this way :</div><div>mpirun -np 2 ./coawstM <a href="http://swan_only.in" target="_blank">swan_only.in</a><br></div><div><br></div><div>what will be the reason? is it because mpich was not compiled truely or the coawstM is not working for a reason?</div><div>thank you</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 29, 2014 at 6:07 AM, Junchao Zhang <span dir="ltr"><<a href="mailto:jczhang@mcs.anl.gov" target="_blank">jczhang@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">As indicated by the message, you passed an i<span style="font-family:arial,sans-serif;font-size:13px">nvalid communicator to </span><span style="font-family:arial,sans-serif;font-size:13px">MPI_Comm_rank() in your program.</span></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr">--Junchao Zhang</div></div></div>
<br><div class="gmail_quote"><div><div>On Sat, Nov 29, 2014 at 4:32 AM, نازنین <span dir="ltr"><<a href="mailto:nazanin.mirshokraei@gmail.com" target="_blank">nazanin.mirshokraei@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">hi does any one know about this error :<div><div>Fatal error in PMPI_Comm_rank: Invalid communicator, error stack:</div><div>PMPI_Comm_rank(108): MPI_Comm_rank(comm=0x0, rank=0x7fff24a405bc) failed</div><div>PMPI_Comm_rank(66).: Invalid communicator</div><div>Fatal error in PMPI_Comm_rank: Invalid communicator, error stack:</div><div>PMPI_Comm_rank(108): MPI_Comm_rank(comm=0x0, rank=0x7fff63e1598c) failed</div><div>PMPI_Comm_rank(66).: Invalid communicator</div></div><div><br></div><div>it is when i run mpich like :</div><div><span style="font-family:arial,sans-serif;font-size:12.8000001907349px">mpirun -np 2 ./coawstM </span><a href="http://swan_only.in/" style="font-family:arial,sans-serif;font-size:12.8000001907349px" target="_blank">swan_only.in</a><br></div><div><br></div><div>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>thank you for your help</div><div>nazi</div></div>
<br></div></div>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div>
</div></div><br>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div><br></div>