[mpich-discuss] Increasing MPI ranks

Jed Brown jed at jedbrown.org
Tue Mar 11 17:52:02 CDT 2014


Jeffrey Larson <jmlarson at anl.gov> writes:

> Thank you for your response. Attached are the script and the simple
> function that it calls.
>
> The command:
> $ mpiexec -n 3 python script.py
> works great, but 30 crashes.

I don't think this is valid:

|  comm_to_function_wrapper = MPI.Comm.Get_parent()
|  rank = comm_to_function_wrapper.Get_rank()

$ make intercomm CC=/opt/mpich/bin/mpicc && /opt/mpich/bin/mpiexec -n 2 ./intercomm
/opt/mpich/bin/mpicc     intercomm.c   -o intercomm
Fatal error in PMPI_Comm_rank: Invalid communicator, error stack:
PMPI_Comm_rank(108): MPI_Comm_rank(MPI_COMM_NULL, rank=0x7fff9fe6a118) failed
PMPI_Comm_rank(66).: Null communicator
Fatal error in PMPI_Comm_rank: Invalid communicator, error stack:
PMPI_Comm_rank(108): MPI_Comm_rank(MPI_COMM_NULL, rank=0x7fff5e484d48) failed
PMPI_Comm_rank(66).: Null communicator

===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   PID 8474 RUNNING AT batura
=   EXIT CODE: 1
=   CLEANING UP REMAINING PROCESSES
=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
$ /opt/mpich/bin/mpichversion 
MPICH Version:          3.1
MPICH Release date:     Thu Feb 20 11:41:13 CST 2014
MPICH Device:           ch3:nemesis
MPICH configure:        --prefix=/opt/mpich --enable-shared --enable-sharedlibs=gcc --enable-error-checking=runtime --enable-error-messages=all --enable-timer-type=clock_gettime --with-python=python2
MPICH CC:       gcc  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4  -O2
MPICH CXX:      g++  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4
MPICH F77:      gfortran   -O2
MPICH FC:       gfortran  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: intercomm.c
Type: text/x-csrc
Size: 202 bytes
Desc: not available
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20140311/dc53ed68/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20140311/dc53ed68/attachment.sig>


More information about the discuss mailing list