<?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 Thanks! in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/stacksize/m-p/1031060#M41992</link>
    <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 21 Oct 2014 14:35:08 GMT</pubDate>
    <dc:creator>Jen_B_</dc:creator>
    <dc:date>2014-10-21T14:35:08Z</dc:date>
    <item>
      <title>stacksize</title>
      <link>https://community.intel.com/t5/Software-Archive/stacksize/m-p/1031058#M41990</link>
      <description>&lt;P&gt;how to set mic_stacksize to unlimited or max possible? thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2014 12:50:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/stacksize/m-p/1031058#M41990</guid>
      <dc:creator>Jen_B_</dc:creator>
      <dc:date>2014-10-21T12:50:46Z</dc:date>
    </item>
    <item>
      <title>For offload, thread stack</title>
      <link>https://community.intel.com/t5/Software-Archive/stacksize/m-p/1031059#M41991</link>
      <description>&lt;P&gt;For offload, thread stack size (default 2MB) is set by MIC_STACKSIZE:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/sites/products/documentation/doclib/iss/2013/compiler/cpp-lin/GUID-17EE519D-7D60-4294-B87F-87E5F51EFF2C.htm" target="_blank"&gt;https://software.intel.com/sites/products/documentation/doclib/iss/2013/compiler/cpp-lin/GUID-17EE519D-7D60-4294-B87F-87E5F51EFF2C.htm&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;For processes running in a shell on the MIC (e.g. MPI), you must set primary stacksize in that shell e.g.&lt;/P&gt;

&lt;P&gt;ulimit -s unlimited&lt;/P&gt;

&lt;P&gt;as well as possibly adjusting thread stack size (default 4MB) by OMP_STACKSIZE or KMP_STACKSIZE (which over-rides OMP_STACKSIZE).&amp;nbsp; Raising thread stack size is almost certain to require unlimited primary stack (and may still limit the number of threads which can be used effectively).&amp;nbsp; For example, I used 30 threads in each of 6 MPI ranks with OMP_STACKSIZE=9m.&lt;/P&gt;

&lt;P&gt;Clearly, you must not set MIC_STACKSIZE or OMP_STACKSIZE to a ridiculous value.&amp;nbsp; Nothing stops you from tying the coprocessor in knots by attempting a total of 200GB stack.&lt;/P&gt;

&lt;P&gt;When I last heard (well over a year ago), there was no expert consensus on changing anything in the scheme, although there were opinions that something should be done (such as making ulimit -s unlimited the default).&amp;nbsp; Note that the newest information I could find by browser search is that old.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2014 13:26:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/stacksize/m-p/1031059#M41991</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-10-21T13:26:18Z</dc:date>
    </item>
    <item>
      <title>Thanks!</title>
      <link>https://community.intel.com/t5/Software-Archive/stacksize/m-p/1031060#M41992</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2014 14:35:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/stacksize/m-p/1031060#M41992</guid>
      <dc:creator>Jen_B_</dc:creator>
      <dc:date>2014-10-21T14:35:08Z</dc:date>
    </item>
  </channel>
</rss>

