[mpich-discuss] Error while connecting to host
染次 孝博
Takahiro_Someji at hitachi-metals.co.jp
Tue Mar 9 23:51:40 CST 2010
Hi.
I am developing the manual start program. (WindowsXP sp3,
MPICH2-1.2.1p1, VisualStudio2008 sp1, C++)
Program is very simple as below.
************************
*int main(int argc, char* argv[])
*{
* int numprocs,myid,namelen,i;
* char processor_name[256];
*
* MPI_Init(&argc,&argv);
* MPI_Comm_size(MPI_COMM_WORLD,&numprocs);
* MPI_Comm_rank(MPI_COMM_WORLD,&myid);
* MPI_Get_processor_name(processor_name,&namelen);
*
* for (i=0 ; i<argc ; i++)
* {
* printf("arg%d:%s\n",i,argv[i]);
* }
* printf("numprocs:%d\n",numprocs);
* printf("myid:%d\n",myid);
* printf("processor name:%s\n",processor_name);
*
* MPI_Finalize();
* return 0;
*}
************************
The result of the program with "mpiexec -n 2 program.exe" is below.
*************************
*arg0:D:\temp\MPITest1\Debug\mpitest1.exe
*numprocs:2
*myid:1
*processor name:HOSTPC
*arg0:D:\temp\MPITest1\Debug\mpitest1.exe
*numprocs:2
*myid:0
*processor name:HOSTPC
*************************
Next, I tried to start of the two programs manually with one PC.
As shown in the manual "Debugging jobs by starting them manually" , it
set up as follows.
In Host window:
set PMI_ROOT_HOST=HOSTPC
set PMI_RANK=0
set PMI_ROOT_PORT=9222
set PMI_ROOT_LOCAL=1
set PMI_SIZE=2
set PMI_KVS=mpich2
In Sub window:
set PMI_ROOT_HOST=HOSTPC
set PMI_RANK=1
:
: same as Host
Then , I started this program with cmd "program.exe" in Host window &
Sub window.
As a result, the following errors occurred and it did not operate well.
[01:3156]..ERROR:Error while connecting to host,
Can not connected because refused target computer (10061)
[01:3156]..ERROR:Connect on sock
(host=000520p80812.ad.hitachi-metals.co.jp, por
t=9222) failed, exhaused all end points
SMPDU_Sock_post_connect failed.
[0] PMI_ConnectToHost failed: unable to post a connect to
000520p80812.ad.hitach
i-metals.co.jp:9222, error: Undefined dynamic error code
uPMI_ConnectToHost returning PMI_FAIL
[0] PMI_Init failed.
Fatal error in MPI_Init: Other MPI error, error stack:
MPIR_Init_thread(394): Initialization failed
MPID_Init(103).......: channel initialization failed
MPID_Init(374).......: PMI_Init returned -1
Please let me know solution.
-- Thank you.
-----------------------------------------------
Takahiro Someji , Senior Engineer
Hitachi Metals Ltd. Production System Lab.
6010, Mikajiri
Kumagaya city,Saitama pref. JAPAN
zip: 360-0843
phone: +81-485-31-1720
fax: +81-485-33-3398
eMail: takahiro_someji at hitachi-metals.co.jp
web: http://www.hitachi-metals.co.jp
-----------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20100310/74616742/attachment.htm>
More information about the mpich-discuss
mailing list