<?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:Running an MPI Fortran program within visual studio 2019 in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Running-an-MPI-Fortran-program-within-visual-studio-2019/m-p/1277250#M8174</link>
    <description>&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for the confirmation.&lt;/P&gt;&lt;P&gt;We will no longer monitor this thread, as your issue is resolved. &amp;nbsp;If you require any additional assistance from Intel, please start a new thread.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any further interaction in this thread will be considered community only.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 28 Apr 2021 06:29:05 GMT</pubDate>
    <dc:creator>AbhishekD_Intel</dc:creator>
    <dc:date>2021-04-28T06:29:05Z</dc:date>
    <item>
      <title>Running an MPI Fortran program within visual studio 2019</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Running-an-MPI-Fortran-program-within-visual-studio-2019/m-p/1274852#M8121</link>
      <description>&lt;P&gt;&lt;BR /&gt;I ran the following FORTRAN program in command prompt....&lt;/P&gt;
&lt;P&gt;cccccccccccccc PROGRAM ccccccccccccccc&lt;/P&gt;
&lt;P&gt;program mpi7&lt;/P&gt;
&lt;P&gt;IMPLICIT DOUBLE PRECISION (A-H,O-Z)&lt;/P&gt;
&lt;P&gt;parameter (ms=10,mp=12) ! array has 10 entries for each of the 12 processors&lt;/P&gt;
&lt;P&gt;dimension ar(ms,mp)&lt;/P&gt;
&lt;P&gt;include 'mpif.h'&lt;BR /&gt;integer status(MPI_STATUS_SIZE)&lt;BR /&gt;call mpi_init(ierr)&lt;BR /&gt;call mpi_comm_rank(MPI_COMM_WORLD,my_rank,ierr)&lt;BR /&gt;call mpi_comm_size(MPI_COMM_WORLD,nsize,ierr)&lt;/P&gt;
&lt;P&gt;if (my_rank.eq.0) then&lt;/P&gt;
&lt;P&gt;ccccccccc CALCULATIONS cccccccccccc&lt;BR /&gt;part=12.0d0&lt;BR /&gt;calc=part+100.0d0&lt;BR /&gt;do 20 i=1,ms&lt;BR /&gt;ar(i,mp)=calc&lt;BR /&gt;20 continue&lt;BR /&gt;ccccccccc CALCULATIONS cccccccccccc&lt;/P&gt;
&lt;P&gt;do 30 nproc=1,nsize-1&lt;BR /&gt;do 30 i=1,ms&lt;BR /&gt;call mpi_recv(ar(i,nproc),1,MPI_DOUBLE_PRECISION,nproc,1,&lt;BR /&gt;* MPI_COMM_WORLD,status,ierr)&lt;BR /&gt;30 continue&lt;/P&gt;
&lt;P&gt;else&lt;/P&gt;
&lt;P&gt;ccccccccc CALCULATIONS cccccccccccc&lt;BR /&gt;part=dble(my_rank)&lt;BR /&gt;calc=part+100.0d0&lt;/P&gt;
&lt;P&gt;do 40 i=1,ms&lt;BR /&gt;ar(i,my_rank)=calc&lt;BR /&gt;40 continue&lt;BR /&gt;ccccccccc CALCULATIONS cccccccccccc&lt;/P&gt;
&lt;P&gt;do 45 i=1,ms&lt;BR /&gt;call mpi_send(ar(i,my_rank),1,MPI_DOUBLE_PRECISION,0,1,&lt;BR /&gt;* MPI_COMM_WORLD,ierr)&lt;BR /&gt;45 continue&lt;/P&gt;
&lt;P&gt;endif&lt;/P&gt;
&lt;P&gt;if (my_rank.eq.0) then&lt;/P&gt;
&lt;P&gt;do 50 j=1,nsize&lt;BR /&gt;write(*,*) j,ar(1,j),ar(ms,j)&lt;BR /&gt;50 continue&lt;BR /&gt;&lt;BR /&gt;write(*,*) ' '&lt;BR /&gt;do 60 i=1,ms&lt;BR /&gt;write(*,*) i,ar(i,nsize)&lt;BR /&gt;60 continue&lt;/P&gt;
&lt;P&gt;endif&lt;/P&gt;
&lt;P&gt;call mpi_finalize(ierr)&lt;/P&gt;
&lt;P&gt;end&lt;/P&gt;
&lt;P&gt;cccccccccccccc PROGRAM ccccccccccccccc&lt;/P&gt;
&lt;P&gt;I had no difficulties compiling and executing the program....&lt;/P&gt;
&lt;P&gt;cccccccccccc COMPILING and EXECUTION cccccccccccccccc&lt;/P&gt;
&lt;P&gt;F:\MPI&amp;gt;c&lt;/P&gt;
&lt;P&gt;F:\MPI&amp;gt;mpif77 mpi7.f&lt;BR /&gt;mpifc.bat for the Intel(R) MPI Library 2021.2 for Windows*&lt;BR /&gt;Copyright 2007-2021 Intel Corporation.&lt;/P&gt;
&lt;P&gt;Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.2.0 Build 20210228_000000&lt;BR /&gt;Copyright (C) 1985-2021 Intel Corporation. All rights reserved.&lt;/P&gt;
&lt;P&gt;Microsoft (R) Incremental Linker Version 14.28.29914.0&lt;BR /&gt;Copyright (C) Microsoft Corporation. All rights reserved.&lt;/P&gt;
&lt;P&gt;-out:mpi7.exe&lt;BR /&gt;-subsystem:console&lt;BR /&gt;"/LIBPATH:C:\Program Files (x86)\Intel\oneAPI\mpi\latest\env\..\lib\release"&lt;BR /&gt;"/LIBPATH:C:\Program Files (x86)\Intel\oneAPI\mpi\latest\env\..\lib"&lt;BR /&gt;impi.lib&lt;BR /&gt;mpi7.obj&lt;BR /&gt;F:\MPI&amp;gt;r&lt;/P&gt;
&lt;P&gt;F:\MPI&amp;gt;mpiexec -np 12 mpi7&lt;BR /&gt;1 101.000000000000 101.000000000000&lt;BR /&gt;2 102.000000000000 102.000000000000&lt;BR /&gt;3 103.000000000000 103.000000000000&lt;BR /&gt;4 104.000000000000 104.000000000000&lt;BR /&gt;5 105.000000000000 105.000000000000&lt;BR /&gt;6 106.000000000000 106.000000000000&lt;BR /&gt;7 107.000000000000 107.000000000000&lt;BR /&gt;8 108.000000000000 108.000000000000&lt;BR /&gt;9 109.000000000000 109.000000000000&lt;BR /&gt;10 110.000000000000 110.000000000000&lt;BR /&gt;11 111.000000000000 111.000000000000&lt;BR /&gt;12 112.000000000000 112.000000000000&lt;/P&gt;
&lt;P&gt;1 112.000000000000&lt;BR /&gt;2 112.000000000000&lt;BR /&gt;3 112.000000000000&lt;BR /&gt;4 112.000000000000&lt;BR /&gt;5 112.000000000000&lt;BR /&gt;6 112.000000000000&lt;BR /&gt;7 112.000000000000&lt;BR /&gt;8 112.000000000000&lt;BR /&gt;9 112.000000000000&lt;BR /&gt;10 112.000000000000&lt;/P&gt;
&lt;P&gt;F:\MPI&amp;gt;&lt;/P&gt;
&lt;P&gt;cccccccccccc COMPILING and EXECUTION cccccccccccccccc&lt;/P&gt;
&lt;P&gt;I am now trying to do the same within Microsoft Visual Studio (Community 2019&lt;BR /&gt;Version 16.9.4)&lt;/P&gt;
&lt;P&gt;Configured as follows.....&lt;/P&gt;
&lt;P&gt;Configuration Properties : configuration 'Active(Debug)' ; platform 'x64'&lt;/P&gt;
&lt;P&gt;Debugging&amp;gt;Command... &lt;BR /&gt;c:\program files (x86)\intel\oneapi\mpi\2021.2.0\bin\mpiexec.exe&lt;/P&gt;
&lt;P&gt;Debugging&amp;gt;Command arguments... &lt;BR /&gt;-np 12&lt;/P&gt;
&lt;P&gt;Debugging&amp;gt;Environment... &lt;BR /&gt;PATH=C:\Program Files (x86)\Intel\oneAPI\mpi\2021.2.0\bin$C:\Program Files (x86)\Intel\oneAPI\mpi\2021.2.0\libfabric\bin&lt;/P&gt;
&lt;P&gt;Fortran&amp;gt;Additional Include Directories.... &lt;BR /&gt;C:\Program Files (x86)\Intel\oneAPI\mpi\2021.2.0\include&lt;/P&gt;
&lt;P&gt;Linker&amp;gt;Additional Library Directories.... &lt;BR /&gt;C:\Program Files (x86)\Intel\oneAPI\mpi\2021.2.0\lib&lt;/P&gt;
&lt;P&gt;Linker&amp;gt;Input&amp;gt;Additional Dependancies.... &lt;BR /&gt;C:\Program Files (x86)\Intel\oneAPI\mpi\2021.2.0\lib\debug\impi.lib&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I Build Solution.....I get...&lt;/P&gt;
&lt;P&gt;fatal error LNK1181: cannot open input file 'C:\Program.obj'&lt;/P&gt;
&lt;P&gt;Where did I go wrong??? There is likely multiple errors here...&lt;/P&gt;
&lt;P&gt;My apologies for the extended detail. (I hope it helps)&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 22:51:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Running-an-MPI-Fortran-program-within-visual-studio-2019/m-p/1274852#M8121</guid>
      <dc:creator>galli_m</dc:creator>
      <dc:date>2021-04-19T22:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Running an MPI Fortran program within visual studio 2019</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Running-an-MPI-Fortran-program-within-visual-studio-2019/m-p/1275043#M8124</link>
      <description>&lt;P&gt;Hi Mike,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;Please check the attached visual studio configuration file. We tried the code with the same configuration(attached) and it's working for us on VS we also tried it through the command line and it's compiling and executing without any errors.&lt;/P&gt;
