<?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 MPI_Finalize Error Present with mpiicpc. in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-Finalize-Error-Present-with-mpiicpc/m-p/999292#M3718</link>
    <description>&lt;P&gt;&lt;SPAN style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;"&gt;I have been having trouble with the intel-compiled version of a scientific software stack.&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;" /&gt;
	&lt;BR style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;"&gt;The stack uses both OpenMP and MPI. When I started working on the code, it had been compiled with gcc &amp;amp; a gcc-compiled OpenMPI. Prior to adding any MPI code, the software compiles with icpc and runs without error.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;"&gt;The versions I am working with are: Intel compiler version 14.0.2, Intel mkl 11.1.2, and Intel MPI 4.1.3. I have tried turning up the debug level I_MPI_DEBUG to get more informative messages, but what I always end up with is:&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;Could not find **ibv_destroy_qp in list of messages 
Could not find **ibv_destroy_qp in list of messages 
Could not find **ibv_destroy_qp in list of messages 
Could not find **ibv_destroy_qp in list of messages 
Could not find **ibv_destroy_qp in list of messages 
Could not find **vc_gen2_qp_finalize in list of messages 
Could not find **ibv_destroy_qp in list of messages 
Could not find **vc_gen2_qp_finalize in list of messages 
Could not find **vc_gen2_qp_finalize in list of messages 
Could not find **vc_gen2_qp_finalize in list of messages 
Could not find **vc_gen2_qp_finalize in list of messages 
Could not find **vc_gen2_qp_finalize in list of messages 
Fatal error in MPI_Finalize: 
Internal MPI error!, error stack: 
MPI_Finalize(311).................: 
MPI_Finalize failed 
MPI_Finalize(229).................: 
MPID_Finalize(140)................: 
MPIDI_CH3_Finalize(24)............: 
MPID_nem_finalize(63).............: 
MPID_nem_gen2_module_finalize(520):(unknown)(): Internal MPI error!
&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;"&gt;Someone suggested that this could be a strange optimization on the part of icpc, so I am now compiling with -O0 (and also running with -check-mpi). Someone also suggested that MPI_Finalize is being called before all of the messages return, so I tried having the program sleep for a number of minutes before calling MPI_Finalize in case it was a race condition of some sort.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;"&gt;The project is fairly large, however, only 2 main files call MPI_Finalize. Without -O0, the program fails when the first file calls MPI_Finalize. However, after -O0, the program runs all the way until this second call to MPI_Finalize (in file 2). But the error is the same.&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;" /&gt;
	&lt;BR style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;"&gt;I also thought some memory was being freed that shouldn't have before MPI_Finalize, however, there is an MPI_Barrier just a few lines of code above the finalize, which seems to indicate to me that all of the processes successfully reach the Barrier call. After the barrier call, some strings are printed, nothing is done with freeing or deallocating data structures, and then the MPI_Finalize is called.&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;" /&gt;
	&lt;BR style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;"&gt;In addition to the MPI_Finalize error above, I also only OCCASIONALLY get the following error (i.e., I get the MPI_Finalize error every time, but sometimes I get this error in addition to the MPI_Finalize error):&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;[mpiexec@ida3c03] control_cb (./pm/pmiserv/pmiserv_cb.c:717): assert (!closed) failed 
[mpiexec@ida3c03] HYDT_dmxu_poll_wait_for_event (./tools/demux/demux_poll.c:77): callback returned error status 
[mpiexec@ida3c03] HYD_pmci_wait_for_completion (./pm/pmiserv/pmiserv_pmci.c:435): error waiting for event 
[mpiexec@ida3c03] main (./ui/mpich/mpiexec.c:901): process manager error waiting for completion&lt;/PRE&gt;

&lt;P class="p1"&gt;&amp;nbsp;have tried everything I can think of and am not sure where to go from here in terms of debugging.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Sep 2014 21:23:56 GMT</pubDate>
    <dc:creator>Melissa</dc:creator>
    <dc:date>2014-09-19T21:23:56Z</dc:date>
    <item>
      <title>MPI_Finalize Error Present with mpiicpc.</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-Finalize-Error-Present-with-mpiicpc/m-p/999292#M3718</link>
      <description>&lt;P&gt;&lt;SPAN style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;"&gt;I have been having trouble with the intel-compiled version of a scientific software stack.&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;" /&gt;
	&lt;BR style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;"&gt;The stack uses both OpenMP and MPI. When I started working on the code, it had been compiled with gcc &amp;amp; a gcc-compiled OpenMPI. Prior to adding any MPI code, the software compiles with icpc and runs without error.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;"&gt;The versions I am working with are: Intel compiler version 14.0.2, Intel mkl 11.1.2, and Intel MPI 4.1.3. I have tried turning up the debug level I_MPI_DEBUG to get more informative messages, but what I always end up with is:&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;Could not find **ibv_destroy_qp in list of messages 
