<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Using OpenMPI]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=753</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=753&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Using OpenMPI.]]></description>
		<lastBuildDate>Sun, 07 Jun 2020 14:25:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Using OpenMPI]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3498#p3498</link>
			<description><![CDATA[<p>If your Linux distribution supports Open MPI, then yes, you could use it from Simply Fortran.&nbsp; The Linux version of Simply Fortran will use the system&#039;s Fortran compiler and libraries, so it would depend on the distribution.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Sun, 07 Jun 2020 14:25:05 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3498#p3498</guid>
		</item>
		<item>
			<title><![CDATA[Re: Using OpenMPI]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3496#p3496</link>
			<description><![CDATA[<p>Thank you for the feedback, Jeff.</p><p>If I had a Linux version of Simple Fortran would I then be able to use OpenMPI?</p>]]></description>
			<author><![CDATA[null@example.com (GS76)]]></author>
			<pubDate>Sat, 06 Jun 2020 14:26:30 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3496#p3496</guid>
		</item>
		<item>
			<title><![CDATA[Re: Using OpenMPI]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3495#p3495</link>
			<description><![CDATA[<p>It is possible to use <a href="http://packages.simplyfortran.com/package/69.html">Microsoft MPI</a> with Simply Fortran, but we don&#039;t include it with Simply Fortran&#039;s installer due to licensing issues.&nbsp; Additionally, Microsoft MPI is somewhat lagging in terms of the standard.&nbsp; </p><p>So yes, that program should work, but you would need MS MPI set up first to work with Simply Fortran.&nbsp; OpenMP or using Fortran Coarrays directly on Windows is definitely preferable.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Sat, 06 Jun 2020 14:11:38 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3495#p3495</guid>
		</item>
		<item>
			<title><![CDATA[Using OpenMPI]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3493#p3493</link>
			<description><![CDATA[<p>Hi all,</p><p>Is it possible to use Openmpi on Windows and within Simple Fortran:</p><p>Please see the code below. It is from &quot;Modern Fortran&quot; by Milan Curcic (Listing 1.2).</p><p>Or should this be implemented with OpenMP and how?</p><div class="codebox"><pre><code>program array_copy_mpi

  use mpi
  implicit none

  integer :: ierr, nproc, procsize, request
  integer :: stat(mpi_status_size)

  integer :: array(5) = 0
  integer, parameter :: sender = 0, receiver = 1

  call mpi_init(ierr)
  call mpi_comm_rank(mpi_comm_world, nproc, ierr)
  call mpi_comm_size(mpi_comm_world, procsize, ierr)

  if (procsize /= 2) then
    call mpi_finalize(ierr)
    stop &#039;Error: This program must be run on 2 parallel processes&#039;
  end if

  if (nproc == sender) array = [1, 2, 3, 4, 5]

  print &#039;(a,i1,a,5(4x,i2))&#039;, &#039;array on proc &#039;, nproc, &amp;
    &#039; before copy:&#039;, array

  call mpi_barrier(mpi_comm_world, ierr)

  if (nproc == sender) then
    call mpi_isend(array, size(array), mpi_int, receiver, 1, &amp;
                   mpi_comm_world, request, ierr)
  else if (nproc == receiver) then
    call mpi_irecv(array, size(array), mpi_int, sender, 1, &amp;
                   mpi_comm_world, request, ierr)
    call mpi_wait(request, stat, ierr)
  end if

  print &#039;(a,i1,a,5(4x,i2))&#039;, &#039;array on proc &#039;, nproc, &amp;
    &#039; after copy: &#039;, array

  call mpi_finalize(ierr)

end program array_copy_mpi</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (GS76)]]></author>
			<pubDate>Sat, 06 Jun 2020 05:57:38 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3493#p3493</guid>
		</item>
	</channel>
</rss>
