<?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: Checklist for errors found by optimization? in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953020#M20064</link>
    <description>Steve, &lt;BR /&gt;I'm pretty sure I had it checked, below are the Project options &lt;BR /&gt; &lt;BR /&gt;/alignment:dcommons /check:bounds /compile_only /debug:full /dll /nologo /optimize:2 /traceback /warn:argument_checking /warn:nofileopt  &lt;BR /&gt; &lt;BR /&gt;Is there something else to check?  If you need me to give further info, let me know--dfh</description>
    <pubDate>Thu, 31 May 2001 06:15:38 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2001-05-31T06:15:38Z</dc:date>
    <item>
      <title>Checklist for errors found by optimization?</title>
      <link>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953015#M20059</link>
      <description>I've recently converted inherited F77 code to free-form, and it works great with no or local optimizations.  When I get to global optimizations, the following if..then conditional is triggered  &lt;BR /&gt;  &lt;BR /&gt;        if (seprpt .gt. MAXCEL) then  &lt;BR /&gt;          ierr = 57 ! getawet: the cell index exceeds MAXCEL  &lt;BR /&gt;          call errex(ierr)  &lt;BR /&gt;          return  &lt;BR /&gt;        elseif(....)  &lt;BR /&gt;  &lt;BR /&gt;The code specifying ierr = 57 when it normally shouldn't be.  &lt;BR /&gt;  &lt;BR /&gt;'seprpt' is a passed integer argument, MAXCEL is a fixed parameter specified in a header file.  The debugger in 'no optimizations' mode gives a value for seprpt, but says MAXCEL is an undefined variable.  &lt;BR /&gt;  &lt;BR /&gt;Previous recommendations in the message board say zip it and send it to you, but this is part of a large VB project and I was hoping there is a checklist for optimizations, it may be a no-brainer.  &lt;BR /&gt;  &lt;BR /&gt;Thanks,  &lt;BR /&gt;dfh</description>
      <pubDate>Fri, 25 May 2001 01:37:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953015#M20059</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-25T01:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Checklist for errors found by optimization?</title>
      <link>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953016#M20060</link>
      <description>If MAXCEL is a PARAMETER constant, the debugger won't know about it. You may want to put in PRINT statements to see what values seprpt takes on - there are many possible causes, too varied for a checklist.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 25 May 2001 02:06:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953016#M20060</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-05-25T02:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Checklist for errors found by optimization?</title>
      <link>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953017#M20061</link>
      <description>The 'seprpt' value changed during execution.  The value was very high, 1245188.  MAXCEL stayed constant. &lt;BR /&gt; &lt;BR /&gt;seprpt is an integer argument passed in a subroutine, both dummy and targets are explicitly declared, and I initialize the argument directly before each subroutine call.   &lt;BR /&gt; &lt;BR /&gt;I will note there are about 4 or 5 dozen files with implicit double precision (a-h,o-z), I'm in the process of taking them out (it could take a day or two), but all integer values are explicitly declared.  &lt;BR /&gt; &lt;BR /&gt;BTW, I'm not receiving the e-mail replies. &lt;BR /&gt; &lt;BR /&gt;Thanks, &lt;BR /&gt;dfh</description>
      <pubDate>Fri, 25 May 2001 02:40:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953017#M20061</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-25T02:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Checklist for errors found by optimization?</title>
      <link>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953018#M20062</link>
      <description>To close off the thread,  &lt;BR /&gt; &lt;BR /&gt;Well, I got the implicit statements out of the program, and it didn't solve the problem. &lt;BR /&gt; &lt;BR /&gt;But it helped, and it kept my focus on variable declarations.  Turns out most of the integer variables were specified as default integer kind, whereas one particular daughter subroutine had the target integer variable specified as Kind=2.   &lt;BR /&gt; &lt;BR /&gt;I don't know if the compiler should check for the type compatibility, but I'm glad I got the optimizations working...they knock off more than 50% of the run-time in my application. &lt;BR /&gt; &lt;BR /&gt;dfh</description>
      <pubDate>Thu, 31 May 2001 05:53:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953018#M20062</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-31T05:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Checklist for errors found by optimization?</title>
      <link>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953019#M20063</link>
      <description>The compiler can check if /warn=argument_checking is in effect (it is the default in a Debug configuration) and the caller and callee are compiled together.  INTERFACE blocks can be a big help for preventing problems of this nature.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 31 May 2001 05:59:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953019#M20063</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-05-31T05:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Checklist for errors found by optimization?</title>
      <link>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953020#M20064</link>
      <description>Steve, &lt;BR /&gt;I'm pretty sure I had it checked, below are the Project options &lt;BR /&gt; &lt;BR /&gt;/alignment:dcommons /check:bounds /compile_only /debug:full /dll /nologo /optimize:2 /traceback /warn:argument_checking /warn:nofileopt  &lt;BR /&gt; &lt;BR /&gt;Is there something else to check?  If you need me to give further info, let me know--dfh</description>
      <pubDate>Thu, 31 May 2001 06:15:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953020#M20064</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-31T06:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Checklist for errors found by optimization?</title>
      <link>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953021#M20065</link>
      <description>Are the caller and callee in the same source file?&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 31 May 2001 09:20:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953021#M20065</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-05-31T09:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Checklist for errors found by optimization?</title>
      <link>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953022#M20066</link>
      <description>No, they are in separate source files.  Does this mean they compile in separate object files, and the warning wouldn't be triggered because they are compiled separately?</description>
      <pubDate>Thu, 31 May 2001 10:48:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953022#M20066</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-31T10:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Checklist for errors found by optimization?</title>
      <link>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953023#M20067</link>
      <description>Yes - exactly.&lt;BR /&gt;&lt;BR /&gt;We are working on a technology to allow cross-file argument checking - it's not quite ready yet...&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 31 May 2001 20:31:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Checklist-for-errors-found-by-optimization/m-p/953023#M20067</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-05-31T20:31:51Z</dc:date>
    </item>
  </channel>
</rss>