Could not find **ibv_destroy_qp in list of messages 
Could not find **ibv_destroy_qp in list of messages 
Could not find **ibv_destroy_qp in list of messages 
Could not find **ibv_destroy_qp in list of messages 
Could not find **vc_gen2_qp_finalize in list of messages 
Could not find **ibv_destroy_qp in list of messages 
Could not find **vc_gen2_qp_finalize in list of messages 
Could not find **vc_gen2_qp_finalize in list of messages 
Could not find **vc_gen2_qp_finalize in list of messages 
Could not find **vc_gen2_qp_finalize in list of messages 
Could not find **vc_gen2_qp_finalize in list of messages 
Fatal error in MPI_Finalize: 
Internal MPI error!, error stack: 
MPI_Finalize(311).................: 
MPI_Finalize failed 
MPI_Finalize(229).................: 
MPID_Finalize(140)................: 
MPIDI_CH3_Finalize(24)............: 
MPID_nem_finalize(63).............: 
MPID_nem_gen2_module_finalize(520):(unknown)(): Internal MPI error!
&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;"&gt;Someone suggested that this could be a strange optimization on the part of icpc, so I am now compiling with -O0 (and also running with -check-mpi). Someone also suggested that MPI_Finalize is being called before all of the messages return, so I tried having the program sleep for a number of minutes before calling MPI_Finalize in case it was a race condition of some sort.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;"&gt;The project is fairly large, however, only 2 main files call MPI_Finalize. Without -O0, the program fails when the first file calls MPI_Finalize. However, after -O0, the program runs all the way until this second call to MPI_Finalize (in file 2). But the error is the same.&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;" /&gt;
	&lt;BR style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;"&gt;I also thought some memory was being freed that shouldn't have before MPI_Finalize, however, there is an MPI_Barrier just a few lines of code above the finalize, which seems to indicate to me that all of the processes successfully reach the Barrier call. After the barrier call, some strings are printed, nothing is done with freeing or deallocating data structures, and then the MPI_Finalize is called.&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;" /&gt;
	&lt;BR style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); line-height: normal; font-family: arial; font-size: small;"&gt;In addition to the MPI_Finalize error above, I also only OCCASIONALLY get the following error (i.e., I get the MPI_Finalize error every time, but sometimes I get this error in addition to the MPI_Finalize error):&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;[mpiexec@ida3c03] control_cb (./pm/pmiserv/pmiserv_cb.c:717): assert (!closed) failed 
[mpiexec@ida3c03] HYDT_dmxu_poll_wait_for_event (./tools/demux/demux_poll.c:77): callback returned error status 
[mpiexec@ida3c03] HYD_pmci_wait_for_completion (./pm/pmiserv/pmiserv_pmci.c:435): error waiting for event 
[mpiexec@ida3c03] main (./ui/mpich/mpiexec.c:901): process manager error waiting for completion&lt;/PRE&gt;

&lt;P class="p1"&gt;&amp;nbsp;have tried everything I can think of and am not sure where to go from here in terms of debugging.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 21:23:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-Finalize-Error-Present-with-mpiicpc/m-p/999292#M3718</guid>
      <dc:creator>Melissa</dc:creator>
      <dc:date>2014-09-19T21:23:56Z</dc:date>
    </item>
    <item>
      <title>This could be an InfiniBand*</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-Finalize-Error-Present-with-mpiicpc/m-p/999293#M3719</link>
      <description>&lt;P&gt;This could be an InfiniBand* problem.&amp;nbsp; Here are a few suggestions to try.&amp;nbsp; Set I_MPI_FABRICS=tcp to force using sockets instead of DAPL*.&amp;nbsp; What DAPL* provider are you using?&amp;nbsp; Or are you using OFED directly?&amp;nbsp; This should appear in the beginning of the debug output (fabric selection).&amp;nbsp; Let's start with this and see what can be found.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 21:31:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-Finalize-Error-Present-with-mpiicpc/m-p/999293#M3719</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2014-09-19T21:31:35Z</dc:date>
    </item>
    <item>
      <title>Initially, I was getting</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-Finalize-Error-Present-with-mpiicpc/m-p/999294#M3720</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Initially, I was getting libdat2 errors, which I thought were causing the MPI_Finalize errors (similar to &lt;/SPAN&gt;&lt;A href="https://software.intel.com/en-us/forums/topic/288990" style="color: rgb(17, 85, 204); font-family: arial, sans-serif; line-height: normal;" target="_blank"&gt;&lt;FONT face="sans-serif" size="2"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;A href="https://software.intel.com/en-" target="_blank"&gt;https://software.intel.com/en-&lt;/A&gt;&lt;WBR /&gt;us/forums/topic/288990&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;).&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I contacted the machine admin (I don't have root access), and he arrived at the conclusion that they are using OFED directly (no DAPL). I changed the runs to be shm:ofa, but I still get this error. A&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;dditionally, I did try a tcp run. This did not fail, but it was so incredibly slow that it exceeded the maximum machine wall clock time for the queues that I have access to (24hrs). It never even reached the first MPI_Finalize part of the code, so it was hard to conclude anything concrete. I am composing a smaller dataset for the code to test the tcp method further now and will get back to you. Thank you for your quick reply.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 21:44:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-Finalize-Error-Present-with-mpiicpc/m-p/999294#M3720</guid>
      <dc:creator>Melissa</dc:creator>
      <dc:date>2014-09-19T21:44:27Z</dc:date>
    </item>
  </channel>
</rss>

