<?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>topic Re: Threads counter in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Threads-counter/m-p/891395#M3798</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/416135"&gt;Michael Klemm, Intel&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;To me, your program looks OK. The problem should be the /Qparallel switch you've used to compile your code. /Qparallel only enables parallel code generation, but not OpenMP compilation. You should use /Qopenmp to turn on OpenMP support. Then, your code should print the expected results.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt; -michael&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Hello Michael,&lt;BR /&gt;&lt;BR /&gt;Thank you for your answer. You are propbably right, I have a quick look on the on line help. Yes I should use /Qopenmp. But I don't know where I can find it, with Visual Studio graphical inteface.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Didace&lt;BR /&gt;</description>
    <pubDate>Wed, 19 Aug 2009 09:57:01 GMT</pubDate>
    <dc:creator>ekeom</dc:creator>
    <dc:date>2009-08-19T09:57:01Z</dc:date>
    <item>
      <title>Threads counter</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Threads-counter/m-p/891393#M3796</link>
      <description>Dear All,&lt;BR /&gt;&lt;BR /&gt;I'm learning OpenMP. I wrote a basic program (attached below), to display threads number. As I have a Core 2 Duo, I was expecting to see in the output window.&lt;BR /&gt;&lt;BR /&gt;Thread number : , 1&lt;BR /&gt;&lt;BR /&gt;Thread number : , 2&lt;BR /&gt;&lt;BR /&gt;But I can se only&lt;BR /&gt;&lt;BR /&gt;Thread number : , 1&lt;BR /&gt;&lt;BR /&gt;It means that my application can see only one thread! Do someone no why? Of course I have use /Qparallel mode&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Didace&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;program test_parallel&lt;BR /&gt;&lt;BR /&gt; use omp_lib&lt;BR /&gt;&lt;BR /&gt;!$OMP PARALLEL DEFAULT(SHARED)&lt;BR /&gt;&lt;BR /&gt; write(*,*)&lt;BR /&gt; write(*,'(17h Thread number : ,i1)') 1 + OMP_GET_THREAD_NUM()&lt;BR /&gt; write(*,*)&lt;BR /&gt;&lt;BR /&gt;!$OMP END PARALLEL&lt;BR /&gt;&lt;BR /&gt;end program test_parallel</description>
      <pubDate>Wed, 19 Aug 2009 07:12:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Threads-counter/m-p/891393#M3796</guid>
      <dc:creator>ekeom</dc:creator>
      <dc:date>2009-08-19T07:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Threads counter</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Threads-counter/m-p/891394#M3797</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/137825"&gt;ekeom&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;It means that my application can see only one thread! Do someone no why? Of course I have use /Qparallel mode&lt;/EM&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;To me, your program looks OK. The problem should be the /Qparallel switch you've used to compile your code. /Qparallel only enables parallel code generation, but not OpenMP compilation. You should use /Qopenmp to turn on OpenMP support. Then, your code should print the expected results.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt; -michael&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Aug 2009 09:36:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Threads-counter/m-p/891394#M3797</guid>
      <dc:creator>Michael_K_Intel2</dc:creator>
      <dc:date>2009-08-19T09:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Threads counter</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Threads-counter/m-p/891395#M3798</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/416135"&gt;Michael Klemm, Intel&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;To me, your program looks OK. The problem should be the /Qparallel switch you've used to compile your code. /Qparallel only enables parallel code generation, but not OpenMP compilation. You should use /Qopenmp to turn on OpenMP support. Then, your code should print the expected results.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt; -michael&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Hello Michael,&lt;BR /&gt;&lt;BR /&gt;Thank you for your answer. You are propbably right, I have a quick look on the on line help. Yes I should use /Qopenmp. But I don't know where I can find it, with Visual Studio graphical inteface.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Didace&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Aug 2009 09:57:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Threads-counter/m-p/891395#M3798</guid>
      <dc:creator>ekeom</dc:creator>
      <dc:date>2009-08-19T09:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Threads counter</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Threads-counter/m-p/891396#M3799</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/416135"&gt;Michael Klemm, Intel&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;To me, your program looks OK. The problem should be the /Qparallel switch you've used to compile your code. /Qparallel only enables parallel code generation, but not OpenMP compilation. You should use /Qopenmp to turn on OpenMP support. Then, your code should print the expected results.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt; -michael&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Hello Michael,&lt;BR /&gt;&lt;BR /&gt;It me again. I have found how to active /Qopenmp.&lt;BR /&gt;&lt;BR /&gt;Best regrads,&lt;BR /&gt;&lt;BR /&gt;Didace&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Aug 2009 10:37:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Threads-counter/m-p/891396#M3799</guid>
      <dc:creator>ekeom</dc:creator>
      <dc:date>2009-08-19T10:37:11Z</dc:date>
    </item>
  </channel>
</rss>

