<?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 Re: Intel MPI with Visual Studio 2022 in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-Visual-Studio-2022/m-p/1675569#M12091</link>
    <description>&lt;P&gt;Thank you for reporting this issue!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We already aware of this issue and we are working on a fix in the upcoming Intel IMPI versions. The current plan is to fix it in Intel MPI 2021.16, which will be released this summer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is caused by the debug version of &lt;STRONG&gt;impi.dll&lt;/STRONG&gt;. The workaround is not to include&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&amp;lt;installation_directory&amp;gt;\bin\mpi\debug&lt;/STRONG&gt; in your &lt;STRONG&gt;PATH&lt;/STRONG&gt; environment variable.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For your reference, here is the&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/docs/mpi-library/developer-guide-windows/2021-14/configuring-a-microsoft-visual-studio-project.html" target="_self"&gt;Configuring a Microsoft Visual Studio* Project&lt;/A&gt; section of the&amp;nbsp;&lt;/SPAN&gt;Intel® MPI Library Developer Guide for Windows* OS.&amp;nbsp;In the second step there "Environment for the Debug version: PATH=", omit&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&amp;lt;installation_directory&amp;gt;\bin\mpi\debug&lt;/STRONG&gt; from PATH.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Mar 2025 15:52:34 GMT</pubDate>
    <dc:creator>Sergey_K_Intel3</dc:creator>
    <dc:date>2025-03-17T15:52:34Z</dc:date>
    <item>
      <title>Intel MPI with Visual Studio 2022</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-Visual-Studio-2022/m-p/1675203#M12089</link>
      <description>&lt;P&gt;I am compiling a Fortran program in Visual Studio 2022 under Windows 11 using the ifx Fortran compiler and the mpi library from Intel Fortran Essentials (which, if I understand correctly, is part of intel oneAPI). The program runs without error alomst till the end, but at the very last command "MPI_FINALIZE(ierror)" it crashes with the error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Abort(1) on node 1: Internal error&lt;BR /&gt;Assertion failed in file c:\\iusers\\cloudbees\\workspace\\oneIMPI\\start-by-timer\\impi_nightly\\\\src\\include\mpir_objects.h at line 427: h-&amp;gt;uref == MPIR_REFCOUNT_INVALID&lt;BR /&gt;No backtrace info available"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each of the processes produces this error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In principle, this does not matter too much since all the work of the program is already done and the output files are correctly written, however, I would like to understand why "MPI_FINALIZE(ierrer)" causes this error and how one can prevent it?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here is a minimal example which produces this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;program Test&lt;BR /&gt;&lt;BR /&gt;use mpi_f08&lt;BR /&gt;&lt;BR /&gt;integer :: i,ipart,myid,ierror&lt;BR /&gt;&lt;BR /&gt;call MPI_INIT(ierror)&lt;BR /&gt;call MPI_COMM_SIZE(MPI_COMM_WORLD,nprocs,ierror)&lt;BR /&gt;call MPI_COMM_RANK(MPI_COMM_WORLD,myid,ierror)&lt;BR /&gt;&lt;BR /&gt;if (myid.eq.0) then&lt;BR /&gt;open(10)&lt;BR /&gt;endif&lt;BR /&gt;&lt;BR /&gt;ipart=myid+1&lt;BR /&gt;&lt;BR /&gt;call MPI_REDUCE(ipart,i,1,MPI_INTEGER,MPI_SUM,0,MPI_COMM_WORLD,ierror)&lt;BR /&gt;&lt;BR /&gt;call MPI_BARRIER(MPI_COMM_WORLD,ierror)&lt;BR /&gt;&lt;BR /&gt;if (myid.eq.0) then&lt;BR /&gt;write(*,*)i&lt;BR /&gt;endif&lt;BR /&gt;&lt;BR /&gt;call MPI_BARRIER(MPI_COMM_WORLD,ierror)&lt;BR /&gt;&lt;BR /&gt;call MPI_FINALIZE(ierror)&lt;BR /&gt;&lt;BR /&gt;stop&lt;BR /&gt;&lt;BR /&gt;end program Test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i=36 is correctly printed and afterwards the above mentioned error occurs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2025 17:44:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-Visual-Studio-2022/m-p/1675203#M12089</guid>
      <dc:creator>Georg1982</dc:creator>
      <dc:date>2025-03-15T17:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Intel MPI with Visual Studio 2022</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-Visual-Studio-2022/m-p/1675569#M12091</link>
      <description>&lt;P&gt;Thank you for reporting this issue!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We already aware of this issue and we are working on a fix in the upcoming Intel IMPI versions. The current plan is to fix it in Intel MPI 2021.16, which will be released this summer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is caused by the debug version of &lt;STRONG&gt;impi.dll&lt;/STRONG&gt;. The workaround is not to include&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&amp;lt;installation_directory&amp;gt;\bin\mpi\debug&lt;/STRONG&gt; in your &lt;STRONG&gt;PATH&lt;/STRONG&gt; environment variable.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For your reference, here is the&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/docs/mpi-library/developer-guide-windows/2021-14/configuring-a-microsoft-visual-studio-project.html" target="_self"&gt;Configuring a Microsoft Visual Studio* Project&lt;/A&gt; section of the&amp;nbsp;&lt;/SPAN&gt;Intel® MPI Library Developer Guide for Windows* OS.&amp;nbsp;In the second step there "Environment for the Debug version: PATH=", omit&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&amp;lt;installation_directory&amp;gt;\bin\mpi\debug&lt;/STRONG&gt; from PATH.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 15:52:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-Visual-Studio-2022/m-p/1675569#M12091</guid>
      <dc:creator>Sergey_K_Intel3</dc:creator>
      <dc:date>2025-03-17T15:52:34Z</dc:date>
    </item>
  </channel>
</rss>

