<?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: FORTRAN Code converges slow in Intel Fortran Compiler as Compared to the Digital visual FORTRAN in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-Code-converges-slow-in-Intel-Fortran-Compiler-as/m-p/1615898#M172977</link>
    <description>I would suggest showing your compile options. We can only make wild guesses from the information given.</description>
    <pubDate>Wed, 17 Jul 2024 23:10:49 GMT</pubDate>
    <dc:creator>andrew_4619</dc:creator>
    <dc:date>2024-07-17T23:10:49Z</dc:date>
    <item>
      <title>FORTRAN Code converges slow in Intel Fortran Compiler as Compared to the Digital visual FORTRAN</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-Code-converges-slow-in-Intel-Fortran-Compiler-as/m-p/1615853#M172974</link>
      <description>&lt;P&gt;I have a code that compiles smoothly in Microsoft Visual Developer using&amp;nbsp;Digital visual FORTRAN&amp;nbsp;&lt;SPAN&gt;Professional Edition 5.0A compiler in Win-XP in a virtual box (Oracle) in a INTEL I7 computer having (RAM 16GB).&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;All arrays are declared for example as A(100),B(100),etc. The code executable file converges within 4 minutes. The Code output is correct as per scientific literature and calculations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have updated the code as per FORTRAN 90/95. I declared arrays as A(0:100), B(0:100), due to the upper bound error which is 1. Now code takes relatively large time to converge, it takes around 35 minutes, and also have a difference in output as compared to previous version of the code. I am using MVS-2022 and Intel FORTRAN compiler (2024 latest) in an intel&lt;SPAN&gt;&amp;nbsp;I7 computer having (RAM 16GB).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I just changed the array format from A(100) to A(0:100). All of the arrays.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Both codes take 636 iterations to converge to a certain result.&lt;/P&gt;&lt;P&gt;I have also tested the code (old version executable file) in my personal computer, it takes around 11 minutes to converge with correct results. I have a Intel core m3 (8GB RAM). I have tested it again then it converged in 14 minutes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qaiser_Bozdar_3-1721244432167.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/57052iA17B8B060B98163B/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Qaiser_Bozdar_3-1721244432167.png" alt="Qaiser_Bozdar_3-1721244432167.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qaiser_Bozdar_0-1721161032199.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/57017i991CC0B78DFE621F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Qaiser_Bozdar_0-1721161032199.png" alt="Qaiser_Bozdar_0-1721161032199.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qaiser_Bozdar_4-1721244474937.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/57053iDACA65A0F711C440/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Qaiser_Bozdar_4-1721244474937.png" alt="Qaiser_Bozdar_4-1721244474937.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qaiser_Bozdar_5-1721244501832.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/57054i904C34E059C28641/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Qaiser_Bozdar_5-1721244501832.png" alt="Qaiser_Bozdar_5-1721244501832.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look at the following variable declaration (Old code)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qaiser_Bozdar_0-1721244032859.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/57048i0340C9424B643555/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Qaiser_Bozdar_0-1721244032859.png" alt="Qaiser_Bozdar_0-1721244032859.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Look at the following variable declaration (New code)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qaiser_Bozdar_1-1721244303420.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/57050iEC5223D331243C6F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Qaiser_Bozdar_1-1721244303420.png" alt="Qaiser_Bozdar_1-1721244303420.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My task is to converge the code within less time as compared to the old version which converges within 4-mintues with correct results.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 19:30:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-Code-converges-slow-in-Intel-Fortran-Compiler-as/m-p/1615853#M172974</guid>
      <dc:creator>Qaiser_Bozdar</dc:creator>
      <dc:date>2024-07-17T19:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: FORTRAN Code converges slow in Intel Fortran Compiler as Compared to the Digital visual FORTRAN</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-Code-converges-slow-in-Intel-Fortran-Compiler-as/m-p/1615898#M172977</link>
      <description>I would suggest showing your compile options. We can only make wild guesses from the information given.</description>
      <pubDate>Wed, 17 Jul 2024 23:10:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-Code-converges-slow-in-Intel-Fortran-Compiler-as/m-p/1615898#M172977</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2024-07-17T23:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: FORTRAN Code converges slow in Intel Fortran Compiler as Compared to the Digital visual FORTRAN</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-Code-converges-slow-in-Intel-Fortran-Compiler-as/m-p/1616198#M172997</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qaiser_Bozdar_0-1721323582281.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/57075i494C4F9E115DC025/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Qaiser_Bozdar_0-1721323582281.png" alt="Qaiser_Bozdar_0-1721323582281.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qaiser_Bozdar_1-1721323607114.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/57076i435EB674FC8A8C6C/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Qaiser_Bozdar_1-1721323607114.png" alt="Qaiser_Bozdar_1-1721323607114.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I suppose this is the debug configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 17:30:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-Code-converges-slow-in-Intel-Fortran-Compiler-as/m-p/1616198#M172997</guid>
      <dc:creator>Qaiser_Bozdar</dc:creator>
      <dc:date>2024-07-18T17:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: FORTRAN Code converges slow in Intel Fortran Compiler as Compared to the Digital visual FORTRAN</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-Code-converges-slow-in-Intel-Fortran-Compiler-as/m-p/1616273#M173000</link>
      <description>&lt;P&gt;debug has all optimisation disabled and has additional code checking, it is much slower than release builds. look at the project properties page also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="andrew_4619_0-1721341857825.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/57093iBCB0C9E82EAFF670/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="andrew_4619_0-1721341857825.png" alt="andrew_4619_0-1721341857825.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 22:31:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-Code-converges-slow-in-Intel-Fortran-Compiler-as/m-p/1616273#M173000</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2024-07-18T22:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: FORTRAN Code converges slow in Intel Fortran Compiler as Compared to the Digital visual FORTRAN</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-Code-converges-slow-in-Intel-Fortran-Compiler-as/m-p/1616463#M173011</link>
      <description>&lt;P&gt;If your old code used static arrays A(100), B(100), your test code should ALLOCATE(A(100), B(100)...), or if you wish to be more specific, ALLOCATE(A(1:100), B(1:100), ...), .NOT. A(0:100)&lt;/P&gt;&lt;P&gt;Not doing so can result in:&lt;/P&gt;&lt;P&gt;CALL FOO(A)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;SUBROUTINE FOO(A)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;REAL A(100)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;REAL SUMPTN&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;SUMPTN = A(1) ! this references the 1st location of the dummy argument A, which is the caller's actual argument A(0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may be the cause of your different results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need to rearrange your code to use zero based arrays, then you need to check for and correct such errors in programming.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 12:12:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FORTRAN-Code-converges-slow-in-Intel-Fortran-Compiler-as/m-p/1616463#M173011</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2024-07-19T12:12:03Z</dc:date>
    </item>
  </channel>
</rss>

