<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-2022-JP">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-2022-JP">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-2022-JP">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-2022-JP">
<title></title>
<title></title>
Hi.<br>
<br>
I am developing the manual start program. (WindowsXP sp3,
MPICH2-1.2.1p1, VisualStudio2008 sp1, C++)<br>
Program is very simple as below.<br>
<br>
************************<br>
*int main(int argc, char* argv[])<br>
*{<br>
* int numprocs,myid,namelen,i;<br>
* char processor_name[256];<br>
*<br>
* MPI_Init(&argc,&argv);<br>
* MPI_Comm_size(MPI_COMM_WORLD,&numprocs);<br>
* MPI_Comm_rank(MPI_COMM_WORLD,&myid);<br>
* MPI_Get_processor_name(processor_name,&namelen);<br>
*<br>
* for (i=0 ; i<argc ; i++)<br>
* {<br>
* printf("arg%d:%s\n",i,argv[i]);<br>
* }<br>
* printf("numprocs:%d\n",numprocs);<br>
* printf("myid:%d\n",myid);<br>
* printf("processor name:%s\n",processor_name);<br>
*<br>
* MPI_Finalize();<br>
* return 0;<br>
*}<br>
************************<br>
<br>
The result of the program with "mpiexec -n 2 program.exe" is below.<br>
<br>
*************************<br>
*arg0:D:\temp\MPITest1\Debug\mpitest1.exe<br>
*numprocs:2<br>
*myid:1<br>
*processor name:HOSTPC<br>
*arg0:D:\temp\MPITest1\Debug\mpitest1.exe<br>
*numprocs:2<br>
*myid:0<br>
*processor name:HOSTPC<br>
*************************<br>
<br>
Next, I tried to start of the two programs manually with one PC.<br>
As shown in the manual "Debugging jobs by starting them manually" , it
set up as follows.<br>
In Host window:<br>
set PMI_ROOT_HOST=HOSTPC<br>
set PMI_RANK=0<br>
set PMI_ROOT_PORT=9222<br>
set PMI_ROOT_LOCAL=1<br>
set PMI_SIZE=2<br>
set PMI_KVS=mpich2<br>
In Sub window:<br>
set PMI_ROOT_HOST=HOSTPC<br>
set PMI_RANK=1<br>
:<br>
: same as Host<br>
<br>
Then , I started this program with cmd "program.exe" in Host window
& Sub window.<br>
As a result, the following errors occurred and it did not operate well.<br>
<br>
[01:3156]..ERROR:Error while connecting to host, <br>
Can not connected because refused target computer (10061)<br>
[01:3156]..ERROR:Connect on sock
(host=000520p80812.ad.hitachi-metals.co.jp, por<br>
t=9222) failed, exhaused all end points<br>
SMPDU_Sock_post_connect failed.<br>
[0] PMI_ConnectToHost failed: unable to post a connect to
000520p80812.ad.hitach<br>
i-metals.co.jp:9222, error: Undefined dynamic error code<br>
uPMI_ConnectToHost returning PMI_FAIL<br>
[0] PMI_Init failed.<br>
Fatal error in MPI_Init: Other MPI error, error stack:<br>
MPIR_Init_thread(394): Initialization failed<br>
MPID_Init(103).......: channel initialization failed<br>
MPID_Init(374).......: PMI_Init returned -1<br>
<br>
<br>
Please let me know solution.<br>
<br>
-- Thank you.<br>
<br>
<font size="-1">-----------------------------------------------</font>
<br>
<font size="-1"> Takahiro Someji , </font><small>Senior </small><font
size="-1">Engineer</font>
<br>
<font size="-1"><br>
Hitachi Metals Ltd. Production System Lab.</font>
<br>
<font size="-1"> 6010, Mikajiri</font>
<br>
<font size="-1"> Kumagaya city,Saitama pref. JAPAN</font>
<br>
<font size="-1"> zip: 360-0843</font>
<br>
<font size="-1"><br>
phone: +81-485-31-1720</font>
<br>
<font size="-1"> fax: +81-485-33-3398</font>
<br>
<font size="-1"> eMail: <a class="moz-txt-link-abbreviated"
href="mailto:takahiro_someji@hitachi-metals.co.jp">takahiro_someji@hitachi-metals.co.jp</a></font>
<br>
<font size="-1"> web: <a class="moz-txt-link-freetext"
href="http://www.hitachi-metals.co.jp">http://www.hitachi-metals.co.jp</a></font>
<br>
<font size="-1">-----------------------------------------------</font>
</body>
</html>