<?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 First, does your program run in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Memory-Problem-in-OpenMP-with-MPI/m-p/1169001#M145324</link>
    <description>&lt;P&gt;First, does your program run directly? 1 thread, 2 threads, ...&lt;/P&gt;

&lt;P&gt;OpenMP threads tend to default to having a relatively small stack size (1MB to 4MB) though this should not result in OOM. Can you tell us more about your environment?&lt;/P&gt;

&lt;P&gt;Targeting 32-bit or 64-bit application. Number of hardware threads per node, number of nodes available, number of OpenMP threads requested, Linker options, etc...&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2017 20:31:23 GMT</pubDate>
    <dc:creator>jimdempseyatthecove</dc:creator>
    <dc:date>2017-08-17T20:31:23Z</dc:date>
    <item>
      <title>Memory Problem in OpenMP with MPI</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Memory-Problem-in-OpenMP-with-MPI/m-p/1169000#M145323</link>
      <description>&lt;P&gt;Dear Community;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am using an hybrid formulation (MPI + OpenMP). When I use MPI with any number of process the computation goes very good and the output subroutine (where I print all my data) goes very well too. I use a collection of gather form my Output/Writing, not very efficient, I know.!!&lt;/P&gt;

&lt;P&gt;However, when I use the OpenMP + MPI, the output task of my code stops working with the message (OOM Out of Memory). No matter if I set &amp;nbsp; &amp;nbsp; &amp;nbsp; setnv OMP_NUM_THREAD = 1 the problem persists.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I have also used&amp;nbsp;setnv OMP_NUM_THREAD = 2 and inside the code I have tried changing the number of threads using OMP_SET_NUM_THREAD before starting the Output subroutine but still I did not work. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;I was wondering if is there an option or instruction to free the memory from the Threds. I see that even using OMP_SET_NUM_THREADS(1) did not workout.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;What do you recommend me.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 19:22:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Memory-Problem-in-OpenMP-with-MPI/m-p/1169000#M145323</guid>
      <dc:creator>Julio</dc:creator>
      <dc:date>2017-08-17T19:22:25Z</dc:date>
    </item>
    <item>
      <title>First, does your program run</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Memory-Problem-in-OpenMP-with-MPI/m-p/1169001#M145324</link>
      <description>&lt;P&gt;First, does your program run directly? 1 thread, 2 threads, ...&lt;/P&gt;

&lt;P&gt;OpenMP threads tend to default to having a relatively small stack size (1MB to 4MB) though this should not result in OOM. Can you tell us more about your environment?&lt;/P&gt;

&lt;P&gt;Targeting 32-bit or 64-bit application. Number of hardware threads per node, number of nodes available, number of OpenMP threads requested, Linker options, etc...&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 20:31:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Memory-Problem-in-OpenMP-with-MPI/m-p/1169001#M145324</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2017-08-17T20:31:23Z</dc:date>
    </item>
    <item>
      <title>Hi Jim, thanks for your</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Memory-Problem-in-OpenMP-with-MPI/m-p/1169002#M145325</link>
      <description>&lt;P&gt;Hi Jim, thanks for your kindness!!!&lt;/P&gt;

&lt;P&gt;Ok, each node has 16 cores, sockets per node =2 and cores per socket =8. i am using SLURM and I have not changed the configuration of the default script to build and submit jobs. I could use Tasks invocation controls but I am not sure if it will help, more info: &lt;A href="https://slurm.schedmd.com/mc_support.html#srun_ntasks" target="_blank"&gt;https://slurm.schedmd.com/mc_support.html#srun_ntasks&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;The implementation runs perfectly independently of the number of threads, the problem arises in the output section. That is why I wanted to know if there was an instruction to free the memory that threads allocates.&lt;/P&gt;

&lt;P&gt;The cluster specification are these: The system consists of one head node for remote login and approximately 4 TeraByte of memory (10&lt;SUP&gt;12&lt;/SUP&gt; bytes), 30 TeraBytes of disk space, 6CPU nodes with 32 eight-core Intel processors giving a total of 256 cores plus 2 CPU/GPGPU nodes with a 10 core Intel processor and 4 K40 Tesla GPU accelerators giving approximately 12.4 TFlops&lt;SUP&gt;*&lt;/SUP&gt; performance, 64 bits.&lt;/P&gt;

&lt;P&gt;I tried with setenv OMP_NUM_THREAD 1 and the problem persists. The only way I can go through my processes succesfully is by compiling my case without -openmp flag. BEcuase even with one thread the problem pops up.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 02:55:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Memory-Problem-in-OpenMP-with-MPI/m-p/1169002#M145325</guid>
      <dc:creator>Julio</dc:creator>
      <dc:date>2017-08-18T02:55:25Z</dc:date>
    </item>
    <item>
      <title>Many years ago (maybe 11), I</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Memory-Problem-in-OpenMP-with-MPI/m-p/1169003#M145326</link>
      <description>&lt;P&gt;Many years ago (maybe 11), I had a simulation program that presented the OOM error condition. After a lengthy investigation of the situation without resolving the problem,&amp;nbsp;I did a little more research into the&amp;nbsp;triggers for this message. One of the causes is when your application runs out of memory (as the error message implies). This is a misnomer because it typically means you ran out of page file capacity. The second reason for the oom&amp;nbsp;service to kill a job is when a significantly long compute section occurs, which appears to the&amp;nbsp;oom service that your application is hung. For a fix, use Google and search for:&lt;/P&gt;

&lt;P&gt;oom killer linux&lt;/P&gt;

&lt;P&gt;look at either the configuration information or how to create exclusions.&lt;/P&gt;

&lt;P&gt;Note, your system admin may have to get involved with this.&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 11:56:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Memory-Problem-in-OpenMP-with-MPI/m-p/1169003#M145326</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2017-08-18T11:56:26Z</dc:date>
    </item>
    <item>
      <title>Thanks Jim I appreciate our</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Memory-Problem-in-OpenMP-with-MPI/m-p/1169004#M145327</link>
      <description>&lt;P&gt;Thanks Jim I appreciate our help!!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 14:48:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Memory-Problem-in-OpenMP-with-MPI/m-p/1169004#M145327</guid>
      <dc:creator>Julio</dc:creator>
      <dc:date>2017-08-18T14:48:59Z</dc:date>
    </item>
  </channel>
</rss>

