<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>P-SeriesのトピックRe: Using OpenMP in CodeWarrior for Stream</title>
    <link>https://community.nxp.com/t5/P-Series/Using-OpenMP-in-CodeWarrior-for-Stream/m-p/317464#M1244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This resolved the issue, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2014 20:36:04 GMT</pubDate>
    <dc:creator>jmtroth</dc:creator>
    <dc:date>2014-07-16T20:36:04Z</dc:date>
    <item>
      <title>Using OpenMP in CodeWarrior for Stream</title>
      <link>https://community.nxp.com/t5/P-Series/Using-OpenMP-in-CodeWarrior-for-Stream/m-p/317458#M1238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am attempting to compile Stream with multithreading support but I can't seem to get it running with OpenMP. Here is the console output:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;**** Build of configuration Linux_Application for project stream ****&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;C:\Freescale\CW_PA_v10.3.3\gnu\bin\mingw32-make -j8 all&lt;/P&gt;
&lt;P&gt;'Building file: ../Sources/stream_mc.c'&lt;/P&gt;
&lt;P&gt;'Executing target #1 ../Sources/stream_mc.c'&lt;/P&gt;
&lt;P&gt;'Invoking: PowerPC LINUX e500mc C Compiler'&lt;/P&gt;
&lt;P&gt;"C:/Freescale/CW_PA_v10.3.3/Cross_Tools/gcc-4.7.2-XMe500mc-linux/bin/powerpc-unknown-linux-gnu-gcc" "../Sources/stream_mc.c" -O3 -fopenmp -g -Wall -c -fmessage-length=0 -mcpu=e500mc -MMD -MP -MF"Sources/stream_mc.d" -o"Sources/stream_mc.o"&lt;/P&gt;
&lt;P&gt;'Finished building: ../Sources/stream_mc.c'&lt;/P&gt;
&lt;P&gt;' '&lt;/P&gt;
&lt;P&gt;'Building target: stream.elf'&lt;/P&gt;
&lt;P&gt;'Executing target #2 stream.elf'&lt;/P&gt;
&lt;P&gt;'Invoking: PowerPC LINUX e500mc C Linker'&lt;/P&gt;
&lt;P&gt;"C:/Freescale/CW_PA_v10.3.3/Cross_Tools/gcc-4.7.2-XMe500mc-linux/bin/powerpc-unknown-linux-gnu-gcc"&amp;nbsp; "./Sources/stream_mc.o"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -o"stream.elf"&lt;/P&gt;
&lt;P&gt;../Sources/stream_mc.c: In function 'mysecond':&lt;/P&gt;
&lt;P&gt;../Sources/stream_mc.c:426:13: warning: variable 'i' set but not used [-Wunused-but-set-variable]&lt;/P&gt;
&lt;P&gt;../Sources/stream_mc.c: In function 'checkSTREAMresults':&lt;/P&gt;
&lt;P&gt;../Sources/stream_mc.c:481:3: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'unsigned int' [-Wformat]&lt;/P&gt;
&lt;P&gt;./Sources/stream_mc.o: In function `main._omp_fn.0':&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:252: undefined reference to `omp_get_thread_num'&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:254: undefined reference to `omp_get_num_threads'&lt;/P&gt;
&lt;P&gt;./Sources/stream_mc.o: In function `main._omp_fn.2':&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:269: undefined reference to `omp_get_num_threads'&lt;/P&gt;
&lt;P&gt;./Sources/stream_mc.o: In function `main._omp_fn.3':&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:288: undefined reference to `omp_get_num_threads'&lt;/P&gt;
&lt;P&gt;./Sources/stream_mc.o: In function `main._omp_fn.4':&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:315: undefined reference to `omp_get_num_threads'&lt;/P&gt;
&lt;P&gt;./Sources/stream_mc.o: In function `main._omp_fn.5':&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:325: undefined reference to `omp_get_num_threads'&lt;/P&gt;
&lt;P&gt;./Sources/stream_mc.o: In function `main._omp_fn.6':&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:335: undefined reference to `omp_get_num_threads'&lt;/P&gt;
&lt;P&gt;./Sources/stream_mc.o: In function `main._omp_fn.7':&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:345: undefined reference to `omp_get_num_threads'&lt;/P&gt;
&lt;P&gt;./Sources/stream_mc.o: In function `main._omp_fn.4.constprop.8':&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:315: undefined reference to `omp_get_num_threads'&lt;/P&gt;
&lt;P&gt;./Sources/stream_mc.o: In function `main._omp_fn.6.constprop.9':&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:335: undefined reference to `omp_get_num_threads'&lt;/P&gt;
&lt;P&gt;./Sources/stream_mc.o: In function `main':&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:250: undefined reference to `GOMP_parallel_start'&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:262: undefined reference to `GOMP_parallel_start'&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:269: undefined reference to `GOMP_parallel_start'&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:288: undefined reference to `GOMP_parallel_start'&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:315: undefined reference to `GOMP_parallel_start'&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:325: undefined reference to `GOMP_parallel_start'&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:335: undefined reference to `GOMP_parallel_start'&lt;/P&gt;
&lt;P&gt;C:\Users\john\workspace\stream\Linux_Application/../Sources/stream_mc.c:345: undefined reference to `GOMP_parallel_start'&lt;/P&gt;
&lt;P&gt;mingw32-make: *** [stream.elf] Error 1&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;I have already specified the -fopenmp flag in the Optimization section of the C/C++ Build Settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 21:59:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Using-OpenMP-in-CodeWarrior-for-Stream/m-p/317458#M1238</guid>
      <dc:creator>jmtroth</dc:creator>
      <dc:date>2014-07-08T21:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using OpenMP in CodeWarrior for Stream</title>
      <link>https://community.nxp.com/t5/P-Series/Using-OpenMP-in-CodeWarrior-for-Stream/m-p/317459#M1239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you linked in libgomp and include omp.h header file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 08:50:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Using-OpenMP-in-CodeWarrior-for-Stream/m-p/317459#M1239</guid>
      <dc:creator>lunminliang</dc:creator>
      <dc:date>2014-07-10T08:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using OpenMP in CodeWarrior for Stream</title>
      <link>https://community.nxp.com/t5/P-Series/Using-OpenMP-in-CodeWarrior-for-Stream/m-p/317460#M1240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linked libgomp? Not sure how to do that. I don't know anything about the omp.h header file, I do understand the script requires one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 13:27:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Using-OpenMP-in-CodeWarrior-for-Stream/m-p/317460#M1240</guid>
      <dc:creator>jmtroth</dc:creator>
      <dc:date>2014-07-10T13:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using OpenMP in CodeWarrior for Stream</title>
      <link>https://community.nxp.com/t5/P-Series/Using-OpenMP-in-CodeWarrior-for-Stream/m-p/317461#M1241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any thoughts? I tried using -lgomp and -libgomp with -fopenmp, to no avail. I am trying to find an omp.h file, but I haven't had to use it before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 12:23:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Using-OpenMP-in-CodeWarrior-for-Stream/m-p/317461#M1241</guid>
      <dc:creator>jmtroth</dc:creator>
      <dc:date>2014-07-14T12:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using OpenMP in CodeWarrior for Stream</title>
      <link>https://community.nxp.com/t5/P-Series/Using-OpenMP-in-CodeWarrior-for-Stream/m-p/317462#M1242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to build your application as the following.&lt;/P&gt;&lt;P&gt;In main.c&lt;/P&gt;&lt;P&gt;#include &amp;lt;omp.h&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;#pragma omp parallel&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then open the Libraries panel from Project-&amp;gt;Properties-&amp;gt;C/C++ Build-&amp;gt;Settings-&amp;gt;PowerPC LINUX * C Linker-&amp;gt;Libraries, and add "gomp" in the panel "Libraries(-l)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your problem remains, please kindly share your source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Yiping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 06:36:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Using-OpenMP-in-CodeWarrior-for-Stream/m-p/317462#M1242</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2014-07-15T06:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using OpenMP in CodeWarrior for Stream</title>
      <link>https://community.nxp.com/t5/P-Series/Using-OpenMP-in-CodeWarrior-for-Stream/m-p/317463#M1243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The omp.h is right contained in CodeWarrior installation directory. C:\Freescale\CW_PA_v10.3.3\Cross_Tools\gcc-4.7.2-XMe500mc-linux\lib\gcc\powerpc-unknown-linux-gnu\4.7.2\include.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 03:24:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Using-OpenMP-in-CodeWarrior-for-Stream/m-p/317463#M1243</guid>
      <dc:creator>lunminliang</dc:creator>
      <dc:date>2014-07-16T03:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using OpenMP in CodeWarrior for Stream</title>
      <link>https://community.nxp.com/t5/P-Series/Using-OpenMP-in-CodeWarrior-for-Stream/m-p/317464#M1244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This resolved the issue, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 20:36:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Using-OpenMP-in-CodeWarrior-for-Stream/m-p/317464#M1244</guid>
      <dc:creator>jmtroth</dc:creator>
      <dc:date>2014-07-16T20:36:04Z</dc:date>
    </item>
  </channel>
</rss>

