<div dir="ltr">Re-adding MPICH-discuss. Please don't remove the mailing list from the CC.<div><br></div><div>I'm not sure what the exact problem is. It's not a problem with your code, so it seems to be a problem with the setup. It could be that you have multiple MPI installations on your machine. When you do `which mpirun`, is it the same installation as `which mpicc` or `which mpiexec`? Do you have the same versions of MPI installed on your remote machines?</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 23, 2013 at 9:16 AM, urmila pol <span dir="ltr"><<a href="mailto:urmilec@gmail.com" target="_blank">urmilec@gmail.com</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">hello sir,<br><br><div>I use mpich-3.0.4 version. What is the exact problem. I want<br></div><div> to know .<br>

</div></div><div class="gmail_extra"><div class="im"><br clear="all"><div><div dir="ltr"><div>With regards,<br>

<br>Dr.Urmila R. Pol<br>Assistant Professor,<br>Department of computer Science,</div>
<div>Shivaji University, Kolhapur.</div></div></div>
<br><br></div><div><div class="h5"><div class="gmail_quote">On Fri, Aug 23, 2013 at 5:56 AM, Wesley Bland <span dir="ltr"><<a href="mailto:wbland@mcs.anl.gov" target="_blank">wbland@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">You code looks pretty much fine to me. The only issue I see is that you should pass argc and argv to MPI_Init, not NULL. That probably isn't causing the issue though.<div><br></div><div>Which version of MPICH are you using (mpicc -v)?<div>



<div><br>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 23, 2013 at 1:35 AM, urmila pol <span dir="ltr"><<a href="mailto:urmilec@gmail.com" target="_blank">urmilec@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





Dear sir,<br>
<br>
     I have attached all the files and my errors into errorfile please<br>