&lt;P&gt;Please try using the same configuration for your project and let us know if you get any issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;Abhishek&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 10:42:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Running-an-MPI-Fortran-program-within-visual-studio-2019/m-p/1275043#M8124</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2021-04-20T10:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Running an MPI Fortran program within visual studio 2019</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Running-an-MPI-Fortran-program-within-visual-studio-2019/m-p/1275166#M8127</link>
      <description>&lt;P&gt;Thank you for your reply,&lt;/P&gt;
&lt;P&gt;I have dissected the configuration you sent me.&lt;/P&gt;
&lt;P&gt;I am again including details for a variety of reasons,&lt;BR /&gt;including for the benefit to others that may require&lt;BR /&gt;this information.&lt;/P&gt;
&lt;P&gt;From what I gathered, this is the current configuration:&lt;BR /&gt;I put this in myself in a new project...&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;In configuration properties:&lt;/P&gt;
&lt;P&gt;&amp;gt;Fortran&amp;gt;Additional Include Directories:&lt;/P&gt;
&lt;P&gt;$(I_MPI_ONEAPI_ROOT)\include&lt;/P&gt;
&lt;P&gt;&amp;gt;Linker&amp;gt;Additional Library Directories:&lt;/P&gt;
&lt;P&gt;$(I_MPI_ONEAPI_ROOT)\lib\debug;$(I_MPI_ONEAPI_ROOT)\lib\&lt;/P&gt;
&lt;P&gt;&amp;gt;Linker&amp;gt;Input&amp;gt;Additional Dependancies:&lt;/P&gt;
&lt;P&gt;impi.lib libmpi_ilp64.lib&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I build the solution and got my executable file.&lt;BR /&gt;Thank You!&lt;/P&gt;
&lt;P&gt;I ran this file in the appropriate command prompt&lt;BR /&gt;and had no difficulties running the program.&lt;/P&gt;
&lt;P&gt;I then tried running this within Visual Studio...&lt;BR /&gt;Debug&amp;gt;Start Without Debugging&lt;/P&gt;
&lt;P&gt;I get a system error when the command prompt opens...&lt;BR /&gt;"The code execution cannot proceed because&lt;BR /&gt;impi.dll was not found"&lt;/P&gt;
&lt;P&gt;There is something still missing....&lt;BR /&gt;It appears to not open into an appropriate&lt;BR /&gt;command prompt environment???&lt;/P&gt;
&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 20:40:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Running-an-MPI-Fortran-program-within-visual-studio-2019/m-p/1275166#M8127</guid>
      <dc:creator>galli_m</dc:creator>
      <dc:date>2021-04-20T20:40:11Z</dc:date>
    </item>
    <item>
      <title>Re:Running an MPI Fortran program within visual studio 2019</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Running-an-MPI-Fortran-program-within-visual-studio-2019/m-p/1275783#M8141</link>
      <description>&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for the details.&lt;/P&gt;&lt;P&gt;Please check if the &lt;B&gt;impi.dll &lt;/B&gt;is present in the installed oneAPI directory. You can refer to the below path:&lt;/P&gt;&lt;P&gt;&lt;B&gt;Intel\oneAPI\mpi\2021.2.0\bin\debug &lt;/B&gt;for the presence of &lt;B&gt;impi.dll.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;If the file is not present then, please reinstall the latest oneAPI Basekit and HPCkit.&lt;/P&gt;&lt;P&gt;If the file is present in the directory then try adding the below lines in &lt;B&gt;Project Properties -&amp;gt; Configuration Properties -&amp;gt; Build Events -&amp;gt; Post Build Event -&amp;gt; Command Line &lt;/B&gt;option.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt; &lt;/B&gt;&lt;I&gt;copy /Y "$(I_MPI_ONEAPI_ROOT)\bin\debug\impi.dll" "$(TargetDir)"&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; copy /Y "$(I_MPI_ONEAPI_ROOT)\libfabric\bin\libfabric.dll" "$(TargetDir)"&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;And try re-building and debugging your project. Let us know if are still getting the same issue.&lt;/P&gt;&lt;P&gt;Hope the provided details will help you to resolve your issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Apr 2021 10:18:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Running-an-MPI-Fortran-program-within-visual-studio-2019/m-p/1275783#M8141</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2021-04-22T10:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Running an MPI Fortran program within visual studio 2019</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Running-an-MPI-Fortran-program-within-visual-studio-2019/m-p/1275951#M8147</link>
      <description>&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;impi.dll was in the appropriate directory.&lt;BR /&gt;I included these lines and no longer had&lt;BR /&gt;the system error.&lt;/P&gt;
