[mpich-discuss] discuss Digest, Vol 14, Issue 2

Ken Raffenetti raffenet at mcs.anl.gov
Mon Dec 2 12:18:52 CST 2013


Please try some of the suggested debugging techniques mentioned already on this thread, e.g. printing out your function arguments. Your problem appears to be unrelated to MPICH and instead related to general programming errors.

----- Original Message -----
> From: "Soheil Hooshdaran" <shooshdaran577 at gmail.com>
> To: discuss at mpich.org
> Sent: Monday, December 2, 2013 10:32:40 AM
> Subject: Re: [mpich-discuss] discuss Digest, Vol 14, Issue 2
> 
> 
> 
> Why is my count zero? I am giving a formula for count, and am
> Bcasting the variable 'n'.
> 
> 
> 
> On Mon, Dec 2, 2013 at 5:36 PM, < discuss-request at mpich.org > wrote:
> 
> 
> Send discuss mailing list submissions to
> discuss at mpich.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.mpich.org/mailman/listinfo/discuss
> or, via email, send a message with subject or body 'help' to
> discuss-request at mpich.org
> 
> You can reach the person managing the list at
> discuss-owner at mpich.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of discuss digest..."
> 
> 
> Today's Topics:
> 
> 1. Re: Undefined reference to MPL (Jeff Hammond)
> 2. Re: Undefined reference to MPL (Pavan Balaji)
> 3. Re: MPI_Recv problem (Pavan Balaji)
> 4. Re: MPI_Recv problem (Soheil Hooshdaran)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 2 Dec 2013 07:47:33 -0600
> From: Jeff Hammond < jeff.science at gmail.com >
> To: " discuss at mpich.org " < discuss at mpich.org >
> Subject: Re: [mpich-discuss] Undefined reference to MPL
> Message-ID: < F3664C9C-8F59-41F7-A15D-2B0F47D7D785 at gmail.com >
> Content-Type: text/plain; charset=utf-8
> 
> "mpicc -show" will give you all the flags you need to link MPICH (or
> MVAPICH). You're missing more than one library.
> 
> Jeff
> 
> Sent from my iPhone
> 
> > On Dec 2, 2013, at 2:48 AM, Francisco Pastor < paco at ceam.es >
> > wrote:
> > 
> > Hi
> > 
> > I can only see -lmpich. Maybe should try -lmpl.
> > 
> > MPI_PATH=/usr/local/mpich2-1.0.5p4
> > PAR_INCS=-I$(MPI_PATH)/src/include
> > PAR_LIBS=-L$(MPI_PATH)/lib/ -lmpich
> > 
> > 
> > In the meantime I installed mpich2-1.05p4 and the compilation has
> > worked. Should I try to recompile with mpich-3.0.4 adding -lmpl?
> > 
> > Thank you very much
> > 
> > El 29/11/2013 11:37, Reuti escribi?:
> >> Hi,
> >> 
> >>> Am 29.11.2013 um 09:07 schrieb Francisco Pastor:
> >>> 
> >>> I recently installed mpich 3.0.4 in order to compile a
> >>> meteorological model, RAMS 6.0. We installed the model time ago
> >>> with mpich2-1.0.5p4. Now we want to build a new cluster under
> >>> Ubuntu 12.04 and MPICH.
> >>> 
> >>> When building the model I get this messages, the last ones in a
> >>> longer list, and maybe they are related to mpich. As a new user
> >>> of mpich I'm not sure where the problem is coming from. Should I
> >>> install an older mpich2 version?
> >>> 
> >>> Thanks for your help
> >> How is RAMS linked during build - maybe it uses not the mpi...
> >> wrappers but links directly and missed to include -lmpl
> >> 
> >> -- Reuti
> >> 
> >> 
> >>> /usr/local/lib//libmpich.a(param_vals.o):param_vals.c:(.text+0xb4d):
> >>> more undefined references to `MPL_env2bool' follow
> >>> /usr/local/lib//libmpich.a(param_vals.o): In function
> >>> `MPIR_Param_init_params':
> >>> param_vals.c:(.text+0xbac): undefined reference to
> >>> `MPL_env2range'
> >>> param_vals.c:(.text+0xbd1): undefined reference to
> >>> `MPL_env2range'
> >>> param_vals.c:(.text+0xbf6): undefined reference to
> >>> `MPL_env2range'
> >>> param_vals.c:(.text+0xc1b): undefined reference to
> >>> `MPL_env2range'
> >>> param_vals.c:(.text+0xc38): undefined reference to `MPL_env2int'
> >>> param_vals.c:(.text+0xc55): undefined reference to `MPL_env2int'
> >>> /usr/local/lib//libmpich.a(mpid_init.o): In function `MPID_Init':
> >>> mpid_init.c:(.text+0x194): undefined reference to `MPL_env2bool'
> >>> /usr/local/lib//libmpich.a(mpid_vc.o): In function
> >>> `MPIDI_Populate_vc_node_ids':
> >>> mpid_vc.c:(.text+0xb66): undefined reference to `MPL_env2int'
> >>> mpid_vc.c:(.text+0xb7d): undefined reference to `MPL_env2int'
> >>> /usr/local/lib//libmpich.a(mpi_t_util.o): In function
> >>> `MPIU_Tool_strncpy':
> >>> mpi_t_util.c:(.text+0x49c): undefined reference to `MPL_strncpy'
> >>> make: *** [rams-6.0-opt] Error 1
> >>> 
> >>> --
> >>> -----------
> >>> Dr. Francisco Pastor
> >>> Meteorology department, Instituto Universitario CEAM-UMH
> >>> http://www.ceam.es
> >>> -----------
> >>> Mendeley profile:
> >>> http://www.mendeley.com/profiles/francisco-pastor1/
> >>> Google Scholar:
> >>> http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es
> >>> Researcher ID: http://www.researcherid.com/rid/B-8331-2008
> >>> Cosis profile: http://www.cosis.net/profile/francisco.pastor
> >>> -----------
> >>> mail: paco at ceam.es
> >>> skype: paco.pastor.guzman
> >>> -----------
> >>> Parque Tecnologico, C/ Charles R. Darwin, 14
> >>> 46980 PATERNA (Valencia), Spain
> >>> Tlf. 96 131 82 27 - Fax. 96 131 81 90
> >>> 
> >>> 
> >>> ---------------------------------------------------------------------
> >>> Este mensaje y los ficheros anexos son confidenciales. Los mismos
> >>> contienen informaci?n reservada de la empresa que no puede ser
> >>> difundida. Si usted ha recibido este correo por error, tenga la
> >>> amabilidad de eliminarlo de su sistema y avisar al remitente
> >>> mediante reenv?o a su direcci?n electr?nica; no deber? copiar el
> >>> mensaje ni divulgar su contenido a ninguna persona.
> >>> 
> >>> Su direcci?n de correo electr?nico junto a sus datos personales
> >>> forman parte de un fichero titularidad de la Fundaci?n de la
> >>> Comunidad Valenciana Centro de Estudios Ambientales del
> >>> Mediterr?neo - CEAM, con CIF: G-46957213, cuya finalidad es la
> >>> de mantener el contacto con Ud. De acuerdo con la Ley Org?nica
> >>> 15/1999, usted puede ejercitar sus derechos de acceso,
> >>> rectificaci?n, cancelaci?n y, en su caso, oposici?n enviando una
> >>> solicitud por escrito, acompa?ada de una fotocopia de su DNI
> >>> dirigida a: Fundaci?n de la Comunidad Valenciana Centro de
> >>> Estudios Ambientales del Mediterr?neo - CEAM. C/ Charles R.
> >>> Darwin, 14. Parque Tecnol?gico.46980 PATERNA (Valencia).
> >>> 
> >>> This message and the attached files are confidential. They
> >>> contain reserved information belonging to our centre and are not
> >>> to be broadcast. If you have received this email by mistake,
> >>> please delete it from your system and alert the sender by
> >>> returning it to his/her email address. You must not copy or
> >>> divulge the contents of the message to anyone.
> >>> 
> >>> Your email address and personal data are included in a file
> >>> belonging to the Fundaci?n de la Comunidad Valenciana Centro de
> >>> Estudios Ambientales del Mediterr?neo - CEAM, con CIF:
> >>> G-46957213. The purpose of this file is to allow us to keep in
> >>> contact with you. In accordance with Organic Law 15/1999, you
> >>> are permitted to access, rectify, cancel or oppose the contents
> >>> of this file by submitting a written request, accompanied by a
> >>> photocopy of your DNI, to: Fundaci?n de la Comunidad Valenciana
> >>> Centro de Estudios Ambientales del Mediterr?neo - CEAM. C/
> >>> Charles R. Darwin, 14. Parque Tecnol?gico.46980 PATERNA
> >>> (Valencia).
> >>> 
> >>> 
> >>> 
> >>> _______________________________________________
> >>> discuss mailing list discuss at mpich.org
> >>> To manage subscription options or unsubscribe:
> >>> https://lists.mpich.org/mailman/listinfo/discuss
> >> _______________________________________________
> >> discuss mailing list discuss at mpich.org
> >> To manage subscription options or unsubscribe:
> >> https://lists.mpich.org/mailman/listinfo/discuss
> > 
> > --
> > -----------
> > Dr. Francisco Pastor
> > Meteorology department, Instituto Universitario CEAM-UMH
> > http://www.ceam.es
> > -----------
> > Mendeley profile:
> > http://www.mendeley.com/profiles/francisco-pastor1/
> > Google Scholar:
> > http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es
> > Researcher ID: http://www.researcherid.com/rid/B-8331-2008
> > Cosis profile: http://www.cosis.net/profile/francisco.pastor
> > -----------
> > mail: paco at ceam.es
> > skype: paco.pastor.guzman
> > -----------
> > Parque Tecnologico, C/ Charles R. Darwin, 14
> > 46980 PATERNA (Valencia), Spain
> > Tlf. 96 131 82 27 - Fax. 96 131 81 90
> > 
> > 
> > ---------------------------------------------------------------------
> > Este mensaje y los ficheros anexos son confidenciales. Los mismos
> > contienen informaci?n reservada de la empresa que no puede ser
> > difundida. Si usted ha recibido este correo por error, tenga la
> > amabilidad de eliminarlo de su sistema y avisar al remitente
> > mediante reenv?o a su direcci?n electr?nica; no deber? copiar el
> > mensaje ni divulgar su contenido a ninguna persona.
> > 
> > Su direcci?n de correo electr?nico junto a sus datos personales
> > forman parte de un fichero titularidad de la Fundaci?n de la
> > Comunidad Valenciana Centro de Estudios Ambientales del
> > Mediterr?neo - CEAM, con CIF: G-46957213, cuya finalidad es la de
> > mantener el contacto con Ud. De acuerdo con la Ley Org?nica
> > 15/1999, usted puede ejercitar sus derechos de acceso,
> > rectificaci?n, cancelaci?n y, en su caso, oposici?n enviando una
> > solicitud por escrito, acompa?ada de una fotocopia de su DNI
> > dirigida a: Fundaci?n de la Comunidad Valenciana Centro de
> > Estudios Ambientales del Mediterr?neo - CEAM. C/ Charles R.
> > Darwin, 14. Parque Tecnol?gico.46980 PATERNA (Valencia).
> > 
> > This message and the attached files are confidential. They contain
> > reserved information belonging to our centre and are not to be
> > broadcast. If you have received this email by mistake, please
> > delete it from your system and alert the sender by returning it to
> > his/her email address. You must not copy or divulge the contents
> > of the message to anyone.
> > 
> > Your email address and personal data are included in a file
> > belonging to the Fundaci?n de la Comunidad Valenciana Centro de
> > Estudios Ambientales del Mediterr?neo - CEAM, con CIF: G-46957213.
> > The purpose of this file is to allow us to keep in contact with
> > you. In accordance with Organic Law 15/1999, you are permitted to
> > access, rectify, cancel or oppose the contents of this file by
> > submitting a written request, accompanied by a photocopy of your
> > DNI, to: Fundaci?n de la Comunidad Valenciana Centro de Estudios
> > Ambientales del Mediterr?neo - CEAM. C/ Charles R. Darwin, 14.
> > Parque Tecnol?gico.46980 PATERNA (Valencia).
> > 
> > 
> > 
> > _______________________________________________
> > discuss mailing list discuss at mpich.org
> > To manage subscription options or unsubscribe:
> > https://lists.mpich.org/mailman/listinfo/discuss
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Mon, 2 Dec 2013 07:49:21 -0600
> From: Pavan Balaji < balaji at mcs.anl.gov >
> To: discuss at mpich.org
> Subject: Re: [mpich-discuss] Undefined reference to MPL
> Message-ID: < 0416767D-97DF-432A-93AF-7469A62C84A7 at mcs.anl.gov >
> Content-Type: text/plain; charset=windows-1252
> 
> 
> Actually, you are missing two: libmpl and libopa. But the latter
> might not be used for most common platforms.
> 
> A second option, that we are still experimenting with, is to build
> mpich as a shared library. On more platforms libtool should generate
> automatic inter-library dependencies. So when you link against
> libmpich, it should automatically pick up the remaining libraries.
> We had this working earlier, though I haven?t tried it in a while.
> 
> ? Pavan
> 
> On Dec 2, 2013, at 7:47 AM, Jeff Hammond < jeff.science at gmail.com >
> wrote:
> 
> > "mpicc -show" will give you all the flags you need to link MPICH
> > (or MVAPICH). You're missing more than one library.
> > 
> > Jeff
> > 
> > Sent from my iPhone
> > 
> >> On Dec 2, 2013, at 2:48 AM, Francisco Pastor < paco at ceam.es >
> >> wrote:
> >> 
> >> Hi
> >> 
> >> I can only see -lmpich. Maybe should try -lmpl.
> >> 
> >> MPI_PATH=/usr/local/mpich2-1.0.5p4
> >> PAR_INCS=-I$(MPI_PATH)/src/include
> >> PAR_LIBS=-L$(MPI_PATH)/lib/ -lmpich
> >> 
> >> 
> >> In the meantime I installed mpich2-1.05p4 and the compilation has
> >> worked. Should I try to recompile with mpich-3.0.4 adding -lmpl?
> >> 
> >> Thank you very much
> >> 
> >> El 29/11/2013 11:37, Reuti escribi?:
> >>> Hi,
> >>> 
> >>>> Am 29.11.2013 um 09:07 schrieb Francisco Pastor:
> >>>> 
> >>>> I recently installed mpich 3.0.4 in order to compile a
> >>>> meteorological model, RAMS 6.0. We installed the model time ago
> >>>> with mpich2-1.0.5p4. Now we want to build a new cluster under
> >>>> Ubuntu 12.04 and MPICH.
> >>>> 
> >>>> When building the model I get this messages, the last ones in a
> >>>> longer list, and maybe they are related to mpich. As a new user
> >>>> of mpich I'm not sure where the problem is coming from. Should
> >>>> I install an older mpich2 version?
> >>>> 
> >>>> Thanks for your help
> >>> How is RAMS linked during build - maybe it uses not the mpi...
> >>> wrappers but links directly and missed to include -lmpl
> >>> 
> >>> -- Reuti
> >>> 
> >>> 
> >>>> /usr/local/lib//libmpich.a(param_vals.o):param_vals.c:(.text+0xb4d):
> >>>> more undefined references to `MPL_env2bool' follow
> >>>> /usr/local/lib//libmpich.a(param_vals.o): In function
> >>>> `MPIR_Param_init_params':
> >>>> param_vals.c:(.text+0xbac): undefined reference to
> >>>> `MPL_env2range'
> >>>> param_vals.c:(.text+0xbd1): undefined reference to
> >>>> `MPL_env2range'
> >>>> param_vals.c:(.text+0xbf6): undefined reference to
> >>>> `MPL_env2range'
> >>>> param_vals.c:(.text+0xc1b): undefined reference to
> >>>> `MPL_env2range'
> >>>> param_vals.c:(.text+0xc38): undefined reference to `MPL_env2int'
> >>>> param_vals.c:(.text+0xc55): undefined reference to `MPL_env2int'
> >>>> /usr/local/lib//libmpich.a(mpid_init.o): In function
> >>>> `MPID_Init':
> >>>> mpid_init.c:(.text+0x194): undefined reference to `MPL_env2bool'
> >>>> /usr/local/lib//libmpich.a(mpid_vc.o): In function
> >>>> `MPIDI_Populate_vc_node_ids':
> >>>> mpid_vc.c:(.text+0xb66): undefined reference to `MPL_env2int'
> >>>> mpid_vc.c:(.text+0xb7d): undefined reference to `MPL_env2int'
> >>>> /usr/local/lib//libmpich.a(mpi_t_util.o): In function
> >>>> `MPIU_Tool_strncpy':
> >>>> mpi_t_util.c:(.text+0x49c): undefined reference to `MPL_strncpy'
> >>>> make: *** [rams-6.0-opt] Error 1
> >>>> 
> >>>> --
> >>>> -----------
> >>>> Dr. Francisco Pastor
> >>>> Meteorology department, Instituto Universitario CEAM-UMH
> >>>> http://www.ceam.es
> >>>> -----------
> >>>> Mendeley profile:
> >>>> http://www.mendeley.com/profiles/francisco-pastor1/
> >>>> Google Scholar:
> >>>> http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es
> >>>> Researcher ID: http://www.researcherid.com/rid/B-8331-2008
> >>>> Cosis profile: http://www.cosis.net/profile/francisco.pastor
> >>>> -----------
> >>>> mail: paco at ceam.es
> >>>> skype: paco.pastor.guzman
> >>>> -----------
> >>>> Parque Tecnologico, C/ Charles R. Darwin, 14
> >>>> 46980 PATERNA (Valencia), Spain
> >>>> Tlf. 96 131 82 27 - Fax. 96 131 81 90
> >>>> 
> >>>> 
> >>>> ---------------------------------------------------------------------
> >>>> Este mensaje y los ficheros anexos son confidenciales. Los
> >>>> mismos contienen informaci?n reservada de la empresa que no
> >>>> puede ser difundida. Si usted ha recibido este correo por
> >>>> error, tenga la amabilidad de eliminarlo de su sistema y avisar
> >>>> al remitente mediante reenv?o a su direcci?n electr?nica; no
> >>>> deber? copiar el mensaje ni divulgar su contenido a ninguna
> >>>> persona.
> >>>> 
> >>>> Su direcci?n de correo electr?nico junto a sus datos personales
> >>>> forman parte de un fichero titularidad de la Fundaci?n de la
> >>>> Comunidad Valenciana Centro de Estudios Ambientales del
> >>>> Mediterr?neo - CEAM, con CIF: G-46957213, cuya finalidad es la
> >>>> de mantener el contacto con Ud. De acuerdo con la Ley Org?nica
> >>>> 15/1999, usted puede ejercitar sus derechos de acceso,
> >>>> rectificaci?n, cancelaci?n y, en su caso, oposici?n enviando
> >>>> una solicitud por escrito, acompa?ada de una fotocopia de su
> >>>> DNI dirigida a: Fundaci?n de la Comunidad Valenciana Centro de
> >>>> Estudios Ambientales del Mediterr?neo - CEAM. C/ Charles R.
> >>>> Darwin, 14. Parque Tecnol?gico.46980 PATERNA (Valencia).
> >>>> 
> >>>> This message and the attached files are confidential. They
> >>>> contain reserved information belonging to our centre and are
> >>>> not to be broadcast. If you have received this email by
> >>>> mistake, please delete it from your system and alert the sender
> >>>> by returning it to his/her email address. You must not copy or
> >>>> divulge the contents of the message to anyone.
> >>>> 
> >>>> Your email address and personal data are included in a file
> >>>> belonging to the Fundaci?n de la Comunidad Valenciana Centro de
> >>>> Estudios Ambientales del Mediterr?neo - CEAM, con CIF:
> >>>> G-46957213. The purpose of this file is to allow us to keep in
> >>>> contact with you. In accordance with Organic Law 15/1999, you
> >>>> are permitted to access, rectify, cancel or oppose the contents
> >>>> of this file by submitting a written request, accompanied by a
> >>>> photocopy of your DNI, to: Fundaci?n de la Comunidad Valenciana
> >>>> Centro de Estudios Ambientales del Mediterr?neo - CEAM. C/
> >>>> Charles R. Darwin, 14. Parque Tecnol?gico.46980 PATERNA
> >>>> (Valencia).
> >>>> 
> >>>> 
> >>>> 
> >>>> _______________________________________________
> >>>> discuss mailing list discuss at mpich.org
> >>>> To manage subscription options or unsubscribe:
> >>>> https://lists.mpich.org/mailman/listinfo/discuss
> >>> _______________________________________________
> >>> discuss mailing list discuss at mpich.org
> >>> To manage subscription options or unsubscribe:
> >>> https://lists.mpich.org/mailman/listinfo/discuss
> >> 
> >> --
> >> -----------
> >> Dr. Francisco Pastor
> >> Meteorology department, Instituto Universitario CEAM-UMH
> >> http://www.ceam.es
> >> -----------
> >> Mendeley profile:
> >> http://www.mendeley.com/profiles/francisco-pastor1/
> >> Google Scholar:
> >> http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es
> >> Researcher ID: http://www.researcherid.com/rid/B-8331-2008
> >> Cosis profile: http://www.cosis.net/profile/francisco.pastor
> >> -----------
> >> mail: paco at ceam.es
> >> skype: paco.pastor.guzman
> >> -----------
> >> Parque Tecnologico, C/ Charles R. Darwin, 14
> >> 46980 PATERNA (Valencia), Spain
> >> Tlf. 96 131 82 27 - Fax. 96 131 81 90
> >> 
> >> 
> >> ---------------------------------------------------------------------
> >> Este mensaje y los ficheros anexos son confidenciales. Los mismos
> >> contienen informaci?n reservada de la empresa que no puede ser
> >> difundida. Si usted ha recibido este correo por error, tenga la
> >> amabilidad de eliminarlo de su sistema y avisar al remitente
> >> mediante reenv?o a su direcci?n electr?nica; no deber? copiar el
> >> mensaje ni divulgar su contenido a ninguna persona.
> >> 
> >> Su direcci?n de correo electr?nico junto a sus datos personales
> >> forman parte de un fichero titularidad de la Fundaci?n de la
> >> Comunidad Valenciana Centro de Estudios Ambientales del
> >> Mediterr?neo - CEAM, con CIF: G-46957213, cuya finalidad es la de
> >> mantener el contacto con Ud. De acuerdo con la Ley Org?nica
> >> 15/1999, usted puede ejercitar sus derechos de acceso,
> >> rectificaci?n, cancelaci?n y, en su caso, oposici?n enviando una
> >> solicitud por escrito, acompa?ada de una fotocopia de su DNI
> >> dirigida a: Fundaci?n de la Comunidad Valenciana Centro de
> >> Estudios Ambientales del Mediterr?neo - CEAM. C/ Charles R.
> >> Darwin, 14. Parque Tecnol?gico.46980 PATERNA (Valencia).
> >> 
> >> This message and the attached files are confidential. They contain
> >> reserved information belonging to our centre and are not to be
> >> broadcast. If you have received this email by mistake, please
> >> delete it from your system and alert the sender by returning it
> >> to his/her email address. You must not copy or divulge the
> >> contents of the message to anyone.
> >> 
> >> Your email address and personal data are included in a file
> >> belonging to the Fundaci?n de la Comunidad Valenciana Centro de
> >> Estudios Ambientales del Mediterr?neo - CEAM, con CIF:
> >> G-46957213. The purpose of this file is to allow us to keep in
> >> contact with you. In accordance with Organic Law 15/1999, you are
> >> permitted to access, rectify, cancel or oppose the contents of
> >> this file by submitting a written request, accompanied by a
> >> photocopy of your DNI, to: Fundaci?n de la Comunidad Valenciana
> >> Centro de Estudios Ambientales del Mediterr?neo - CEAM. C/
> >> Charles R. Darwin, 14. Parque Tecnol?gico.46980 PATERNA
> >> (Valencia).
> >> 
> >> 
> >> 
> >> _______________________________________________
> >> discuss mailing list discuss at mpich.org
> >> To manage subscription options or unsubscribe:
> >> https://lists.mpich.org/mailman/listinfo/discuss
> > _______________________________________________
> > discuss mailing list discuss at mpich.org
> > To manage subscription options or unsubscribe:
> > https://lists.mpich.org/mailman/listinfo/discuss
> 
> --
> Pavan Balaji
> http://www.mcs.anl.gov/~balaji
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Mon, 2 Dec 2013 07:51:21 -0600
> From: Pavan Balaji < balaji at mcs.anl.gov >
> To: Soheil Hooshdaran < shooshdaran577 at gmail.com >
> Cc: discuss at mpich.org
> Subject: Re: [mpich-discuss] MPI_Recv problem
> Message-ID: < 636EEA47-AAD0-4146-AB5F-BDFDD92C0B17 at mcs.anl.gov >
> Content-Type: text/plain; charset=windows-1252
> 
> 
> Did you try printing how many bytes you are receiving before calling
> MPI_Recv?
> 
> ? Pavan
> 
> On Dec 1, 2013, at 11:43 PM, Soheil Hooshdaran <
> shooshdaran577 at gmail.com > wrote:
> 
> > Hello. Please tell me what is wrong with my program that it doesn't
> > goes no further than executing MPI_Send() for the first time.
> > The file is attached
> > 
> > 
> > On Sat, Nov 30, 2013 at 7:02 PM, Soheil Hooshdaran <
> > shooshdaran577 at gmail.com > wrote:
> > So what do I have to do now, sir? Especially regarding my Bcast()s
> > a,d Recv()s
> > 
> > 
> > On Sat, Nov 30, 2013 at 1:05 AM, Pavan Balaji < balaji at mcs.anl.gov
> > > wrote:
> > 
> > Please keep discuss at mpich.org cc?ed.
> > 
> > On Nov 29, 2013, at 2:19 PM, Soheil Hooshdaran <
> > shooshdaran577 at gmail.com > wrote:
> > > executing send for the 3th time
> > > executed send for the 3th time, sending 40 bytes
> > > Fatal error in MPI_Recv: Message truncated, error stack:
> > > MPI_Recv(184).....................: MPI_Recv(buf=0xbff95c98,
> > > count=0, MPI_INT, src=0, tag=1, MPI_COMM_WORLD,
> > > status=0xbff95c70) failed
> > > MPIDI_CH3U_Receive_data_found(131): Message from rank 0 and tag 1
> > > truncated; 160 bytes received but buffer size is 0
> > 
> > I don?t think I can explain the error any better than what the
> > message above already says.
> > 
> > --
> > Pavan Balaji
> > http://www.mcs.anl.gov/~balaji
> > 
> > 
> > <p1_Hooshdaran_static[debug].cpp>
> 
> --
> Pavan Balaji
> http://www.mcs.anl.gov/~balaji
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Mon, 2 Dec 2013 17:36:06 +0330
> From: Soheil Hooshdaran < shooshdaran577 at gmail.com >
> To: Pavan Balaji < balaji at mcs.anl.gov >
> Cc: discuss at mpich.org
> Subject: Re: [mpich-discuss] MPI_Recv problem
> Message-ID:
> <CAKtsx+9b-bOuPkpcr9Tv3Gd0o6H==_ woFowbo4YrB0UDLwPKbA at mail.gmail.com
> >
> Content-Type: text/plain; charset="utf-8"
> 
> What should I use?
> 
> Even the statement right after MPI_Sent doesn't execute. My code has
> something like this:
> //////////////////////in the root process
> while(i<iWorldSize)
> {
> cout << "executing send for the " << i << "th time" << endl;
> MPI_Send( A[i], n/iWorldSize * m, MPI_INT, i, itag, MPI_COMM_WORLD );
> sent++;
> cout << "executed send for the " << i << "th time, sending " <<
> n/iWorldSize * m << " bytes to processor " << i << endl;
> 
> i+=n/iWorldSize;
> }//end while
> 
> 
> ////////////////////in the slave process
> while(sent)
> {
> cout << "**********sent= " << sent << endl;
> cout << "\n\n\n**********Executing receive*******" << endl;
> MPI_Recv(&buffer, n/iWorldSize*m, MPI_INT, 0, itag, MPI_COMM_WORLD,
> &status);
> sent=0;
> cout << "**********receive executed***********" << endl;
> }
> 
> 
> On Mon, Dec 2, 2013 at 5:21 PM, Pavan Balaji < balaji at mcs.anl.gov >
> wrote:
> 
> > 
> > Did you try printing how many bytes you are receiving before
> > calling
> > MPI_Recv?
> > 
> > ? Pavan
> > 
> > On Dec 1, 2013, at 11:43 PM, Soheil Hooshdaran <
> > shooshdaran577 at gmail.com >
> > wrote:
> > 
> > > Hello. Please tell me what is wrong with my program that it
> > > doesn't goes
> > no further than executing MPI_Send() for the first time.
> > > The file is attached
> > > 
> > > 
> > > On Sat, Nov 30, 2013 at 7:02 PM, Soheil Hooshdaran <
> > shooshdaran577 at gmail.com > wrote:
> > > So what do I have to do now, sir? Especially regarding my
> > > Bcast()s a,d
> > Recv()s
> > > 
> > > 
> > > On Sat, Nov 30, 2013 at 1:05 AM, Pavan Balaji <
> > > balaji at mcs.anl.gov >
> > wrote:
> > > 
> > > Please keep discuss at mpich.org cc?ed.
> > > 
> > > On Nov 29, 2013, at 2:19 PM, Soheil Hooshdaran <
> > > shooshdaran577 at gmail.com >
> > wrote:
> > > > executing send for the 3th time
> > > > executed send for the 3th time, sending 40 bytes
> > > > Fatal error in MPI_Recv: Message truncated, error stack:
> > > > MPI_Recv(184).....................: MPI_Recv(buf=0xbff95c98,
> > > > count=0,
> > MPI_INT, src=0, tag=1, MPI_COMM_WORLD, status=0xbff95c70) failed
> > > > MPIDI_CH3U_Receive_data_found(131): Message from rank 0 and tag
> > > > 1
> > truncated; 160 bytes received but buffer size is 0
> > > 
> > > I don?t think I can explain the error any better than what the
> > > message
> > above already says.
> > > 
> > > --
> > > Pavan Balaji
> > > http://www.mcs.anl.gov/~balaji
> > > 
> > > 
> > > <p1_Hooshdaran_static[debug].cpp>
> > 
> > --
> > Pavan Balaji
> > http://www.mcs.anl.gov/~balaji
> > 
> > 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.mpich.org/pipermail/discuss/attachments/20131202/08c7d090/attachment.html
> >
> 
> ------------------------------
> 
> _______________________________________________
> discuss mailing list
> discuss at mpich.org
> https://lists.mpich.org/mailman/listinfo/discuss
> 
> End of discuss Digest, Vol 14, Issue 2
> **************************************
> 
> 
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss



More information about the discuss mailing list