<?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 Thank you for the answer  in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/SMPD-create-process-failed/m-p/953532#M3045</link>
    <description>&lt;P&gt;Thank you for the answer&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I get the error :&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;CreateProcess failed, error 2&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;unable to start the local smpd manager.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;invalid command received, unable to determine the destination: 'cmd=result src=0&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;dest=1 tag=9 cmd_tag=9 ctx_key=0 result=SUCCESS '&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;when I call a simple subroutine with an MPI parallelized code.&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;for example :&amp;nbsp;&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Call MPI_INIT (Ierror)&lt;BR /&gt;
	Call MPI_COMM_SIZE (MPI_COMM_WORLD,nbre_processus,Ierror)&lt;BR /&gt;
	Call MPI_COMM_RANK (MPI_COMM_WORLD,rang,Ierror)&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;......&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;N = N + 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	Call EntierAleatoire(1,Nb_arbres_type,choix) &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	dimensions_diffs(3*(N-1)+1) = dim_troncs_types(3*(choix-1)+1)&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;...&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Call MPI_FINALIZE (Ierror)&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;when :&amp;nbsp;&lt;/P&gt;

&lt;P&gt;SUBROUTINE EntierAleatoire(int_a,int_b, int_al)&lt;BR /&gt;
	USE Initialisation_types&lt;BR /&gt;
	USE mkl95_precision&lt;BR /&gt;
	USE MPI&lt;/P&gt;

&lt;P&gt;Implicit none&lt;/P&gt;

&lt;P&gt;integer, INTENT(IN) :: int_a&lt;BR /&gt;
	integer, INTENT(IN) :: int_b&lt;BR /&gt;
	integer, INTENT(OUT) :: int_al&lt;BR /&gt;
	integer :: init_al&lt;BR /&gt;
	Real :: a&lt;/P&gt;

&lt;P&gt;Common /Aleatoire/ init_al&lt;BR /&gt;
	If (init_al == 0) Then&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;call RANDOM_SEED&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; init_al = 1&lt;BR /&gt;
	Endif&amp;nbsp;&lt;BR /&gt;
	call DATE_AND_TIME&lt;BR /&gt;
	call random_number(harvest=a)&lt;BR /&gt;
	int_al = INT(a * (int_b + 1 - int_a)) + int_a&lt;/P&gt;

&lt;P&gt;End Subroutine EntierAleatoire&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;I run my code by using the command : "&amp;nbsp;mpiexec.exe -n 4 &amp;nbsp;x64\Debug\myCode.exe" &amp;nbsp; with the simple multiple purpose Daemon (SMPD)&amp;nbsp;&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;If I comment the subroutine call, the code works very well. I get the same error with other subroutines. So I think the problem is caused by the subroutine call with the MPI environment ....&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;In the project properties I mentioned&amp;nbsp;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;generate reentrant code -&amp;gt;threaded.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;Can you please help me to find an explanation to this problem ?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2014 22:54:27 GMT</pubDate>
    <dc:creator>Ines_F_</dc:creator>
    <dc:date>2014-01-10T22:54:27Z</dc:date>
    <item>
      <title>SMPD : create process failed</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/SMPD-create-process-failed/m-p/953530#M3043</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm actually trying to parallylize my fortran code under&amp;nbsp;Composer XE 2013 with the Intel MPI library. I'm using to create my processors the single multiple purpose Daemon (SMPD).&lt;/P&gt;&lt;P&gt;The problem is : when I call a simple subroutine in the MPI code, I get this kind of error :&lt;/P&gt;&lt;P&gt;CreateProcess failed, error 2&lt;/P&gt;&lt;P&gt;unable to start the local smpd manager.&lt;/P&gt;&lt;P&gt;CreateProcess failed, error 2&lt;/P&gt;&lt;P&gt;CreateProcess failed, error 2&lt;/P&gt;&lt;P&gt;unable to start the local smpd manager.&lt;/P&gt;&lt;P&gt;CreateProcess failed, error 2&lt;/P&gt;&lt;P&gt;unable to start the local smpd manager.&lt;/P&gt;&lt;P&gt;unable to start the local smpd manager.&lt;/P&gt;&lt;P&gt;invalid command received, unable to determine the destination: 'cmd=result src=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;dest=1 tag=9 cmd_tag=9 ctx_key=0 result=SUCCESS '&lt;/P&gt;&lt;P&gt;invalid command received, unable to determine the destination: 'cmd=result src=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;dest=1 tag=10 cmd_tag=9 ctx_key=2 result=SUCCESS '&lt;/P&gt;&lt;P&gt;invalid command received, unable to determine the destination: 'cmd=result src=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;dest=1 tag=11 cmd_tag=9 ctx_key=1 result=SUCCESS '&lt;/P&gt;&lt;P&gt;invalid command received, unable to determine the destination: 'cmd=result src=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;dest=1 tag=12 cmd_tag=9 ctx_key=3 result=SUCCESS '&lt;/P&gt;&lt;P&gt;mpiexec aborting job...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once the call of the subroutine commented, the code works well.&lt;/P&gt;&lt;P&gt;In the project properties, I telled the compiler to de reentrant code (code generation -&amp;gt; generate reentrant code -&amp;gt;threaded) but the code still give the same error.&lt;/P&gt;&lt;P&gt;Can you help me please to understand this error ?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2014 05:23:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/SMPD-create-process-failed/m-p/953530#M3043</guid>
      <dc:creator>Ines_F_</dc:creator>
      <dc:date>2014-01-09T05:23:25Z</dc:date>
    </item>
    <item>
      <title>Can you provide a sample code</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/SMPD-create-process-failed/m-p/953531#M3044</link>
      <description>&lt;P&gt;Can you provide a sample code for the problem?&amp;nbsp; How are you trying to launch the program?&lt;/P&gt;

