<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — OpenMP]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=128&amp;type=atom" />
	<updated>2012-11-10T17:06:48Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=128</id>
		<entry>
			<title type="html"><![CDATA[Re: OpenMP]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=427#p427" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Carlos Herrera]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=407</uri>
			</author>
			<updated>2012-11-10T17:06:48Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=427#p427</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenMP]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=423#p423" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2012-11-09T15:04:59Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=423#p423</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[OpenMP]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=422#p422" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Carlos Herrera]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=407</uri>
			</author>
			<updated>2012-11-09T14:35:44Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=422#p422</id>
		</entry>
</feed>