guide me what happen<br>
in that case. program is not working for multiple host.<br>
my host file is mfile. code is hello2.c<br>
waitibg for ur reply.<br>
<div><div><br>
On 8/22/13, Wesley Bland <<a href="mailto:wbland@mcs.anl.gov" target="_blank">wbland@mcs.anl.gov</a>> wrote:<br>
> Edit:<br>
><br>
> Can you attach you machine file and the *smallest amount of code that will<br>
> reproduce the error*. It's tough to dig through huge amounts of someone<br>
> else's code to find the error and while you're trying to reduce the amount<br>
> of code, you often find the issue.<br>
><br>
> Thanks,<br>
> Wesley<br>
><br>
><br>
> On Thu, Aug 22, 2013 at 3:46 AM, Mahesh Doijade<br>
> <<a href="mailto:maheshdoijade@gmail.com" target="_blank">maheshdoijade@gmail.com</a>>wrote:<br>
><br>
>> Can you attached your machinefile, your code and detailed error output.<br>
>><br>
>><br>
>> On Tue, Aug 20, 2013 at 4:11 PM, urmila pol <<a href="mailto:urmilec@gmail.com" target="_blank">urmilec@gmail.com</a>> wrote:<br>
>><br>
>>> Dear sir,<br>
>>><br>
>>> I was given following command it will give floating point error .<br>
>>> #mpirun -f mfile -np 2  hello4<br>
>>> Floating point exception<br>
>>><br>
>>> if I give following it will execute for single node<br>
>>><br>
>>> [root@masternode ~]# mpirun -np 2 hello4<br>
>>> Hello world from processor <a href="http://masternode.csd.com" target="_blank">masternode.csd.com</a>, rank 0 out of 2<br>
>>> processors<br>
>>> Hello world from processor <a href="http://masternode.csd.com" target="_blank">masternode.csd.com</a>, rank 1 out of 2<br>
>>> processors<br>
>>> [root@masternode ~]#<br>
>>><br>
>>> Please guide me for above error .waiting for ur reply.<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> On 8/20/13, urmila pol <<a href="mailto:urmilec@gmail.com" target="_blank">urmilec@gmail.com</a>> wrote:<br>
>>> > I do everything now i have one error flaoting point exception i am<br>
>>> > running my program now<br>
>>> > waiting for ur reply<br>
>>><br>
>>> ><br>
>>> > With regards,<br>
>>> ><br>
>>> > Dr.Urmila R. Pol<br>
>>> > Assistant Professor,<br>
>>> > Department of computer Science,<br>
>>> > Shivaji University, Kolhapur.<br>
>>> ><br>
>>> ><br>
>>> > On Tue, Aug 20, 2013 at 10:44 AM, Mahesh Doijade<br>
>>> > <<a href="mailto:maheshdoijade@gmail.com" target="_blank">maheshdoijade@gmail.com</a>>wrote:<br>
>>><br>
>>> ><br>
>>> >><br>
>>> >>      The issue seems to be that you have probably not created a<br>
>>> >> machinefile which consists of node name to number of processes<br>
>>> >> mapping<br>
>>> >> and<br>
>>> >> this file should be present in the same dir. of the other nodes on<br>
>>> which<br>
>>> >> you are launching other MPI processes, this is required in case you<br>
>>> want<br>
>>> >> to<br>
>>> >> run the MPI program across the two or more nodes, you can find more<br>
>>> >> details<br>
>>> >> of the format in which this information has to be in the machinefile<br>
>>> and<br>
>>> >> the other requisite steps need for running your MPI program across<br>
>>> >> multiple<br>
>>> >> nodes from this link<br>
>>> >> <a href="http://wiki.mpich.org/mpich/index.php/Using_the_Hydra_Process_Manager" target="_blank">http://wiki.mpich.org/mpich/index.php/Using_the_Hydra_Process_Manager</a><br>
>>> >>        Also, in order to launch the processes across multiple nodes<br>
>>> >> you<br>
>>> >> need to do ssh passwordless login among those nodes, in case you are<br>
>>> >> using<br>
>>> >> ssh as the connection mechanism, you can find more details about the<br>
>>> >> procedure for ssh passwordless login over here<br>
>>> >> <a href="http://www.techlitic.com/ssh-passwordless-login.html" target="_blank">http://www.techlitic.com/ssh-passwordless-login.html</a><br>
>>> >><br>
>>> >><br>
>>> >> Regards,<br>
>>> >> Mahesh Doijade,<br>
>>> >> <a href="http://www.techdarting.com/" target="_blank">http://www.techdarting.com/</a><br>
>>> >><br>
>>> >><br>
>>> >> On Tue, Aug 20, 2013 at 8:34 AM, Pavan Balaji <<a href="mailto:balaji@mcs.anl.gov" target="_blank">balaji@mcs.anl.gov</a>><br>
>>> wrote:<br>
>>> >><br>
>>> >>><br>
>>> >>> I'm pasting the error inline, for others' information.<br>
>>> >>><br>
>>> >>> FYI, the error is "unable to open host file: machinefile".<br>
>>> >>><br>
>>> >>> ----8<----<br>
>>> >>> mpirun -f machinefile -n 2 /home/urp/mpich-install/hello<br>
>>> >>> [<a href="mailto:mpiexec@masternode.csd.com" target="_blank">mpiexec@masternode.csd.com</a>] HYDU_parse_hostfile<br>
>>> >>> (./utils/args/args.c:323): unable to open host file: machinefile<br>
>>> >>> [<a href="mailto:mpiexec@masternode.csd.com" target="_blank">mpiexec@masternode.csd.com</a>] mfile_fn (./ui/mpich/utils.c:341):<br>
>>> >>> error<br>
>>> >>> parsing hostfile<br>
>>> >>> [<a href="mailto:mpiexec@masternode.csd.com" target="_blank">mpiexec@masternode.csd.com</a>] match_arg (./utils/args/args.c:153):<br>
>>> match<br>
>>> >>> handler returned error<br>
>>> >>> [<a href="mailto:mpiexec@masternode.csd.com" target="_blank">mpiexec@masternode.csd.com</a>] HYDU_parse_array<br>
>>> (./utils/args/args.c:175):<br>
>>> >>> argument matching returned error<br>
>>> >>> [<a href="mailto:mpiexec@masternode.csd.com" target="_blank">mpiexec@masternode.csd.com</a>] parse_args (./ui/mpich/utils.c:1609):<br>
>>> error<br>
>>> >>> parsing input array<br>
>>> >>> [<a href="mailto:mpiexec@masternode.csd.com" target="_blank">mpiexec@masternode.csd.com</a>] HYD_uii_mpx_get_parameters<br>
>>> >>> (./ui/mpich/utils.c:1660): unable to parse user arguments<br>
>>> >>> [<a href="mailto:mpiexec@masternode.csd.com" target="_blank">mpiexec@masternode.csd.com</a>] main (./ui/mpich/mpiexec.c:153): error<br>
>>> >>> parsing parameters<br>
>>> >>> [root@masternode ~]#<br>
>>> >>> ----8<----<br>
>>> >>><br>
>>> >>> On 08/19/2013 01:27 AM, urmila pol wrote:<br>
>>> >>><br>
>>> >>>> Dear sir,<br>
>>> >>>><br>
>>> >>>> I have attaching the screenshots of my errors please guide me<br>
>>> .waiting<br>
>>> >>>> for reply.<br>
>>> >>>><br>
>>> >>>><br>
>>> >>>> With regards,<br>
>>> >>>><br>
>>> >>>> Dr.Urmila R. Pol<br>
>>> >>>> Assistant Professor,<br>
>>> >>>> Department of computer Science,<br>
>>> >>>> Shivaji University, Kolhapur.<br>
>>> >>>><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>
>>> >>> 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>
>>> <a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a>><br>
>>> >>><br>
>>> >><br>
>>> >><br>
>>> >><br>
>>> >><br>
>>> >><br>
>>> >><br>
>>> >><br>
>>> >><br>
>>> ><br>
>>><br>
>>><br>
>>> --<br>
>>><br>
>>> With regards,<br>
>>><br>
>>> Dr.Urmila R. Pol<br>
>>> Assistant Professor,<br>
>>> Department of computer Science,<br>
>>> Shivaji University, Kolhapur.<br>
>>><br>
>><br>
>><br>
>><br>
>> --<br>
>><br>
>> Regards,<br>
>> -- Mahesh Doijade<br>
>><br>
>><br>
>><br>
>><br>
>><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>
>><br>
><br>
<br>
<br>
--<br>
With regards,<br>
<br>
Dr.Urmila R. Pol<br>
Assistant Professor,<br>
Department of computer Science,<br>
Shivaji University, Kolhapur.<br>
</div></div></blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>