<?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 A common mistake is to link in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/2-CPUs-vs-num-threads/m-p/941335#M5058</link>
    <description>&lt;P&gt;A common mistake is to link your program specifying "unlimited stack" or some unwieldy large stack size. It does not make sense to make such a&amp;nbsp;request for multi-threaded programs. Assume you have 32-bit application and you specify 1GB of stack in the link line. Threads your app creates default to this size. Your application will run out of memory (run out of virtual address space). For 32-bit app, your working space for the app is either 2GB or 3GB (leaving 2GB or 1GB for the O/S).&lt;/P&gt;

&lt;P&gt;Assuming you are running 64-bit app, While you will not run out of virtual address space, you may run out of swap file space. The corrective measure is to reduce the stack size and rely more on allocation from the heap. This will reduce the per-thread memory requirements.&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
    <pubDate>Sun, 22 Dec 2013 04:43:16 GMT</pubDate>
    <dc:creator>jimdempseyatthecove</dc:creator>
    <dc:date>2013-12-22T04:43:16Z</dc:date>
    <item>
      <title>2 CPUs vs num_threads</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/2-CPUs-vs-num-threads/m-p/941332#M5055</link>
      <description>&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;I have 2 xeon CPUs in the PC, each has 4 cores. However, I can only set&amp;nbsp;num_threads to 4. If I set it to a number &amp;gt; 4, I get a message:&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;OMP: Error #136: Cannot create thread.&lt;BR /&gt;
	OMP: System error #8: Not enough storage is available to process this command.&lt;BR /&gt;
	OMP: Error #178: Function GetExitCodeThread() failed:&lt;BR /&gt;
	OMP: System error #6: The handle is invalid.&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Is it not possible to use all the cores in the system because they are distributed across 2 cpus or why is this happening?&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;(Compiler: Intel C++ 13.0&lt;BR /&gt;
	OS: Windows server 2008 R2)&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2013 09:30:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/2-CPUs-vs-num-threads/m-p/941332#M5055</guid>
      <dc:creator>Leos_P_</dc:creator>
      <dc:date>2013-12-18T09:30:53Z</dc:date>
    </item>
    <item>
      <title>Are you building for 32-bit</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/2-CPUs-vs-num-threads/m-p/941333#M5056</link>
      <description>&lt;P&gt;Are you building for 32-bit mode? &amp;nbsp;I suppose it can be difficult to use 8 cores if you inadvertently use that mode.&lt;/P&gt;

&lt;P&gt;Did you try allowing more stack?&lt;/P&gt;

&lt;P&gt;Did you note prior posts on this subject? &amp;nbsp;Please tell us if you can rule out or follow any of the suggestions there (too many to repeat here).&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2013 17:52:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/2-CPUs-vs-num-threads/m-p/941333#M5056</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-12-18T17:52:00Z</dc:date>
    </item>
    <item>
      <title>Can you insert the call to</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/2-CPUs-vs-num-threads/m-p/941334#M5057</link>
      <description>&lt;P&gt;Can you insert the call to GetLastError function?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2013 19:33:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/2-CPUs-vs-num-threads/m-p/941334#M5057</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2013-12-18T19:33:59Z</dc:date>
    </item>
    <item>
      <title>A common mistake is to link</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/2-CPUs-vs-num-threads/m-p/941335#M5058</link>
      <description>&lt;P&gt;A common mistake is to link your program specifying "unlimited stack" or some unwieldy large stack size. It does not make sense to make such a&amp;nbsp;request for multi-threaded programs. Assume you have 32-bit application and you specify 1GB of stack in the link line. Threads your app creates default to this size. Your application will run out of memory (run out of virtual address space). For 32-bit app, your working space for the app is either 2GB or 3GB (leaving 2GB or 1GB for the O/S).&lt;/P&gt;

&lt;P&gt;Assuming you are running 64-bit app, While you will not run out of virtual address space, you may run out of swap file space. The corrective measure is to reduce the stack size and rely more on allocation from the heap. This will reduce the per-thread memory requirements.&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2013 04:43:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/2-CPUs-vs-num-threads/m-p/941335#M5058</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2013-12-22T04:43:16Z</dc:date>
    </item>
    <item>
      <title>Quote:iliyapolak wrote:</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/2-CPUs-vs-num-threads/m-p/941336#M5059</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;iliyapolak wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Can you insert the call to GetLastError function?&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;the library puts the result of&amp;nbsp;GetLastError&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14.399999618530273px;"&gt;OMP: System error #8: Not enough storage is available to process this command.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2014 04:54:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/2-CPUs-vs-num-threads/m-p/941336#M5059</guid>
      <dc:creator>Vladimir_P_1234567890</dc:creator>
      <dc:date>2014-01-21T04:54:40Z</dc:date>
    </item>
    <item>
      <title>When your app is 32-bit and</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/2-CPUs-vs-num-threads/m-p/941337#M5060</link>
      <description>&lt;P&gt;When your app is 32-bit and it is running inside WoW container process it can use up to 4GB of address space.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2014 08:11:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/2-CPUs-vs-num-threads/m-p/941337#M5060</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-01-21T08:11:08Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;&gt; Assume you have 32-bit</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/2-CPUs-vs-num-threads/m-p/941338#M5061</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14.399999618530273px;"&gt;&amp;gt;&amp;gt;&amp;gt; Assume you have 32-bit application and you specify 1GB of stack in the link line. Threads your app creates default to this size.&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14.399999618530273px;"&gt;IIRC each newly created thread will have overridden its default stack size so virtual memory allocated to this specific process will run out.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2014 08:15:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/2-CPUs-vs-num-threads/m-p/941338#M5061</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-01-21T08:15:06Z</dc:date>
    </item>
  </channel>
</rss>

