<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — OpenMP]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=128</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=128&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in OpenMP.]]></description>
		<lastBuildDate>Sat, 10 Nov 2012 17:06:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: OpenMP]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=427#p427</link>
			<description><![CDATA[<p>Jeff,</p><p>Thank you, now it compiles (SF 1.35). However, OpenMp program<br />runs slower... But it is another story, I believe....<br />BTW, I think there are still some problems with project management. <br />Clean project button deletes also exe files which belong to<br />other projects residing in the same folder.</p><p>Best regards,<br />Carlos Herrera</p>]]></description>
			<author><![CDATA[null@example.com (Carlos Herrera)]]></author>
			<pubDate>Sat, 10 Nov 2012 17:06:48 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=427#p427</guid>
		</item>
		<item>
			<title><![CDATA[Re: OpenMP]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=423#p423</link>
			<description><![CDATA[<p>Carlos,</p><p>You were almost there.&nbsp; You also need to add the directive &quot;-lpthread&quot; to the linker.&nbsp; Your linker options should look like:</p><p>-lgomp -lpthread</p><p>Let me know if you have any other issues, and keep us posted on your progress.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 09 Nov 2012 15:04:59 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=423#p423</guid>
		</item>
		<item>
			<title><![CDATA[OpenMP]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=422#p422</link>
			<description><![CDATA[<p>Hi,<br />I have decided to give OpenMP a first try with the brand new SF 1.34 (winXP, 32bit).<br />After setting the&nbsp; environment variable OMP_NUM_THREADS=2<br />I tried to compile a simple project with -fopenmp option.<br />It did not work:</p><p>build\test1.o:D:\Projects\SimpleFortran\OpenMp/test1.f90:7: undefined reference to `omp_get_num_threads&#039;<br />build\test1.o:D:\Projects\SimpleFortran\OpenMp/test1.f90:7: undefined reference to `omp_get_thread_num&#039;<br />build\test1.o: In function `a1_&#039;:<br />D:\Projects\SimpleFortran\OpenMp/test1.f90:7: undefined reference to `GOMP_parallel_start&#039;<br />D:\Projects\SimpleFortran\OpenMp/test1.f90:7: undefined reference to `GOMP_parallel_end&#039;.</p><p>Then I added -lgomp directive to the linker. Still no success, with different and much more cryptic <br />messages like:</p><p>c:/program files/simply fortran/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/lib/../lib32\libgomp.a(team.o): In function `gomp_mutex_destroy&#039;:<br />f:\workspace\gcc\obj\gcc\x86_64-w64-mingw32\32\libgomp/../../../../../src/gcc-4.7.2/libgomp/config/posix/mutex.h:54: undefined reference to `_imp__pthread_mutex_destroy&#039;</p><br /><p>Any ideas what to do next? Thanks in advance.</p><p>Carlos Herrera</p>]]></description>
			<author><![CDATA[null@example.com (Carlos Herrera)]]></author>
			<pubDate>Fri, 09 Nov 2012 14:35:44 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=422#p422</guid>
		</item>
	</channel>
</rss>
