<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error when trying to start paraller process using systemqq or s in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Error-when-trying-to-start-paraller-process-using-systemqq-or/m-p/821216#M1178</link>
    <description>Hi Timo,&lt;BR /&gt;&lt;BR /&gt;Try adding -verbose to the mpiexec arguments in your batch file. What does that give as output?&lt;BR /&gt;&lt;BR /&gt;Sincerely,&lt;BR /&gt;James Tullos&lt;BR /&gt;Technical Consulting Engineer&lt;BR /&gt;Intel Cluster Tools</description>
    <pubDate>Wed, 16 May 2012 13:43:53 GMT</pubDate>
    <dc:creator>James_T_Intel</dc:creator>
    <dc:date>2012-05-16T13:43:53Z</dc:date>
    <item>
      <title>Error when trying to start paraller process using systemqq or system -functions in Windows 7</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Error-when-trying-to-start-paraller-process-using-systemqq-or/m-p/821215#M1177</link>
      <description>&lt;PRE&gt;Hi all!&lt;BR /&gt;&lt;BR /&gt;We have model-fitting software coded with Fortran that is running as paraller job. We got the software compiled and it runs nicely under Windows. However, certain models it is required that two models are solved at the same time. We have solved this in a way that the first parallel run makes on certain positions of the algorithm system calls to start a second parallel run forsolving the second model. After the second model has been solved, information for the first model is updated and the first parallel run continues to solve on the first model. This process continues until both models are solved.&lt;BR /&gt;&lt;BR /&gt;When the second model solver is called the following error occures:&lt;BR /&gt;[01:5952]...ERROR:Error while connecting to host, No connection could be made be&lt;BR /&gt;cause the target machine actively refused it. (10061)&lt;BR /&gt;mpiexec aborting job...&lt;BR /&gt;&lt;BR /&gt;The first program is started with command &lt;BR /&gt;mpiexec -localroot -n 2 path\\program.exe &amp;lt; directivefile &amp;gt; output.log&lt;BR /&gt;&lt;BR /&gt;Within the program the second model is called&lt;BR /&gt;vmrunint=system("solve_2ndmodel.bat")&lt;BR /&gt;and we also tried systemqq() without success.&lt;BR /&gt;&lt;BR /&gt;Within that .bat -file among other things the second model solver is started with command:&lt;BR /&gt;mpiexec -localroot -n 2 path\\program.exe&amp;lt; directivefile&lt;BR /&gt;&lt;BR /&gt;The executable is same but it is working in with different data. This system works perfectly in linux. And we hope that it is possible to run it in same manner in windows. Are there any tricks that we could try?&lt;BR /&gt;&lt;BR /&gt;The MPI library is &lt;BR /&gt;Intel MPI Library for Windows* OS, Version 4.0 Update 3 Build 8/24/2011 3:07:12 PM&lt;BR /&gt;&lt;BR /&gt;The fortran compiler is:&lt;BR /&gt;Intel Visual Fortran Intel 64 Compiler XE for applications running on Intel 64, Version 12.1.3.300 Build 20120130&lt;BR /&gt;&lt;BR /&gt;The program is compiled with:&lt;BR /&gt;mpifc.bat /O2 program.f90&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;TimoP&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 May 2012 12:11:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Error-when-trying-to-start-paraller-process-using-systemqq-or/m-p/821215#M1177</guid>
      <dc:creator>Timo_Pitkanen</dc:creator>
      <dc:date>2012-05-16T12:11:45Z</dc:date>
    </item>
    <item>
      <title>Error when trying to start paraller process using systemqq or s</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Error-when-trying-to-start-paraller-process-using-systemqq-or/m-p/821216#M1178</link>
      <description>Hi Timo,&lt;BR /&gt;&lt;BR /&gt;Try adding -verbose to the mpiexec arguments in your batch file. What does that give as output?&lt;BR /&gt;&lt;BR /&gt;Sincerely,&lt;BR /&gt;James Tullos&lt;BR /&gt;Technical Consulting Engineer&lt;BR /&gt;Intel Cluster Tools</description>
      <pubDate>Wed, 16 May 2012 13:43:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Error-when-trying-to-start-paraller-process-using-systemqq-or/m-p/821216#M1178</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2012-05-16T13:43:53Z</dc:date>
    </item>
    <item>
      <title>Error when trying to start paraller process using systemqq or s</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Error-when-trying-to-start-paraller-process-using-systemqq-or/m-p/821217#M1179</link>
      <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;here is the output:&lt;BR /&gt;&lt;BR /&gt;[01:6100]...ERROR:Error while connecting to host, No connection could be made be cause the target machine actively refused it. (10061)&lt;BR /&gt;[01:6100]...ERROR:Error while connecting to host, No connection could be made be&lt;BR /&gt;cause the target machine actively refused it. (10061)&lt;BR /&gt;[01:6100]...ERROR:Connect on sock (host=hostname fe80::1463:8205:ea48:3abd%13 192.168.106.74 , port=61630) failed, exhaused all end points&lt;BR /&gt;SMPDU_Sock_post_connect failed.&lt;BR /&gt;[0] PMI_ConnectToHost failed: unable to post a connect to hostname fe80::1463:8205:ea48:3abd%13 192.168.106.74 :61630, error: Undefined dynamic error code&lt;BR /&gt;uPMI_ConnectToHost returning PMI_FAIL&lt;BR /&gt;[0] PMI_Init failed.&lt;BR /&gt;Fatal error in MPI_Init: Other MPI error, error stack:&lt;BR /&gt;MPIR_Init_thread(645): Initialization failed&lt;BR /&gt;MPID_Init(134).......: channel initialization failed&lt;BR /&gt;MPID_Init(430).......: PMI_Init returned -1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yours, &lt;BR /&gt;TimoP</description>
      <pubDate>Fri, 18 May 2012 09:19:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Error-when-trying-to-start-paraller-process-using-systemqq-or/m-p/821217#M1179</guid>
      <dc:creator>Timo_Pitkanen</dc:creator>
      <dc:date>2012-05-18T09:19:09Z</dc:date>
    </item>
    <item>
      <title>Error when trying to start paraller process using systemqq or s</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Error-when-trying-to-start-paraller-process-using-systemqq-or/m-p/821218#M1180</link>
      <description>Hi Timo,&lt;BR /&gt;&lt;BR /&gt;I am able to reproduce this behavior on both Linux* and Windows*. I would recommend changing from system calls to using MPI_Comm_spawn.&lt;BR /&gt;&lt;BR /&gt;[fortran]integer parent, child
