<?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: Program running with 2 threads although OMP_NUM_THREADS=1 in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Program-running-with-2-threads-although-OMP-NUM-THREADS-1/m-p/926713#M6690</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I can see the two helper threads, but there is one additional thread&lt;BR /&gt;which collects a lot of CPU time, and it is definitely a compute&lt;BR /&gt;thread. Besides, the program uses omp_get_num_threads() to determine&lt;BR /&gt;the number of threads it is running on, and this number is reported&lt;BR /&gt;as 2.&lt;BR /&gt;&lt;BR /&gt;The script trick works, ok.&lt;BR /&gt;&lt;BR /&gt;Btw, I have checked that the problem does not appear when doing&lt;BR /&gt;IP sampling. Strange.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Georg.</description>
    <pubDate>Thu, 18 Nov 2004 18:16:53 GMT</pubDate>
    <dc:creator>schorscherl</dc:creator>
    <dc:date>2004-11-18T18:16:53Z</dc:date>
    <item>
      <title>Program running with 2 threads although OMP_NUM_THREADS=1</title>
      <link>https://community.intel.com/t5/Analyzers/Program-running-with-2-threads-although-OMP-NUM-THREADS-1/m-p/926711#M6688</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;when I run my OpenMP program using the cli version &lt;BR /&gt;of VTune 3.0b, it runs with one thread when I set OMP_NUM_THREADS=1,&lt;BR /&gt;as expected (this is for callgraph profiling). When I do the same&lt;BR /&gt;under GUI (vtlec) control, it insists on running with 2 threads. I&lt;BR /&gt;have tried setting OMP_NUM_THREADS=1 on the command line before&lt;BR /&gt;starting vtlec, as well as setting it in the 'Advanced' project&lt;BR /&gt;options (user-defined environment), but this does not help. OMP_NUM_THREADS&lt;BR /&gt;seems to get ignored when the GUI is running.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Georg.&lt;BR /&gt;&lt;BR /&gt;PS: This is on a dual Xeon, SuSE 8.1, Kernel 2.4.24.</description>
      <pubDate>Wed, 17 Nov 2004 16:55:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Program-running-with-2-threads-although-OMP-NUM-THREADS-1/m-p/926711#M6688</guid>
      <dc:creator>schorscherl</dc:creator>
      <dc:date>2004-11-17T16:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Program running with 2 threads although OMP_NUM_THREADS=1</title>
      <link>https://community.intel.com/t5/Analyzers/Program-running-with-2-threads-although-OMP-NUM-THREADS-1/m-p/926712#M6689</link>
      <description>Sometimes, it has been necessary to run a script, in which the environment variables are set before starting the application.&lt;BR /&gt;&lt;BR /&gt;OpenMP programs built with Intel compilers have 2 monitor threads, in addition to those counted under OMP_NUM_THREADS.  Intel libguide and linux libpthread each are responsible for one.  They normally accumulate well under a second together.  I'm not certain from your description whether those are involved.</description>
      <pubDate>Wed, 17 Nov 2004 22:23:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Program-running-with-2-threads-although-OMP-NUM-THREADS-1/m-p/926712#M6689</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2004-11-17T22:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Program running with 2 threads although OMP_NUM_THREADS=1</title>
      <link>https://community.intel.com/t5/Analyzers/Program-running-with-2-threads-although-OMP-NUM-THREADS-1/m-p/926713#M6690</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I can see the two helper threads, but there is one additional thread&lt;BR /&gt;which collects a lot of CPU time, and it is definitely a compute&lt;BR /&gt;thread. Besides, the program uses omp_get_num_threads() to determine&lt;BR /&gt;the number of threads it is running on, and this number is reported&lt;BR /&gt;as 2.&lt;BR /&gt;&lt;BR /&gt;The script trick works, ok.&lt;BR /&gt;&lt;BR /&gt;Btw, I have checked that the problem does not appear when doing&lt;BR /&gt;IP sampling. Strange.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Georg.</description>
      <pubDate>Thu, 18 Nov 2004 18:16:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Program-running-with-2-threads-although-OMP-NUM-THREADS-1/m-p/926713#M6690</guid>
      <dc:creator>schorscherl</dc:creator>
      <dc:date>2004-11-18T18:16:53Z</dc:date>
    </item>
  </channel>
</rss>

