Try to compile your program with mpicc or mpicxx
thank u for your reply .... can you please tell me what is the reason? it is my first time running a mpi ....i compiled a program with cpp which tells to use :export USE_MPI=on # distributed-memory parallelismexport USE_MPIF90=on # compile with mpif90 scriptexport which_MPI=mpich # compile with MPICH library#export which_MPI=mpich2 # compile with MPICH2 library# export which_MPI=openmpi # compile with OpenMPI library#export USE_OpenMP=on # shared-memory parallelism# export FORT=ifortexport FORT=gfortran#export FORT=pgi#export USE_DEBUG= # use Fortran debugging flagsexport USE_LARGE=on # activate 64-bit compilation#export USE_NETCDF4=on # compile with NetCDF-4 library#export USE_PARALLEL_IO=on # Parallel I/O with Netcdf-4/HDF5#export USE_MY_LIBS=on # use my library paths belowand then it gives me a file(coawstM) and the manual tells me to run that file in this way :mpirun -np 2 ./coawstM swan_only.inwhat will be the reason? is it because mpich was not compiled truely or the coawstM is not working for a reason?thank youOn Sat, Nov 29, 2014 at 6:07 AM, Junchao Zhang <jczhang@mcs.anl.gov> wrote:As indicated by the message, you passed an invalid communicator to MPI_Comm_rank() in your program.--Junchao ZhangOn Sat, Nov 29, 2014 at 4:32 AM, نازنین <nazanin.mirshokraei@gmail.com> wrote:_______________________________________________hi does any one know about this error :Fatal error in PMPI_Comm_rank: Invalid communicator, error stack:PMPI_Comm_rank(108): MPI_Comm_rank(comm=0x0, rank=0x7fff24a405bc) failedPMPI_Comm_rank(66).: Invalid communicatorFatal error in PMPI_Comm_rank: Invalid communicator, error stack:PMPI_Comm_rank(108): MPI_Comm_rank(comm=0x0, rank=0x7fff63e1598c) failedPMPI_Comm_rank(66).: Invalid communicatorit is when i run mpich like :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 elsethank you for your helpnazi
discuss mailing list discuss@mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss
_______________________________________________
discuss mailing list discuss@mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss
_______________________________________________
discuss mailing list discuss@mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss