<div dir="ltr">Why is my count zero? I am giving a formula for count, and am Bcasting the variable 'n'.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 2, 2013 at 5:36 PM, <span dir="ltr"><<a href="mailto:discuss-request@mpich.org" target="_blank">discuss-request@mpich.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send discuss mailing list submissions to<br>
<a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:discuss-request@mpich.org">discuss-request@mpich.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:discuss-owner@mpich.org">discuss-owner@mpich.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of discuss digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Undefined reference to MPL (Jeff Hammond)<br>
2. Re: Undefined reference to MPL (Pavan Balaji)<br>
3. Re: MPI_Recv problem (Pavan Balaji)<br>
4. Re: MPI_Recv problem (Soheil Hooshdaran)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 2 Dec 2013 07:47:33 -0600<br>
From: Jeff Hammond <<a href="mailto:jeff.science@gmail.com">jeff.science@gmail.com</a>><br>
To: "<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>" <<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>><br>
Subject: Re: [mpich-discuss] Undefined reference to MPL<br>
Message-ID: <<a href="mailto:F3664C9C-8F59-41F7-A15D-2B0F47D7D785@gmail.com">F3664C9C-8F59-41F7-A15D-2B0F47D7D785@gmail.com</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
"mpicc -show" will give you all the flags you need to link MPICH (or MVAPICH). You're missing more than one library.<br>
<br>
Jeff<br>
<br>
Sent from my iPhone<br>
<br>
> On Dec 2, 2013, at 2:48 AM, Francisco Pastor <<a href="mailto:paco@ceam.es">paco@ceam.es</a>> wrote:<br>
><br>
> Hi<br>
><br>
> I can only see -lmpich. Maybe should try -lmpl.<br>
><br>
> MPI_PATH=/usr/local/mpich2-1.0.5p4<br>
> PAR_INCS=-I$(MPI_PATH)/src/include<br>
> PAR_LIBS=-L$(MPI_PATH)/lib/ -lmpich<br>
><br>
><br>
> 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?<br>
><br>
> Thank you very much<br>
><br>
> El 29/11/2013 11:37, Reuti escribi?:<br>
>> Hi,<br>
>><br>
>>> Am 29.11.2013 um 09:07 schrieb Francisco Pastor:<br>
>>><br>
>>> 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.<br>
>>><br>
>>> 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?<br>
>>><br>
>>> Thanks for your help<br>
>> How is RAMS linked during build - maybe it uses not the mpi... wrappers but links directly and missed to include -lmpl<br>
>><br>
>> -- Reuti<br>
>><br>
>><br>
>>> /usr/local/lib//libmpich.a(param_vals.o):param_vals.c:(.text+0xb4d): more undefined references to `MPL_env2bool' follow<br>
>>> /usr/local/lib//libmpich.a(param_vals.o): In function `MPIR_Param_init_params':<br>
>>> param_vals.c:(.text+0xbac): undefined reference to `MPL_env2range'<br>
>>> param_vals.c:(.text+0xbd1): undefined reference to `MPL_env2range'<br>
>>> param_vals.c:(.text+0xbf6): undefined reference to `MPL_env2range'<br>
>>> param_vals.c:(.text+0xc1b): undefined reference to `MPL_env2range'<br>
>>> param_vals.c:(.text+0xc38): undefined reference to `MPL_env2int'<br>
>>> param_vals.c:(.text+0xc55): undefined reference to `MPL_env2int'<br>
>>> /usr/local/lib//libmpich.a(mpid_init.o): In function `MPID_Init':<br>
>>> mpid_init.c:(.text+0x194): undefined reference to `MPL_env2bool'<br>
>>> /usr/local/lib//libmpich.a(mpid_vc.o): In function `MPIDI_Populate_vc_node_ids':<br>
>>> mpid_vc.c:(.text+0xb66): undefined reference to `MPL_env2int'<br>
>>> mpid_vc.c:(.text+0xb7d): undefined reference to `MPL_env2int'<br>
>>> /usr/local/lib//libmpich.a(mpi_t_util.o): In function `MPIU_Tool_strncpy':<br>
>>> mpi_t_util.c:(.text+0x49c): undefined reference to `MPL_strncpy'<br>
>>> make: *** [rams-6.0-opt] Error 1<br>
>>><br>
>>> --<br>
>>> -----------<br>
>>> Dr. Francisco Pastor<br>
>>> Meteorology department, Instituto Universitario CEAM-UMH<br>
>>> <a href="http://www.ceam.es" target="_blank">http://www.ceam.es</a><br>
>>> -----------<br>
>>> Mendeley profile: <a href="http://www.mendeley.com/profiles/francisco-pastor1/" target="_blank">http://www.mendeley.com/profiles/francisco-pastor1/</a><br>
>>> Google Scholar: <a href="http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es" target="_blank">http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es</a><br>
>>> Researcher ID: <a href="http://www.researcherid.com/rid/B-8331-2008" target="_blank">http://www.researcherid.com/rid/B-8331-2008</a><br>
>>> Cosis profile: <a href="http://www.cosis.net/profile/francisco.pastor" target="_blank">http://www.cosis.net/profile/francisco.pastor</a><br>
>>> -----------<br>
>>> mail: <a href="mailto:paco@ceam.es">paco@ceam.es</a><br>
>>> skype: paco.pastor.guzman<br>
>>> -----------<br>
>>> Parque Tecnologico, C/ Charles R. Darwin, 14<br>
>>> 46980 PATERNA (Valencia), Spain<br>
>>> Tlf. 96 131 82 27 - Fax. 96 131 81 90<br>
>>><br>
>>><br>
>>> ---------------------------------------------------------------------<br>
>>> 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.<br>
>>><br>
>>> 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).<br>
>>><br>
>>> 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.<br>
>>><br>
>>> 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).<br>
>>><br>
>>><br>
>>><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>
>> _______________________________________________<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>
><br>
> --<br>
> -----------<br>
> Dr. Francisco Pastor<br>
> Meteorology department, Instituto Universitario CEAM-UMH<br>
> <a href="http://www.ceam.es" target="_blank">http://www.ceam.es</a><br>
> -----------<br>
> Mendeley profile: <a href="http://www.mendeley.com/profiles/francisco-pastor1/" target="_blank">http://www.mendeley.com/profiles/francisco-pastor1/</a><br>
> Google Scholar: <a href="http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es" target="_blank">http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es</a><br>
> Researcher ID: <a href="http://www.researcherid.com/rid/B-8331-2008" target="_blank">http://www.researcherid.com/rid/B-8331-2008</a><br>
> Cosis profile: <a href="http://www.cosis.net/profile/francisco.pastor" target="_blank">http://www.cosis.net/profile/francisco.pastor</a><br>
> -----------<br>
> mail: <a href="mailto:paco@ceam.es">paco@ceam.es</a><br>
> skype: paco.pastor.guzman<br>
> -----------<br>
> Parque Tecnologico, C/ Charles R. Darwin, 14<br>
> 46980 PATERNA (Valencia), Spain<br>
> Tlf. 96 131 82 27 - Fax. 96 131 81 90<br>
><br>
><br>
> ---------------------------------------------------------------------<br>
> 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.<br>
><br>
> 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).<br>
><br>
> 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.<br>
><br>
> 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).<br>
><br>
><br>
><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>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 2 Dec 2013 07:49:21 -0600<br>
From: Pavan Balaji <<a href="mailto:balaji@mcs.anl.gov">balaji@mcs.anl.gov</a>><br>
To: <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
Subject: Re: [mpich-discuss] Undefined reference to MPL<br>
Message-ID: <<a href="mailto:0416767D-97DF-432A-93AF-7469A62C84A7@mcs.anl.gov">0416767D-97DF-432A-93AF-7469A62C84A7@mcs.anl.gov</a>><br>
Content-Type: text/plain; charset=windows-1252<br>
<br>
<br>
Actually, you are missing two: libmpl and libopa. But the latter might not be used for most common platforms.<br>
<br>
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.<br>
<br>
? Pavan<br>
<br>
On Dec 2, 2013, at 7:47 AM, Jeff Hammond <<a href="mailto:jeff.science@gmail.com">jeff.science@gmail.com</a>> wrote:<br>
<br>
> "mpicc -show" will give you all the flags you need to link MPICH (or MVAPICH). You're missing more than one library.<br>
><br>
> Jeff<br>
><br>
> Sent from my iPhone<br>
><br>
>> On Dec 2, 2013, at 2:48 AM, Francisco Pastor <<a href="mailto:paco@ceam.es">paco@ceam.es</a>> wrote:<br>
>><br>
>> Hi<br>
>><br>
>> I can only see -lmpich. Maybe should try -lmpl.<br>
>><br>
>> MPI_PATH=/usr/local/mpich2-1.0.5p4<br>
>> PAR_INCS=-I$(MPI_PATH)/src/include<br>
>> PAR_LIBS=-L$(MPI_PATH)/lib/ -lmpich<br>
>><br>
>><br>
>> 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?<br>
>><br>
>> Thank you very much<br>
>><br>
>> El 29/11/2013 11:37, Reuti escribi?:<br>
>>> Hi,<br>
>>><br>
>>>> Am 29.11.2013 um 09:07 schrieb Francisco Pastor:<br>
>>>><br>
>>>> 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.<br>
>>>><br>
>>>> 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?<br>
>>>><br>
>>>> Thanks for your help<br>
>>> How is RAMS linked during build - maybe it uses not the mpi... wrappers but links directly and missed to include -lmpl<br>
>>><br>
>>> -- Reuti<br>
>>><br>
>>><br>
>>>> /usr/local/lib//libmpich.a(param_vals.o):param_vals.c:(.text+0xb4d): more undefined references to `MPL_env2bool' follow<br>
>>>> /usr/local/lib//libmpich.a(param_vals.o): In function `MPIR_Param_init_params':<br>
>>>> param_vals.c:(.text+0xbac): undefined reference to `MPL_env2range'<br>
>>>> param_vals.c:(.text+0xbd1): undefined reference to `MPL_env2range'<br>
>>>> param_vals.c:(.text+0xbf6): undefined reference to `MPL_env2range'<br>
>>>> param_vals.c:(.text+0xc1b): undefined reference to `MPL_env2range'<br>
>>>> param_vals.c:(.text+0xc38): undefined reference to `MPL_env2int'<br>
>>>> param_vals.c:(.text+0xc55): undefined reference to `MPL_env2int'<br>
>>>> /usr/local/lib//libmpich.a(mpid_init.o): In function `MPID_Init':<br>
>>>> mpid_init.c:(.text+0x194): undefined reference to `MPL_env2bool'<br>
>>>> /usr/local/lib//libmpich.a(mpid_vc.o): In function `MPIDI_Populate_vc_node_ids':<br>
>>>> mpid_vc.c:(.text+0xb66): undefined reference to `MPL_env2int'<br>
>>>> mpid_vc.c:(.text+0xb7d): undefined reference to `MPL_env2int'<br>
>>>> /usr/local/lib//libmpich.a(mpi_t_util.o): In function `MPIU_Tool_strncpy':<br>
>>>> mpi_t_util.c:(.text+0x49c): undefined reference to `MPL_strncpy'<br>
>>>> make: *** [rams-6.0-opt] Error 1<br>
>>>><br>
>>>> --<br>
>>>> -----------<br>
>>>> Dr. Francisco Pastor<br>
>>>> Meteorology department, Instituto Universitario CEAM-UMH<br>
>>>> <a href="http://www.ceam.es" target="_blank">http://www.ceam.es</a><br>
>>>> -----------<br>
>>>> Mendeley profile: <a href="http://www.mendeley.com/profiles/francisco-pastor1/" target="_blank">http://www.mendeley.com/profiles/francisco-pastor1/</a><br>
>>>> Google Scholar: <a href="http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es" target="_blank">http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es</a><br>
>>>> Researcher ID: <a href="http://www.researcherid.com/rid/B-8331-2008" target="_blank">http://www.researcherid.com/rid/B-8331-2008</a><br>
>>>> Cosis profile: <a href="http://www.cosis.net/profile/francisco.pastor" target="_blank">http://www.cosis.net/profile/francisco.pastor</a><br>
>>>> -----------<br>
>>>> mail: <a href="mailto:paco@ceam.es">paco@ceam.es</a><br>
>>>> skype: paco.pastor.guzman<br>
>>>> -----------<br>
>>>> Parque Tecnologico, C/ Charles R. Darwin, 14<br>
>>>> 46980 PATERNA (Valencia), Spain<br>
>>>> Tlf. 96 131 82 27 - Fax. 96 131 81 90<br>
>>>><br>
>>>><br>
>>>> ---------------------------------------------------------------------<br>
>>>> 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.<br>
>>>><br>
>>>> 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).<br>
>>>><br>
>>>> 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.<br>
>>>><br>
>>>> 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).<br>
>>>><br>
>>>><br>
>>>><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>
>>> _______________________________________________<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>
>><br>
>> --<br>
>> -----------<br>
>> Dr. Francisco Pastor<br>
>> Meteorology department, Instituto Universitario CEAM-UMH<br>
>> <a href="http://www.ceam.es" target="_blank">http://www.ceam.es</a><br>
>> -----------<br>
>> Mendeley profile: <a href="http://www.mendeley.com/profiles/francisco-pastor1/" target="_blank">http://www.mendeley.com/profiles/francisco-pastor1/</a><br>
>> Google Scholar: <a href="http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es" target="_blank">http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es</a><br>
>> Researcher ID: <a href="http://www.researcherid.com/rid/B-8331-2008" target="_blank">http://www.researcherid.com/rid/B-8331-2008</a><br>
>> Cosis profile: <a href="http://www.cosis.net/profile/francisco.pastor" target="_blank">http://www.cosis.net/profile/francisco.pastor</a><br>
>> -----------<br>
>> mail: <a href="mailto:paco@ceam.es">paco@ceam.es</a><br>
>> skype: paco.pastor.guzman<br>
>> -----------<br>
>> Parque Tecnologico, C/ Charles R. Darwin, 14<br>
>> 46980 PATERNA (Valencia), Spain<br>
>> Tlf. 96 131 82 27 - Fax. 96 131 81 90<br>
>><br>
>><br>
>> ---------------------------------------------------------------------<br>
>> 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.<br>
>><br>
>> 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).<br>
>><br>
>> 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.<br>
>><br>
>> 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).<br>
>><br>
>><br>
>><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>
> _______________________________________________<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>
<br>
--<br>
Pavan Balaji<br>
<a href="http://www.mcs.anl.gov/~balaji" target="_blank">http://www.mcs.anl.gov/~balaji</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 2 Dec 2013 07:51:21 -0600<br>
From: Pavan Balaji <<a href="mailto:balaji@mcs.anl.gov">balaji@mcs.anl.gov</a>><br>
To: Soheil Hooshdaran <<a href="mailto:shooshdaran577@gmail.com">shooshdaran577@gmail.com</a>><br>
Cc: <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
Subject: Re: [mpich-discuss] MPI_Recv problem<br>
Message-ID: <<a href="mailto:636EEA47-AAD0-4146-AB5F-BDFDD92C0B17@mcs.anl.gov">636EEA47-AAD0-4146-AB5F-BDFDD92C0B17@mcs.anl.gov</a>><br>
Content-Type: text/plain; charset=windows-1252<br>
<br>
<br>
Did you try printing how many bytes you are receiving before calling MPI_Recv?<br>
<br>
? Pavan<br>
<br>
On Dec 1, 2013, at 11:43 PM, Soheil Hooshdaran <<a href="mailto:shooshdaran577@gmail.com">shooshdaran577@gmail.com</a>> wrote:<br>
<br>
> 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.<br>
> The file is attached<br>
><br>
><br>
> On Sat, Nov 30, 2013 at 7:02 PM, Soheil Hooshdaran <<a href="mailto:shooshdaran577@gmail.com">shooshdaran577@gmail.com</a>> wrote:<br>
> So what do I have to do now, sir? Especially regarding my Bcast()s a,d Recv()s<br>
><br>
><br>
> On Sat, Nov 30, 2013 at 1:05 AM, Pavan Balaji <<a href="mailto:balaji@mcs.anl.gov">balaji@mcs.anl.gov</a>> wrote:<br>
><br>
> Please keep <a href="mailto:discuss@mpich.org">discuss@mpich.org</a> cc?ed.<br>
><br>
> On Nov 29, 2013, at 2:19 PM, Soheil Hooshdaran <<a href="mailto:shooshdaran577@gmail.com">shooshdaran577@gmail.com</a>> wrote:<br>
> > executing send for the 3th time<br>
> > executed send for the 3th time, sending 40 bytes<br>
> > Fatal error in MPI_Recv: Message truncated, error stack:<br>
> > MPI_Recv(184).....................: MPI_Recv(buf=0xbff95c98, count=0, MPI_INT, src=0, tag=1, MPI_COMM_WORLD, status=0xbff95c70) failed<br>
> > MPIDI_CH3U_Receive_data_found(131): Message from rank 0 and tag 1 truncated; 160 bytes received but buffer size is 0<br>
><br>
> I don?t think I can explain the error any better than what the message above already says.<br>
><br>
> --<br>
> Pavan Balaji<br>
> <a href="http://www.mcs.anl.gov/~balaji" target="_blank">http://www.mcs.anl.gov/~balaji</a><br>
><br>
><br>
> <p1_Hooshdaran_static[debug].cpp><br>
<br>
--<br>
Pavan Balaji<br>
<a href="http://www.mcs.anl.gov/~balaji" target="_blank">http://www.mcs.anl.gov/~balaji</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Mon, 2 Dec 2013 17:36:06 +0330<br>
From: Soheil Hooshdaran <<a href="mailto:shooshdaran577@gmail.com">shooshdaran577@gmail.com</a>><br>
To: Pavan Balaji <<a href="mailto:balaji@mcs.anl.gov">balaji@mcs.anl.gov</a>><br>
Cc: <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
Subject: Re: [mpich-discuss] MPI_Recv problem<br>
Message-ID:<br>
<CAKtsx+9b-bOuPkpcr9Tv3Gd0o6H==_<a href="mailto:woFowbo4YrB0UDLwPKbA@mail.gmail.com">woFowbo4YrB0UDLwPKbA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
What should I use?<br>
<br>
Even the statement right after MPI_Sent doesn't execute. My code has<br>
something like this:<br>
//////////////////////in the root process<br>
while(i<iWorldSize)<br>
{<br>
cout << "executing send for the " << i << "th time" << endl;<br>
MPI_Send( A[i], n/iWorldSize * m, MPI_INT, i, itag, MPI_COMM_WORLD );<br>
sent++;<br>
cout << "executed send for the " << i << "th time, sending " <<<br>
n/iWorldSize * m << " bytes to processor " << i << endl;<br>
<br>
i+=n/iWorldSize;<br>
}//end while<br>
<br>
<br>
////////////////////in the slave process<br>
while(sent)<br>
{<br>
cout << "**********sent= " << sent << endl;<br>
cout << "\n\n\n**********Executing receive*******" << endl;<br>
MPI_Recv(&buffer, n/iWorldSize*m, MPI_INT, 0, itag, MPI_COMM_WORLD,<br>
&status);<br>
sent=0;<br>
cout << "**********receive executed***********" << endl;<br>
}<br>
<br>
<br>
On Mon, Dec 2, 2013 at 5:21 PM, Pavan Balaji <<a href="mailto:balaji@mcs.anl.gov">balaji@mcs.anl.gov</a>> wrote:<br>
<br>
><br>
> Did you try printing how many bytes you are receiving before calling<br>
> MPI_Recv?<br>
><br>
> ? Pavan<br>
><br>
> On Dec 1, 2013, at 11:43 PM, Soheil Hooshdaran <<a href="mailto:shooshdaran577@gmail.com">shooshdaran577@gmail.com</a>><br>
> wrote:<br>
><br>
> > Hello. Please tell me what is wrong with my program that it doesn't goes<br>
> no further than executing MPI_Send() for the first time.<br>
> > The file is attached<br>
> ><br>
> ><br>
> > On Sat, Nov 30, 2013 at 7:02 PM, Soheil Hooshdaran <<br>
> <a href="mailto:shooshdaran577@gmail.com">shooshdaran577@gmail.com</a>> wrote:<br>
> > So what do I have to do now, sir? Especially regarding my Bcast()s a,d<br>
> Recv()s<br>
> ><br>
> ><br>
> > On Sat, Nov 30, 2013 at 1:05 AM, Pavan Balaji <<a href="mailto:balaji@mcs.anl.gov">balaji@mcs.anl.gov</a>><br>
> wrote:<br>
> ><br>
> > Please keep <a href="mailto:discuss@mpich.org">discuss@mpich.org</a> cc?ed.<br>
> ><br>
> > On Nov 29, 2013, at 2:19 PM, Soheil Hooshdaran <<a href="mailto:shooshdaran577@gmail.com">shooshdaran577@gmail.com</a>><br>
> wrote:<br>
> > > executing send for the 3th time<br>
> > > executed send for the 3th time, sending 40 bytes<br>
> > > Fatal error in MPI_Recv: Message truncated, error stack:<br>
> > > MPI_Recv(184).....................: MPI_Recv(buf=0xbff95c98, count=0,<br>
> MPI_INT, src=0, tag=1, MPI_COMM_WORLD, status=0xbff95c70) failed<br>
> > > MPIDI_CH3U_Receive_data_found(131): Message from rank 0 and tag 1<br>
> truncated; 160 bytes received but buffer size is 0<br>
> ><br>
> > I don?t think I can explain the error any better than what the message<br>
> above already says.<br>
> ><br>
> > --<br>
> > Pavan Balaji<br>
> > <a href="http://www.mcs.anl.gov/~balaji" target="_blank">http://www.mcs.anl.gov/~balaji</a><br>
> ><br>
> ><br>
> > <p1_Hooshdaran_static[debug].cpp><br>
><br>
> --<br>
> Pavan Balaji<br>
> <a href="http://www.mcs.anl.gov/~balaji" target="_blank">http://www.mcs.anl.gov/~balaji</a><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.mpich.org/pipermail/discuss/attachments/20131202/08c7d090/attachment.html" target="_blank">http://lists.mpich.org/pipermail/discuss/attachments/20131202/08c7d090/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
discuss mailing list<br>
<a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
<br>
End of discuss Digest, Vol 14, Issue 2<br>
**************************************<br>
</blockquote></div><br></div>