character*256 comstr, args(nargs)
logical launch_sub

...

call MPI_Get_parent(parent,ierr)
if (parent .eq. MPI_COMM_NULL) then
   ! This job was not launched by MPI_Comm_spawn, do appropriate init
   launch_sub=.true.
else
   ! This job was launched by MPI_Comm_spawn, do appropriate init
   launch_sub=.false.
end if

...

if (launch_sub) then
   comstr="program.exe"
   args(1)=" arg1 "
   ...
   nsub=2
   call MPI_Comm_spawn(comstr,args,nsub,MPI_INFO_NULL,0,MPI_COMM_WORLD,child,MPI_ERRCODES_IGNORE,ierr)
   call MPI_Barrier(child,ierr) ! Waits for the child to finish
end if

...

! Finishing up

if (parent .ne. MPI_COMM_NULL) then
   call MPI_Barrier(parent,ierr) ! Allows the parent to proceed
end if

MPI_Finalize()[/fortran]&lt;BR /&gt;I cannot get redirection of standard input to work here, so you might need to change your input method (if I recall correctly, it should be fairly simple to pass a filename as an argument and open that file on standard input from Fortran).&lt;BR /&gt;&lt;BR /&gt;Sincerely,&lt;BR /&gt;James Tullos&lt;BR /&gt;Technical Consulting Engineer&lt;BR /&gt;Intel Cluster Tools</description>
      <pubDate>Fri, 18 May 2012 14:26:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Error-when-trying-to-start-paraller-process-using-systemqq-or/m-p/821218#M1180</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2012-05-18T14:26:47Z</dc:date>
    </item>
    <item>
      <title>Error when trying to start paraller process using systemqq or s</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Error-when-trying-to-start-paraller-process-using-systemqq-or/m-p/821219#M1181</link>
      <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;We try to modify our inner program call in a way you suggested. &lt;BR /&gt;&lt;BR /&gt;Thank you for your answer&lt;BR /&gt;Regards&lt;BR /&gt;Timo P</description>
      <pubDate>Thu, 31 May 2012 10:52:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Error-when-trying-to-start-paraller-process-using-systemqq-or/m-p/821219#M1181</guid>
      <dc:creator>Timo_Pitkanen</dc:creator>
      <dc:date>2012-05-31T10:52:38Z</dc:date>
    </item>
  </channel>
</rss>