&lt;P&gt;Sincerely,&lt;BR /&gt;
	James Tullos&lt;BR /&gt;
	Technical Consulting Engineer&lt;BR /&gt;
	Intel® Cluster Tools&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 17:22:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/SMPD-create-process-failed/m-p/953531#M3044</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2014-01-10T17:22:05Z</dc:date>
    </item>
    <item>
      <title>Thank you for the answer </title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/SMPD-create-process-failed/m-p/953532#M3045</link>
      <description>&lt;P&gt;Thank you for the answer&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I get the error :&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;CreateProcess failed, error 2&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;unable to start the local smpd manager.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;invalid command received, unable to determine the destination: 'cmd=result src=0&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;dest=1 tag=9 cmd_tag=9 ctx_key=0 result=SUCCESS '&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;when I call a simple subroutine with an MPI parallelized code.&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;for example :&amp;nbsp;&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Call MPI_INIT (Ierror)&lt;BR /&gt;
	Call MPI_COMM_SIZE (MPI_COMM_WORLD,nbre_processus,Ierror)&lt;BR /&gt;
	Call MPI_COMM_RANK (MPI_COMM_WORLD,rang,Ierror)&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;......&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;N = N + 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	Call EntierAleatoire(1,Nb_arbres_type,choix) &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	dimensions_diffs(3*(N-1)+1) = dim_troncs_types(3*(choix-1)+1)&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;...&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Call MPI_FINALIZE (Ierror)&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;when :&amp;nbsp;&lt;/P&gt;

&lt;P&gt;SUBROUTINE EntierAleatoire(int_a,int_b, int_al)&lt;BR /&gt;
	USE Initialisation_types&lt;BR /&gt;
	USE mkl95_precision&lt;BR /&gt;
	USE MPI&lt;/P&gt;

&lt;P&gt;Implicit none&lt;/P&gt;

&lt;P&gt;integer, INTENT(IN) :: int_a&lt;BR /&gt;
	integer, INTENT(IN) :: int_b&lt;BR /&gt;
	integer, INTENT(OUT) :: int_al&lt;BR /&gt;
	integer :: init_al&lt;BR /&gt;
	Real :: a&lt;/P&gt;

