<?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 Strange problem with /Qauto option in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796201#M35349</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have the following problem.&lt;BR /&gt;&lt;BR /&gt;I have a rather large Fortran programme. I have recently parallelized a part of it using OpenMP.&lt;BR /&gt;&lt;BR /&gt;The code builds and runs fine on my Xeon X5570 with the following versions of Visual Fortran &lt;BR /&gt;&lt;BR /&gt;11.1.065&lt;BR /&gt;11.1.048&lt;BR /&gt;11.0.075&lt;BR /&gt;&lt;BR /&gt;The same code builds but crashes on my coauthor's server running two e5430 processors with the following versions of Visual Fortran&lt;BR /&gt;&lt;BR /&gt;11.1.065&lt;BR /&gt;11.0.074&lt;BR /&gt;&lt;BR /&gt;I have isolated the nature of the problem. It happens when I include the option /Qauto even if I run serially. It happens also when we build the code with OpenMP with the option /Qopenmp. The option /Qopenmp uses /Qauto. It does not happen in a parallelized section of the code. The programme crashes without any message when trying to inizialize an array of size 10000. If it is of any help, the programme is very memory intensive. The moment it crashes it is already using 3GB of memory. My coauthor's server though as three times (24GB) the memory as my desktop. &lt;BR /&gt;&lt;BR /&gt;All compiling options are the same on both systems, in particular we use&lt;BR /&gt;&lt;BR /&gt;/F:100000000 &lt;BR /&gt;/STACK:1000000000 &lt;BR /&gt;&lt;BR /&gt;We are at a loss. It seems that the problem is processor dependent which makes little sense to us.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Many thanks in advance&lt;BR /&gt;Giulio&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 02 Nov 2010 17:09:51 GMT</pubDate>
    <dc:creator>gfellaqmulacuk</dc:creator>
    <dc:date>2010-11-02T17:09:51Z</dc:date>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796201#M35349</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have the following problem.&lt;BR /&gt;&lt;BR /&gt;I have a rather large Fortran programme. I have recently parallelized a part of it using OpenMP.&lt;BR /&gt;&lt;BR /&gt;The code builds and runs fine on my Xeon X5570 with the following versions of Visual Fortran &lt;BR /&gt;&lt;BR /&gt;11.1.065&lt;BR /&gt;11.1.048&lt;BR /&gt;11.0.075&lt;BR /&gt;&lt;BR /&gt;The same code builds but crashes on my coauthor's server running two e5430 processors with the following versions of Visual Fortran&lt;BR /&gt;&lt;BR /&gt;11.1.065&lt;BR /&gt;11.0.074&lt;BR /&gt;&lt;BR /&gt;I have isolated the nature of the problem. It happens when I include the option /Qauto even if I run serially. It happens also when we build the code with OpenMP with the option /Qopenmp. The option /Qopenmp uses /Qauto. It does not happen in a parallelized section of the code. The programme crashes without any message when trying to inizialize an array of size 10000. If it is of any help, the programme is very memory intensive. The moment it crashes it is already using 3GB of memory. My coauthor's server though as three times (24GB) the memory as my desktop. &lt;BR /&gt;&lt;BR /&gt;All compiling options are the same on both systems, in particular we use&lt;BR /&gt;&lt;BR /&gt;/F:100000000 &lt;BR /&gt;/STACK:1000000000 &lt;BR /&gt;&lt;BR /&gt;We are at a loss. It seems that the problem is processor dependent which makes little sense to us.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Many thanks in advance&lt;BR /&gt;Giulio&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Nov 2010 17:09:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796201#M35349</guid>
      <dc:creator>gfellaqmulacuk</dc:creator>
      <dc:date>2010-11-02T17:09:51Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796202#M35350</link>
      <description>I know of no specific changes that would affect this. It sounds like a stack overflow to me. What happens if you build with /heap-arrays ?</description>
      <pubDate>Tue, 02 Nov 2010 18:12:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796202#M35350</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-11-02T18:12:10Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796203#M35351</link>
      <description>thanks for your reply!&lt;BR /&gt;&lt;BR /&gt;The problem persists with &lt;BR /&gt;&lt;BR /&gt;/heap-arrays-</description>
      <pubDate>Tue, 02 Nov 2010 18:32:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796203#M35351</guid>
      <dc:creator>gfellaqmulacuk</dc:creator>
      <dc:date>2010-11-02T18:32:56Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796204#M35352</link>
      <description>Um, I suggested "/heap-arrays" with no dash afterward.</description>
      <pubDate>Tue, 02 Nov 2010 18:39:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796204#M35352</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-11-02T18:39:38Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796205#M35353</link>
      <description>ditto with /heap-arrays</description>
      <pubDate>Wed, 03 Nov 2010 00:16:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796205#M35353</guid>
      <dc:creator>gfellaqmulacuk</dc:creator>
      <dc:date>2010-11-03T00:16:20Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796206#M35354</link>
      <description>Does the same EXE behave the same way - not just rebuilding it on the other system? Is it linked to static or dynamic libraries?</description>
      <pubDate>Wed, 03 Nov 2010 15:31:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796206#M35354</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-11-03T15:31:37Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796207#M35355</link>
      <description>The EXE built on my PC with option /QxSSE4.1 (which is the highest one compatible with my coauthor's processor) runs fine on my PC and still crashes (at the same point) on his server. Linked ibraries are dynamic.&lt;BR /&gt;&lt;BR /&gt;Building with /check:all I get the warning&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1&amp;gt;Space exceeded in Data Dependence Test in SIMUL&lt;BR /&gt;1&amp;gt;Subdivide routine into smaller ones to avoid optimization loss&lt;BR /&gt;1&amp;gt;An internal threshold was exceeded for routine SIMUL and optimization level may be reduced. See &lt;A href="HTTP://SOFTWARE.INTEL.COM/EN-US/ARTICLES/INTERNAL-THRESHOLD-WAS-EXCEEDED" target="_blank"&gt;HTTP://SOFTWARE.INTEL.COM/EN-US/ARTICLES/INTERNAL-THRESHOLD-WAS-EXCEEDED&lt;/A&gt; for more information and advice.&lt;BR /&gt;&lt;BR /&gt;on both my desktop and his server. SIMUL is indeed the subroutine where the crash takes place. Yet, I understand that error should not be fatal and indeed is not fatal on my desktop. Incidentally, the link in that error message is dead.&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Nov 2010 17:35:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796207#M35355</guid>
      <dc:creator>gfellaqmulacuk</dc:creator>
      <dc:date>2010-11-03T17:35:48Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796208#M35356</link>
      <description>The link should be lowercase - I'll report that. &lt;A href="http://software.intel.com/en-us/articles/internal-threshold-was-exceeded/" target="_blank"&gt;http://software.intel.com/en-us/articles/internal-threshold-was-exceeded/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;These messages are just the optimizer saying "too much info!" and reducing optimizations. Probably the extra code added by /check:all did this.&lt;BR /&gt;&lt;BR /&gt;Try building with static library linking and see what happens. I'm trying to reduce differences.</description>
      <pubDate>Wed, 03 Nov 2010 18:06:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796208#M35356</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-11-03T18:06:54Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796209#M35357</link>
      <description>Still the same. &lt;BR /&gt;&lt;BR /&gt;Would declaring the variables in the subroutine as allocatable help? My understanding is that with the option /heap-arrays it shoud not make a difference. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Nov 2010 18:34:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796209#M35357</guid>
      <dc:creator>gfellaqmulacuk</dc:creator>
      <dc:date>2010-11-03T18:34:19Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796210#M35358</link>
      <description>We don't yet know what the actual error is. I just theorized that it was a stack overflow, though this ususllu gives some sort of message. You might check the system event log to see if it has a record of the program exiting abnormally (not sure if it would.)&lt;BR /&gt;&lt;BR /&gt;Can you identify the statement where it fails?</description>
      <pubDate>Wed, 03 Nov 2010 20:47:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796210#M35358</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-11-03T20:47:59Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796211#M35359</link>
      <description>I can.&lt;BR /&gt;&lt;BR /&gt;it is initializing a real, double precision array of size 10000&lt;BR /&gt;&lt;BR /&gt;zero=0.d0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Nov 2010 21:13:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796211#M35359</guid>
      <dc:creator>gfellaqmulacuk</dc:creator>
      <dc:date>2010-11-03T21:13:02Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796212#M35360</link>
      <description>What happens if you replace this with a loop doing the initialization by element? It's possible the compiler is creating a temporary on the stack for this, though I'd expect better code for it.</description>
      <pubDate>Thu, 04 Nov 2010 00:17:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796212#M35360</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-11-04T00:17:32Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796213#M35361</link>
      <description>We are making progress&lt;BR /&gt;&lt;BR /&gt;The following is relevant section of the code. The variable bcpeople is a real, double precision array with dimension (90,3,10000)&lt;BR /&gt;&lt;BR /&gt;do id = 1,gensize&lt;BR /&gt; zero(id) = 0.0d0 &lt;BR /&gt; one(id) = 1.0d0 ! VECTORS OF ZEROS AND ONES&lt;BR /&gt; swo(id)= 0    ! Initialize edu choice&lt;BR /&gt; sw(id) = 0    ! everybody has at least compulsory schooling &lt;BR /&gt; print *, id&lt;BR /&gt;enddo &lt;BR /&gt;pause &lt;BR /&gt;bcpeople = 0.d0&lt;BR /&gt;&lt;BR /&gt;The programme now crashes after the pause. So your conjecture was correct. The crazy thing is that the programme crashes before reaching the pause if we comment out the line &lt;BR /&gt;&lt;BR /&gt;print *, id &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also we have discovered the programme does not crash if we supplement the option &lt;BR /&gt;&lt;BR /&gt;/STACK: 2000000000&lt;BR /&gt;&lt;BR /&gt;with &lt;BR /&gt;&lt;BR /&gt;/STACK: 2000000000, commit&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for your help!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2010 17:38:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796213#M35361</guid>
      <dc:creator>gfellaqmulacuk</dc:creator>
      <dc:date>2010-11-04T17:38:15Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796214#M35362</link>
      <description>Clearly running into memory limits - especially with OpenMP which has to create its own thread stacks. I am surprised, though, that /heap-arrays doesn't help. Is bcspeople just an ordinary local variable, or might it be a POINTER array that was allocated? Is it mentioned in any OMP directives?</description>
      <pubDate>Thu, 04 Nov 2010 17:58:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796214#M35362</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-11-04T17:58:31Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796215#M35363</link>
      <description>&lt;BR /&gt;What I cannot understand though is why the above loop crashes if I comment out the line &lt;BR /&gt;&lt;BR /&gt;print *, id&lt;BR /&gt;&lt;BR /&gt;bcpeople is just a local variable&lt;BR /&gt;&lt;BR /&gt;The OMP section is in a subroutine called before the current one. The rest of the code is serial. I would hope that the thread stacks created by OMP have been cleared at this stage of the programme. The subroutine where the problem happens is serial. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2010 18:11:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796215#M35363</guid>
      <dc:creator>gfellaqmulacuk</dc:creator>
      <dc:date>2010-11-04T18:11:56Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796216#M35364</link>
      <description>The serial portion runs in a thread anyway. Leaving out the print may affect inlining or other optimizations.</description>
      <pubDate>Thu, 04 Nov 2010 18:56:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796216#M35364</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-11-04T18:56:45Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796217#M35365</link>
      <description>Just to understand. You are saying that even a subroutine called AFTER closing !$END OMP PARALLEL&lt;BR /&gt;is running in a thread?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2010 19:42:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796217#M35365</guid>
      <dc:creator>gfellaqmulacuk</dc:creator>
      <dc:date>2010-11-04T19:42:55Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796218#M35366</link>
      <description>Yes - the master thread.</description>
      <pubDate>Thu, 04 Nov 2010 20:43:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796218#M35366</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-11-04T20:43:40Z</dc:date>
    </item>
    <item>
      <title>Strange problem with /Qauto option</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796219#M35367</link>
      <description>Gotcha. Many thanks for all your help!&lt;BR /&gt;&lt;BR /&gt;Incidentally, one of the things I have learnt after all this going back and forth between the two systems is that X5570 and family are an amazing step forward. Congratulations to Intel!</description>
      <pubDate>Fri, 05 Nov 2010 16:04:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Strange-problem-with-Qauto-option/m-p/796219#M35367</guid>
      <dc:creator>gfellaqmulacuk</dc:creator>
      <dc:date>2010-11-05T16:04:44Z</dc:date>
    </item>
  </channel>
</rss>

