<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — any lib for multiplateform multithreading / multiprocessing ?]]></title>
		<link>http://forums.approximatrix.com/viewtopic.php?id=697</link>
		<atom:link href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=697&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in any lib for multiplateform multithreading / multiprocessing ?.]]></description>
		<lastBuildDate>Fri, 24 May 2019 19:06:49 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: any lib for multiplateform multithreading / multiprocessing ?]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3305#p3305</link>
			<description><![CDATA[<div class="quotebox"><cite>cboardman wrote:</cite><blockquote><p>I have Fortran source code which expects an MPI implementation to be available.&nbsp; But I cannot compile it under Simply Fortran because it cannot find the MPI module. When the compiler finds<br />USE MPI<br />that is a fatal error.</p></blockquote></div><p>CR,</p><p>Simply Fortran for Windows does not include an MPI implementation in the standard installation.&nbsp; You can install <a href="https://www.microsoft.com/en-us/download/details.aspx?id=57467">Microsoft MPI for Windows</a>, but there is a significant amount of work involved in getting it running with our compiler (Microsoft assumes you&#039;ll be using Visual C++).&nbsp; We offer an older version through <a href="https://packages.simplyfortran.com/package/69.html">the SF Package Manager</a> that should work as-is.&nbsp; However, the Microsoft MPI packages are only MPI 2.0 compliant.&nbsp; If you need MPI 3, there really isn&#039;t an alternative other than maybe Intel&#039;s offering.</p><p>If you are on Windows 10, you might want to consider installing the Windows Subsystem for Linux.&nbsp; It will allow you to install and run native Linux applications under Windows (including Simply Fortran and MPI) with a bit of work involved.</p><p>Sorry for the disappointing news.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 24 May 2019 19:06:49 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3305#p3305</guid>
		</item>
		<item>
			<title><![CDATA[Re: any lib for multiplateform multithreading / multiprocessing ?]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3304#p3304</link>
			<description><![CDATA[<p>Hi, I have a queston related to this thread.</p><p>I have Fortran source code which expects an MPI implementation to be available.&nbsp; But I cannot compile it under Simply Fortran because it cannot find the MPI module. When the compiler finds<br />USE MPI<br />that is a fatal error. </p><p>The source code in question is FDS, the Fire Dynamic Simulator, and it is distributed to run under Linux, Mac OS, and Windows.&nbsp; But in their makefile they only give examples of compiling using the Intel Windows compiler, which supports their own MPI implementation.&nbsp; Now there is an OpenMPI which has a fortran binding, but I don&#039;t see how to use it under Windows.&nbsp; The free OpenMPI appears to be primarily supported in Linux and Mac OS.</p><p>So, I am trying to figure out if I can continue to use Windows 10 and Simply Fortran while also compiling this FDS Fotran source to produce a Windows exe.&nbsp; Any advice or help?&nbsp; Best I have come up with so far is to explore either Cygwin or Linux Bash shell under Windows.&nbsp; </p><p>Thanks</p><p>CR</p>]]></description>
			<author><![CDATA[null@example.com (cboardman)]]></author>
			<pubDate>Thu, 23 May 2019 22:51:54 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3304#p3304</guid>
		</item>
		<item>
			<title><![CDATA[Re: any lib for multiplateform multithreading / multiprocessing ?]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3236#p3236</link>
			<description><![CDATA[<p>There are Fortran pthread wrappers (<a href="https://github.com/ohm314/forthreads">here</a>, for example) that should make things easier.&nbsp; Mixing OpenMP and pthread calls shouldn&#039;t be problematic in theory, but it probably is in practice.&nbsp; We can look at packaging a thread wrapping library, though.&nbsp; I think that would make sense to include with the compiler.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 16 Nov 2018 18:43:52 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3236#p3236</guid>
		</item>
		<item>
			<title><![CDATA[Re: any lib for multiplateform multithreading / multiprocessing ?]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3235#p3235</link>
			<description><![CDATA[<p>i have the feeling that mixing pthread and openmp would be a terrible nightmare so... i&#039;m not sure.</p>]]></description>
			<author><![CDATA[null@example.com (ker2x)]]></author>
			<pubDate>Fri, 16 Nov 2018 11:19:57 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3235#p3235</guid>
		</item>
		<item>
			<title><![CDATA[Re: any lib for multiplateform multithreading / multiprocessing ?]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3234#p3234</link>
			<description><![CDATA[<p>Do you think it would be difficult to do a pthread module ?<br />I never ever used C library from fortran so i have no idea.</p><p>It could be educational for me to do it but pthread isn&#039;t an ideal practice target <img src="http://forums.approximatrix.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> </p><p>I tried to think of a way to use coarray and openmp for my problem but everything feel like a terribly dirty hack</p>]]></description>
			<author><![CDATA[null@example.com (ker2x)]]></author>
			<pubDate>Fri, 16 Nov 2018 08:50:14 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3234#p3234</guid>
		</item>
		<item>
			<title><![CDATA[Re: any lib for multiplateform multithreading / multiprocessing ?]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3233#p3233</link>
			<description><![CDATA[<p>The most &quot;Fortran&quot; way to do this might be to take advantage of coarray support.&nbsp; You can have one image continue to respond to input while the other images would be performing calculations.&nbsp; However, coarray support still isn&#039;t ideal for what you&#039;re discussing.&nbsp; It&#039;s probably not as flexible as you&#039;d like.&nbsp; Simply Fortran on Windows supports coarrays without needing MPI, but you&#039;d need MPI on other platforms.</p><p>Pthreads aren&#039;t particularly portable just because you&#039;ll need a wrapper on Windows.&nbsp; We don&#039;t currently ship a Fortran-accessible Pthreads library with Windows, though we could make it available if there was interest.&nbsp; &nbsp;</p><p>We ship OpenMP with all our platforms, so that&#039;s also an option.&nbsp; &nbsp;Again, though, OpenMP might not be as flexible as you&#039;d wish.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 15 Nov 2018 23:02:01 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3233#p3233</guid>
		</item>
		<item>
			<title><![CDATA[Re: any lib for multiplateform multithreading / multiprocessing ?]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3232#p3232</link>
			<description><![CDATA[<p>it seems there is a windows version of openmpi, no idea yet how to integrate the whole stuff into simply fortran.<br />And, ultimately, running openmpi application isn&#039;t very user friendly <img src="http://forums.approximatrix.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[null@example.com (ker2x)]]></author>
			<pubDate>Thu, 15 Nov 2018 21:49:11 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3232#p3232</guid>
		</item>
		<item>
			<title><![CDATA[any lib for multiplateform multithreading / multiprocessing ?]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3231#p3231</link>
			<description><![CDATA[<p>Is there a way to create/manage multiple thread working on both windows and linux ?</p><p>if not, what about multiprocessing ? i was thinking of MPI but it seems to be a pain to make it works on both plateform.</p><p>Any other idea/solution/possibility ?</p><p>I have some code that need to continuously do tons of computation while still responding to command from stdin.</p><p>i was even considering unix socket to communicate between multi process but... windows....</p><p>The best case scenario would be phtread of course. But i would need to use cygwin on windows to handle it.<br />I don&#039;t even know how to use pthread from fortran actually.</p>]]></description>
			<author><![CDATA[null@example.com (ker2x)]]></author>
			<pubDate>Thu, 15 Nov 2018 21:07:33 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3231#p3231</guid>
		</item>
	</channel>
</rss>
