I have two programs, A and B. They all are developed with MPI. A will call B.
If I directly start A and call B, every thing is OK.
If I start A with mpiexec, like mpiexec -localonly 2 A.exe, and call B. MPI_Init_thread or MPI_Init will fail in B.
Below is the error message I got.
[01:2668]..ERROR:Error while connecting to host, No connection could be made because the target machine actively refused it. (10061)
[01:2668]..ERROR:Connect on sock (host=localhost, port=53649) failed, exhaused all end points
SMPDU_Sock_post_connect failed.
[1] PMI_ConnectToHost failed: unable to post a connect to localhost:53649, error: Undefined dynamic error code
uPMI_ConnectToHost returning PMI_FAIL
[1] PMI_Init failed.
Fatal error in PMPI_Init_thread: Other MPI error, error stack:
MPIR_Init_thread(659):
MPID_Init(154).......: channel initialization failed
MPID_Init(448).......: PMI_Init returned -1
Can anyone tell me what is the problem? How to solve it?
Thanks
Yongjun