&lt;P&gt;However for the program to work properly&lt;BR /&gt;I had to add entries to Debugging&amp;gt;Command&lt;BR /&gt;and Debugging&amp;gt;Command Arguments.&lt;BR /&gt;For the potential benefit to others, here&lt;BR /&gt;is the final configuration to run my MPI&lt;BR /&gt;FORTRAN program.&lt;/P&gt;
&lt;P&gt;Thanks again for all your help!&lt;/P&gt;
&lt;P&gt;Configuration Properties : configuration 'Active(Debug)' ; platform 'x64'&lt;/P&gt;
&lt;P&gt;Debugging&amp;gt;Command... &lt;BR /&gt;$(I_MPI_ONEAPI_ROOT)\bin\mpiexec.exe&lt;/P&gt;
&lt;P&gt;Debugging&amp;gt;Command arguments... &lt;BR /&gt;-np 12 "$(TargetPath)"&lt;/P&gt;
&lt;P&gt;Fortran&amp;gt;Additional Include Directories.... &lt;BR /&gt;$(I_MPI_ONEAPI_ROOT)\include&lt;/P&gt;
&lt;P&gt;Linker&amp;gt;Additional Library Directories.... &lt;BR /&gt;$(I_MPI_ONEAPI_ROOT)\lib\debug;$(I_MPI_ONEAPI_ROOT)\lib\&lt;/P&gt;
&lt;P&gt;Linker&amp;gt;Input&amp;gt;Additional Dependancies.... &lt;BR /&gt;impi.lib libmpi_ilp64.lib&lt;/P&gt;
&lt;P&gt;Build Events&amp;gt;Post-Build Event&amp;gt;Command Line....&lt;BR /&gt;copy /Y "$(I_MPI_ONEAPI_ROOT)\bin\debug\impi.dll" "$(TargetDir)"&lt;BR /&gt;copy /Y "$(I_MPI_ONEAPI_ROOT)\libfabric\bin\libfabric.dll" "$(TargetDir)"&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 20:42:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Running-an-MPI-Fortran-program-within-visual-studio-2019/m-p/1275951#M8147</guid>
      <dc:creator>galli_m</dc:creator>
      <dc:date>2021-04-22T20:42:53Z</dc:date>
    </item>
    <item>
      <title>Re:Running an MPI Fortran program within visual studio 2019</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Running-an-MPI-Fortran-program-within-visual-studio-2019/m-p/1277250#M8174</link>
      <description>&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for the confirmation.&lt;/P&gt;&lt;P&gt;We will no longer monitor this thread, as your issue is resolved. &amp;nbsp;If you require any additional assistance from Intel, please start a new thread.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any further interaction in this thread will be considered community only.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Apr 2021 06:29:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Running-an-MPI-Fortran-program-within-visual-studio-2019/m-p/1277250#M8174</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2021-04-28T06:29:05Z</dc:date>
    </item>
  </channel>
</rss>

