<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Running SF with MPI on linux machine]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=724&amp;type=atom" />
	<updated>2019-10-03T15:04:12Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=724</id>
		<entry>
			<title type="html"><![CDATA[Re: Running SF with MPI on linux machine]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3346#p3346" />
			<content type="html"><![CDATA[<p>First, you need to make sure the MPI executable is properly configured.&nbsp; In the <a href="http://simplyfortran.com/docs/full/linux/options/compiler.html">Compiler and Support Options window</a>, make sure that the MPI Executable and number of images are properly set to your liking.&nbsp; The defaults should be sufficient.</p><p>Second, you&#039;ll need to enable launching using MPI for your particular project.&nbsp; In the <a href="http://simplyfortran.com/docs/full/linux/options/project.html">Project Options window, go to the &quot;Launch&quot; category</a>.&nbsp; You&#039;ll need to click the options &quot;Launch Using Message Passing Interface.&quot;</p><p>Finally, you need to link the MPICH library to your executable.&nbsp; The MPICH library, on Debian/Ubuntu, can be linked by adding the following flag to the Linker box under Compiler Flags in Project Options:</p><div class="codebox"><pre><code>-lmpich</code></pre></div><p>It sounds like you should have most everything working already on Linux, though, if it all works through the command line.&nbsp; I should note that Simply Fortran&#039;s debugger will not work properly with MPICH controlling your executable.&nbsp; It would be best to debug the program as a single-thread/single-image implementation prior to moving to MPI.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2019-10-03T15:04:12Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3346#p3346</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Running SF with MPI on linux machine]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3345#p3345" />
			<content type="html"><![CDATA[<p>Hello,</p><p>I am currently running my code with OpenMP on SF (Build 3.2 , 2981). I want to switch the code to MPI and want to try out few &#039;Hello World&#039; runs using MPI.</p><p>(PS:I have gfortran and MPICH already installed and the hello world runs without errors on the terminal)</p><p>As I went through the forum, there is a package which is meant to run on windows. Any pointers on how I can run SF with MPI?</p><p>or is it not possible ?</p>]]></content>
			<author>
				<name><![CDATA[sunilgk]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3827</uri>
			</author>
			<updated>2019-10-02T12:09:49Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3345#p3345</id>
		</entry>
</feed>