&lt;P&gt;Common /Aleatoire/ init_al&lt;BR /&gt;
	If (init_al == 0) Then&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;call RANDOM_SEED&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; init_al = 1&lt;BR /&gt;
	Endif&amp;nbsp;&lt;BR /&gt;
	call DATE_AND_TIME&lt;BR /&gt;
	call random_number(harvest=a)&lt;BR /&gt;
	int_al = INT(a * (int_b + 1 - int_a)) + int_a&lt;/P&gt;

&lt;P&gt;End Subroutine EntierAleatoire&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;I run my code by using the command : "&amp;nbsp;mpiexec.exe -n 4 &amp;nbsp;x64\Debug\myCode.exe" &amp;nbsp; with the simple multiple purpose Daemon (SMPD)&amp;nbsp;&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;If I comment the subroutine call, the code works very well. I get the same error with other subroutines. So I think the problem is caused by the subroutine call with the MPI environment ....&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;In the project properties I mentioned&amp;nbsp;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;generate reentrant code -&amp;gt;threaded.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;Can you please help me to find an explanation to this problem ?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 22:54:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/SMPD-create-process-failed/m-p/953532#M3045</guid>
      <dc:creator>Ines_F_</dc:creator>
      <dc:date>2014-01-10T22:54:27Z</dc:date>
    </item>
    <item>
      <title>What other compilation</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/SMPD-create-process-failed/m-p/953533#M3046</link>
      <description>&lt;P&gt;What other compilation options are you using?&amp;nbsp; Can you compile your code via command line?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2014 20:16:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/SMPD-create-process-failed/m-p/953533#M3046</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2014-01-13T20:16:47Z</dc:date>
    </item>
    <item>
      <title>If I use the MPIEXEC wrapper,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/SMPD-create-process-failed/m-p/953534#M3047</link>
      <description>&lt;P&gt;If I use the MPIEXEC wrapper, I generate exactely this command :&amp;nbsp;&lt;/P&gt;

&lt;P&gt;"C:\Program Files\MPICH2\bin\mpiexec.exe" -n 1 &amp;nbsp;-noprompt "C:\Users\Ines\Desktop\CODES WINDOWS\Code Fortran MPI Rapide 28-11-2013\Code_Modelisation_foret\Code_Modelisation_foret\x64\Debug\Code_Modelisation_foret.exe"&lt;/P&gt;

&lt;P&gt;and I get this error :&lt;/P&gt;

&lt;P&gt;CreateProcess failed, error 2&lt;BR /&gt;
	unable to start the local smpd manager.&lt;BR /&gt;
	invalid command received, unable to determine the destination: 'cmd=result src=0 dest=1 tag=3 cmd_tag=2 ctx_key=0 result=SUCCESS '&lt;/P&gt;

&lt;P&gt;If I comment this line&amp;nbsp; :&amp;nbsp;Call EntierAleatoire(1,Nb_arbres_type,choix), with the same command, the code works well !&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 14:53:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/SMPD-create-process-failed/m-p/953534#M3047</guid>
      <dc:creator>Ines_F_</dc:creator>
      <dc:date>2014-01-15T14:53:46Z</dc:date>
    </item>
    <item>
      <title>Please try using the mpiexec</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/SMPD-create-process-failed/m-p/953535#M3048</link>
      <description>&lt;P&gt;Please try using the mpiexec wrapper provided with the Intel® MPI Library.&amp;nbsp; If you run the file&lt;/P&gt;

&lt;P&gt;[plain]C:\Program Files (x86)\Intel\MPI\4.1.3.045\em64t\bin\mpivars.bat[/plain]&lt;/P&gt;

&lt;P&gt;This will set your environment variables to point to the correct launcher and libraries.&amp;nbsp; Also, try using mpiexec.hydra instead of mpiexec and see if that works.&lt;/P&gt;

&lt;P&gt;Sincerely,&lt;BR /&gt;
	James Tullos&lt;BR /&gt;
	Technical Consulting Engineer&lt;BR /&gt;
	Intel® Cluster Tools&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2014 19:45:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/SMPD-create-process-failed/m-p/953535#M3048</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2014-01-22T19:45:38Z</dc:date>
    </item>
  </channel>
</rss>

