<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>RE: [mpich-discuss] SMPD, Problem launching when using -host</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>&nbsp;Hi,<BR>
&nbsp; Can you send us the debug output of mpiexec and smpd ? Please follow the instructions below to send us the debug output,<BR>
<BR>
# Stop any instances of smpd using the command, smpd -stop<BR>
# Start smpd in the debug mode using the command, smpd -d<BR>
# Run a non-MPI program with mpiexec in the verbose mode using the command, mpiexec -verbose -n 1 hostname : -host IPADDRESS_OF_roobarb -n 1 hostname<BR>
<BR>
# Run an MPI program (cpi.exe provided with MPICH2) with mpiexec in the verbose mode using the command, mpiexec -verbose -n 1 cpi.exe : -host IPADDRESS_OF_roobarb -n 1 cpi.exe<BR>
<BR>
# Send us the debug/verbose outputs of mpiexec and smpd.<BR>
<BR>
&nbsp; Let us know the results.<BR>
<BR>
Regards,<BR>
Jayesh<BR>
<BR>
-----Original Message-----<BR>
From: owner-mpich-discuss@mcs.anl.gov [<A HREF="mailto:owner-mpich-discuss@mcs.anl.gov">mailto:owner-mpich-discuss@mcs.anl.gov</A>] On Behalf Of James S Perrin<BR>
Sent: Tuesday, October 07, 2008 5:25 AM<BR>
Cc: mpich-discuss@mcs.anl.gov<BR>
Subject: Re: [mpich-discuss] SMPD, Problem launching when using -host<BR>
<BR>
Hi,<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp; No I get the same error if I use the ipaddress.<BR>
<BR>
Regards<BR>
James<BR>
<BR>
<BR>
Jayesh Krishna wrote:<BR>
&gt;&nbsp; Hi,<BR>
&gt;&nbsp;&nbsp; Does it work if you specify the ipaddress of the machine instead of<BR>
&gt; hostname (mpiexec -n 1 master : -host IPADDRESS_OF_roobarb -n 1 slave) ?<BR>
&gt;<BR>
&gt; Regards,<BR>
&gt; Jayesh<BR>
&gt;<BR>
&gt; -----Original Message-----<BR>
&gt; From: James S Perrin [<A HREF="mailto:james.s.perrin@manchester.ac.uk">mailto:james.s.perrin@manchester.ac.uk</A>]<BR>
&gt; Sent: Monday, October 06, 2008 5:18 AM<BR>
&gt; To: Jayesh Krishna<BR>
&gt; Cc: mpich-discuss@mcs.anl.gov<BR>
&gt; Subject: Re: [mpich-discuss] SMPD, Problem launching when using -host<BR>
&gt;<BR>
&gt; Hi,<BR>
&gt;<BR>
&gt; Jayesh Krishna wrote:<BR>
&gt;&nbsp; &gt;&nbsp; Hi,<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt;&nbsp; &gt;&gt; mpiexec -n 1 -host roobarb master : -n 1 slave<BR>
&gt;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The command above(&quot;-host&quot; option specified for only one<BR>
&gt;&nbsp; &gt; executable) works for me. What is the error message that you get&nbsp; &gt;<BR>
&gt; (Provide us with the snapshot of your command and the error output. It&nbsp;<BR>
&gt; &gt; would also help us if you provide more details - Is roobarb a remote&nbsp;<BR>
&gt; &gt; machine ? etc) ?<BR>
&gt;<BR>
&gt; The error is:<BR>
&gt;<BR>
&gt; [0] PMI_Init failed: FAIL - init called when another process has<BR>
&gt; exited without calling init Fatal error in MPI_Init_thread: Other MPI<BR>
&gt; error, error stack:<BR>
&gt; MPIR_Init_thread(294): Initialization failed<BR>
&gt; MPID_Init(82)........: channel initialization failed<BR>
&gt; MPID_Init(333).......: PMI_Init returned -1unable to read the cmd<BR>
&gt; header on the pmi context, generic socket failure, error stack:<BR>
&gt; MPIDU_Sock_wait(2603): The specified network name is no longer<BR>
&gt; available. (errno 64).<BR>
&gt;<BR>
&gt; job aborted:<BR>
&gt; rank: node: exit code[: error message]<BR>
&gt; 0: ROOBARB: 3: Fatal error in MPI_Init_thread: Other MPI error, error stack:<BR>
&gt; MPIR_Init_thread(294): Initialization failed<BR>
&gt; MPID_Init(82)........: channel initialization failed<BR>
&gt; MPID_Init(333).......: PMI_Init returned -1<BR>
&gt; 1: roobarb: -1073741515<BR>
&gt;<BR>
&gt; The second process is not starting for some reason.<BR>
&gt;<BR>
&gt; roobarb happens to be the local machine in this case but the problem<BR>
&gt; also occurs on a cluster.<BR>
&gt;<BR>
&gt; It will launch correctly if I use:<BR>
&gt;<BR>
&gt; mpiexec -n 1 master : -n 1 slave - SUCCESS<BR>
&gt;<BR>
&gt; which should be no different from:<BR>
&gt;<BR>
&gt; mpiexec -n 1 master : -host roobarb -n 1 slave - FAILS<BR>
&gt;<BR>
&gt; when everything is running on roobarb.<BR>
&gt;<BR>
&gt;&nbsp; &gt;&nbsp; &gt;&gt; mpiexec -localroot -n 1 roobarb master : -host roobarb -n 1<BR>
&gt; slave&nbsp; &gt;<BR>
&gt;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; When using the &quot;-localroot&quot; option you should not specify the<BR>
&gt;&nbsp; &gt; hostname for the 1st executable. The command should be,&nbsp; &gt;&nbsp; &gt;&nbsp; &gt;&gt;<BR>
&gt; mpiexec -localroot -n 1 master : -host roobarb -n 1 slave<BR>
&gt;<BR>
&gt; sorry typo I meant if would work I used:<BR>
&gt;<BR>
&gt; mpiexec -localroot -host roobarb -n 1&nbsp; master : -host roobarb -n 1<BR>
&gt; slave<BR>
&gt;<BR>
&gt; Regards<BR>
&gt; James<BR>
&gt;<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; -----Original Message-----<BR>
&gt;&nbsp; &gt; From: owner-mpich-discuss@mcs.anl.gov&nbsp; &gt;<BR>
&gt; [<A HREF="mailto:owner-mpich-discuss@mcs.anl.gov">mailto:owner-mpich-discuss@mcs.anl.gov</A>] On Behalf Of James S Perrin&nbsp;<BR>
&gt; &gt; Sent: Friday, October 03, 2008 12:13 PM&nbsp; &gt; To: mpich&nbsp; &gt; Subject:<BR>
&gt; [mpich-discuss] SMPD, Problem launching when using -host&nbsp; &gt;&nbsp; &gt; Hi,<BR>
&gt;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Processes fail to start if -host is used for only some but not<BR>
&gt;&nbsp; &gt; all processes when launching. ie the machines that some processes&nbsp;<BR>
&gt; &gt; launch on is left up to the smpd to allocate.<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; eg<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; mpiexec -n 1 -host roobarb master : -n 1 slave&nbsp; &gt;&nbsp; &gt; when<BR>
&gt; -localroot is used the following fails unless -host is also&nbsp; &gt;<BR>
&gt; specified for the master.<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; mpiexc -localroot -n 1 roobarb master : -host roobarb -n 1 slave&nbsp; &gt;&nbsp;<BR>
&gt; &gt; Using MPICH2 1.0.7 on WinXP ia32.<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; Regards<BR>
&gt;&nbsp; &gt; James<BR>
&gt;&nbsp; &gt; --<BR>
&gt;&nbsp; &gt; ------------------------------------------------------------------------<BR>
&gt;&nbsp; &gt;&nbsp;&nbsp;&nbsp; James S. Perrin<BR>
&gt;&nbsp; &gt;&nbsp;&nbsp;&nbsp; Visualization<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt;&nbsp;&nbsp;&nbsp; Research Computing Services<BR>
&gt;&nbsp; &gt;&nbsp;&nbsp;&nbsp; The University of Manchester<BR>
&gt;&nbsp; &gt;&nbsp;&nbsp;&nbsp; Kilburn Building, Oxford Road<BR>
&gt;&nbsp; &gt;&nbsp;&nbsp;&nbsp; Manchester, M13 9PL<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt;&nbsp;&nbsp;&nbsp; t: +44 (0) 161 275 6945<BR>
&gt;&nbsp; &gt;&nbsp;&nbsp;&nbsp; e: james.perrin@manchester.ac.uk<BR>
&gt;&nbsp; &gt;&nbsp;&nbsp;&nbsp; w: www.manchester.ac.uk/researchcomputing<BR>
&gt;&nbsp; &gt; ------------------------------------------------------------------------<BR>
&gt;&nbsp; &gt;&nbsp;&nbsp; &quot;The test of intellect is the refusal to belabour the obvious&quot;<BR>
&gt;&nbsp; &gt;&nbsp;&nbsp; - Alfred Bester<BR>
&gt;&nbsp; &gt;<BR>
&gt; ----------------------------------------------------------------------<BR>
&gt;&nbsp; &gt; --<BR>
&gt;&nbsp; &gt;<BR>
&gt;<BR>
&gt; --<BR>
&gt; ------------------------------------------------------------------------<BR>
&gt;&nbsp;&nbsp;&nbsp; James S. Perrin<BR>
&gt;&nbsp;&nbsp;&nbsp; Visualization<BR>
&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp; Research Computing Services<BR>
&gt;&nbsp;&nbsp;&nbsp; The University of Manchester<BR>
&gt;&nbsp;&nbsp;&nbsp; Kilburn Building, Oxford Road<BR>
&gt;&nbsp;&nbsp;&nbsp; Manchester, M13 9PL<BR>
&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp; t: +44 (0) 161 275 6945<BR>
&gt;&nbsp;&nbsp;&nbsp; e: james.perrin@manchester.ac.uk<BR>
&gt;&nbsp;&nbsp;&nbsp; w: www.manchester.ac.uk/researchcomputing<BR>
&gt; ------------------------------------------------------------------------<BR>
&gt;&nbsp;&nbsp; &quot;The test of intellect is the refusal to belabour the obvious&quot;<BR>
&gt;&nbsp;&nbsp; - Alfred Bester<BR>
&gt; ----------------------------------------------------------------------<BR>
&gt; --<BR>
&gt;<BR>
<BR>
--<BR>
------------------------------------------------------------------------<BR>
&nbsp;&nbsp; James S. Perrin<BR>
&nbsp;&nbsp; Visualization<BR>
<BR>
&nbsp;&nbsp; Research Computing Services<BR>
&nbsp;&nbsp; The University of Manchester<BR>
&nbsp;&nbsp; Kilburn Building, Oxford Road<BR>
&nbsp;&nbsp; Manchester, M13 9PL<BR>
<BR>
&nbsp;&nbsp; t: +44 (0) 161 275 6945<BR>
&nbsp;&nbsp; e: james.perrin@manchester.ac.uk<BR>
&nbsp;&nbsp; w: www.manchester.ac.uk/researchcomputing<BR>
------------------------------------------------------------------------<BR>
&nbsp; &quot;The test of intellect is the refusal to belabour the obvious&quot;<BR>
&nbsp; - Alfred Bester<BR>
------------------------------------------------------------------------<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>