<?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: idb, ifort - usefulness optimized away in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746260#M4156</link>
    <description>&lt;P&gt;ok.. when I go there it says I do not have access? How do I create an account?&lt;/P&gt;
&lt;P&gt;I have created a tar file -- Note that the only variable I have left in is Qmin -- it is read in with the namelist -- I also added a line saying Qmin=0 and still get &lt;NO value=""&gt; from the debugger. In the full model, I cannot access any variables in the debuigger, and believe me, they are all used... The addition of NBloss to the namelist makes the problem appear and disappear.&lt;/NO&gt;&lt;/P&gt;
&lt;P&gt;I will attach the tar file if I can get an account.. Pls advise.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Dec 2007 20:22:44 GMT</pubDate>
    <dc:creator>clarkca</dc:creator>
    <dc:date>2007-12-27T20:22:44Z</dc:date>
    <item>
      <title>idb, ifort - usefulness optimized away</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746253#M4149</link>
      <description>I get far to often the result &lt;NO value=""&gt; because variables have
been optimiezd away when I debug with idb a program that was compiled
with idb -O0. That is not helpful. When I use "0", I &lt;B&gt;mean&lt;/B&gt; zero.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;&lt;/NO&gt;</description>
      <pubDate>Sun, 23 Dec 2007 02:13:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746253#M4149</guid>
      <dc:creator>oh_moose</dc:creator>
      <dc:date>2007-12-23T02:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: idb, ifort - usefulness optimized away</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746254#M4150</link>
      <description>&lt;P&gt;Can you please provide a simplifiedexample?&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Dec 2007 14:55:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746254#M4150</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2007-12-23T14:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: idb, ifort - usefulness optimized away</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746255#M4151</link>
      <description>Sorry - some optimizations are done even at -O0. But in general variables should not be "optimized away". As Jim suggests, an example would be welcomed.&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Dec 2007 16:19:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746255#M4151</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-12-24T16:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: idb, ifort - usefulness optimized away</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746256#M4152</link>
      <description>&lt;P&gt;I have been plagued by this problem before.. I have compiled a somewhat simple example. Attempting to simplify it further caused it to go back into hiding. I have a set of files to send somewhere if I can attach them somehow? Well, in case that is not possible, here is a synopsis -- The program is in hello.f and the error appears whenever I put NBloss ANYWHERE in the namelist. It disappears if NBloss is not there. Here is hello.f with the problem:&lt;/P&gt;
&lt;P&gt;Program Hello&lt;/P&gt;
&lt;P&gt;Implicit none&lt;/P&gt;
&lt;P&gt;INCLUDE 'param.cmn'&lt;BR /&gt;INCLUDE 'bndry.cmn'&lt;BR /&gt;INCLUDE 'envs.cmn'&lt;BR /&gt;INCLUDE 'prop.cmn'&lt;BR /&gt;INCLUDE 'raytrc.cmn'&lt;BR /&gt;INCLUDE 'user.cmn'&lt;BR /&gt;INCLUDE 'dum.cmn'&lt;/P&gt;
&lt;P&gt;INTEGER Metric&lt;/P&gt;
&lt;P&gt;NAMELIST /INPUTS/ Cenv,Zenv,Fxd,Mvd,Nmov,Wind,Vmaxx,&lt;BR /&gt; 1Rmin,Rmax,Deltar,Freq,Hdr,Mbenv,Mcenv,Mdenv,B0env,&lt;BR /&gt; 2Denv,Rdenv,Rcenv,Rbenv,Npths,Metric,ThetaBL,Bloss,&lt;BR /&gt; 3Qmin,NBloss&lt;/P&gt;
&lt;P&gt;READ (5,INPUTS)&lt;/P&gt;
&lt;P&gt;Print *,'Hello World!'&lt;/P&gt;
&lt;P&gt;end&lt;/P&gt;
&lt;P&gt;----- end program -----&lt;/P&gt;
&lt;P&gt;Include file containing NBloss :&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;* ENVS.CMN &lt;BR /&gt;&lt;BR /&gt;Real*8 Cenv(1:Maxs,1:Maxenv),Zenv(1:Maxs,1:Maxenv)&lt;BR /&gt;Real*8 C(1:Maxs,1:Maxenv),Z(1:Maxs,1:Maxenv)&lt;BR /&gt;Real*8 Rcenv(Maxenv),Rc(Maxenv)&lt;BR /&gt;Real*8 Rbenv(Maxenv),Rb(Maxenv)&lt;BR /&gt;Real*8 Denv(Maxenv),D(Maxe),Rdenv(Maxenv)&lt;BR /&gt;Real*8 Rd(Maxe),Grd(Maxs+1,Maxenv)&lt;BR /&gt;Real B0denv(Maxenv),B0div(Maxenv)&lt;BR /&gt;Real B0env(Maxenv),B0(Maxenv)&lt;BR /&gt;Real ThetaBL(1:Maxb,1:Maxenv),Bloss(1:Maxb,1:Maxenv)&lt;BR /&gt;Integer Nsspts,Mbenv,Mcenv,Mdenv,Mb,Mc,Md&lt;BR /&gt;Integer NBloss(Maxenv)&lt;/P&gt;
&lt;P&gt;COMMON/ENVS/Cenv,Zenv,C,Z,Rcenv,Rc,Rbenv,Rb,Denv,&lt;BR /&gt; 1D,Rdenv,Rd,Grd,B0denv,B0div,B0env,B0,ThetaBL,Bloss,&lt;BR /&gt; 2NBloss,Nsspts,Mbenv,Mcenv,Mdenv,Mb,Mc,Md&lt;/P&gt;
&lt;P&gt;--- end include file ---&lt;/P&gt;
&lt;P&gt;param.cmn include file:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;* PARAM.CMN &lt;/P&gt;
&lt;P&gt;Real*8 Pi,Twopi,Q1,Deg,Zero,One&lt;BR /&gt;Integer Maxrng,Maxs,Maxk,Maxj,Maxb,Maxenv,Maxe&lt;BR /&gt;Integer Maxd,Maxpth&lt;/P&gt;
&lt;P&gt;Parameter (Zero=0)&lt;BR /&gt;Parameter (One=1)&lt;BR /&gt;Parameter (Deg=0.017453292)&lt;BR /&gt;Parameter (Pi=3.14159265359)&lt;BR /&gt;Parameter (Twopi=6.28318530718)&lt;BR /&gt;Parameter (Q1=0.626657068658)&lt;BR /&gt;Parameter (Maxrng=1001)&lt;BR /&gt;Parameter (Maxs=155)&lt;BR /&gt;Parameter (Maxk=100)&lt;BR /&gt;Parameter (Maxj=40)&lt;BR /&gt;Parameter (Maxb=91)&lt;BR /&gt;Parameter (Maxenv=25)&lt;BR /&gt;Parameter (Maxe=25)&lt;BR /&gt;Parameter (Maxd=5)&lt;BR /&gt;Parameter (Maxpth=20)&lt;/P&gt;
&lt;P&gt;--- end param.cmn include file ---&lt;/P&gt;
&lt;P&gt;Input file :&lt;/P&gt;
&lt;P&gt;$INPUTS&lt;BR /&gt; Mbenv = 2, Mcenv = 2, Mdenv = 2,&lt;BR /&gt; Rcenv = 1,100,&lt;BR /&gt; Denv = 13.0900890143,0,&lt;BR /&gt; Rdenv = 0,2.5,&lt;BR /&gt; Wind = 8., &lt;BR /&gt; Rmin = .005, Rmax = 2.50, Deltar = .005,&lt;BR /&gt; Nmov = 1, Mvd(1) = .33, Fxd = 6.67, &lt;BR /&gt; Freq = 3200., Vmaxx = 20, &lt;BR /&gt; Qmin = 0,&lt;BR /&gt;&amp;amp;n
bsp; Rbenv(1) = 0, Rbenv(2) = 100,&lt;BR /&gt; Hdr = 'Wedge.tst ',&lt;BR /&gt;$END &lt;/P&gt;
&lt;P&gt;--- end input file ---&lt;/P&gt;
&lt;P&gt;I don't know if this is enough to reproduce the error. If you provide an e-mail ads I could attach the remaining include files. I run hello and it says hello, but if I idb hello and stop at the print statement, I cannot view variables... it says &lt;NO value=""&gt;. Removing NBloss from the namelist and recompiling cures the problem.&lt;/NO&gt;&lt;/P&gt;
&lt;P&gt;I would LOVE to have a solution to this problem. It seems to have something to do with memory allocation? Small changes in the code make it appear and disappear..&lt;/P&gt;
&lt;P&gt; Thank you.&lt;/P&gt;
&lt;P&gt; Cathy Ann Clark, &lt;A href="mailto:clarkca@npt.nuwc.navy.mil"&gt;clarkca@npt.nuwc.navy.mil&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2007 18:16:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746256#M4152</guid>
      <dc:creator>clarkca</dc:creator>
      <dc:date>2007-12-27T18:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: idb, ifort - usefulness optimized away</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746257#M4153</link>
      <description>Go to &lt;A href="https://premier.intel.com/"&gt;Intel Premier Support&lt;/A&gt;, create an issue and attach a tar file of your example sources.&lt;BR /&gt;&lt;BR /&gt;The program you have, though, does not use any of the variables so the compiler might reasonably optimize them away. What happens if you print some of the variables - can you see those?&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Dec 2007 19:24:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746257#M4153</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-12-27T19:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: idb, ifort - usefulness optimized away</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746258#M4154</link>
      <description>&lt;P&gt;I'm not sure how to make a tar file?&lt;/P&gt;
&lt;P&gt;The program runs fine, it's just printing variables in the idb that doesn't work.&lt;/P&gt;
&lt;P&gt;I don't use the variables because I stripped down the code to make an example I could post.&lt;/P&gt;
&lt;P&gt;Please tell me how to tar?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2007 19:44:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746258#M4154</guid>
      <dc:creator>clarkca</dc:creator>
      <dc:date>2007-12-27T19:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: idb, ifort - usefulness optimized away</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746259#M4155</link>
      <description>tar -czvf problem.tar.gz file1.f90 file2.f90 file3.f90 ...&lt;BR /&gt;&lt;BR /&gt;Or you can attach the files individually if need be, but tar is easier.&lt;BR /&gt;&lt;BR /&gt;It would be better if you had an example showing that the variable was used but still not visible in the debugger.&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Dec 2007 20:01:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746259#M4155</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-12-27T20:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: idb, ifort - usefulness optimized away</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746260#M4156</link>
      <description>&lt;P&gt;ok.. when I go there it says I do not have access? How do I create an account?&lt;/P&gt;
&lt;P&gt;I have created a tar file -- Note that the only variable I have left in is Qmin -- it is read in with the namelist -- I also added a line saying Qmin=0 and still get &lt;NO value=""&gt; from the debugger. In the full model, I cannot access any variables in the debuigger, and believe me, they are all used... The addition of NBloss to the namelist makes the problem appear and disappear.&lt;/NO&gt;&lt;/P&gt;
&lt;P&gt;I will attach the tar file if I can get an account.. Pls advise.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2007 20:22:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746260#M4156</guid>
      <dc:creator>clarkca</dc:creator>
      <dc:date>2007-12-27T20:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: idb, ifort - usefulness optimized away</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746261#M4157</link>
      <description>&lt;P&gt;I have sent an email asking for help -- I have had both the username and password e-mailed and entered them verrry carefully multiple times but it will not recognize my login. This problem has my work STALLED!!! Please help. &lt;/P&gt;
&lt;P&gt; Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2007 20:43:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746261#M4157</guid>
      <dc:creator>clarkca</dc:creator>
      <dc:date>2007-12-27T20:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: idb, ifort - usefulness optimized away</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746262#M4158</link>
      <description>&lt;P&gt;well.. i managed to upload the tar file --&lt;/P&gt;
&lt;P&gt;I am issue ID 463815.&lt;/P&gt;
&lt;P&gt; Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2007 22:26:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746262#M4158</guid>
      <dc:creator>clarkca1</dc:creator>
      <dc:date>2007-12-27T22:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: idb, ifort - usefulness optimized away</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746263#M4159</link>
      <description>Hi Cathy, thank you for posting a nice example so quickly. Happy New Year!&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Jan 2008 22:30:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746263#M4159</guid>
      <dc:creator>oh_moose</dc:creator>
      <dc:date>2008-01-04T22:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: idb, ifort - usefulness optimized away</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746264#M4160</link>
      <description>&lt;P&gt;Cathy,&lt;/P&gt;
&lt;P&gt;I noticed than the variable "Fxd" is in the NAMELIST but it does not appear elsewhere. Try declaring it (and any other variables in NAMELIST if not declared elsewhere).&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2008 23:06:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746264#M4160</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2008-01-04T23:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: idb, ifort - usefulness optimized away</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746265#M4161</link>
      <description>I find this problem far too frequently in my large project. Local
variables as well as function/subroutine arguments are not accessible
with the debugger, even if they are used in the current source line
indicated by the debugger. Of course I cannot post tens of MB of source
code. But Cathy's example should be just fine, with or without NAMELIST.&lt;BR /&gt;
&lt;BR /&gt;
-g -O0 really &lt;B&gt;should work&lt;/B&gt;, but it does not. Are there any other
options which might interfere? I tried these two options alone, plus a
large number of permutations from the following list (most which I
need).&lt;BR /&gt;
&lt;BR /&gt;
-g&lt;BR /&gt;
-O0&lt;BR /&gt;
-debug extended&lt;BR /&gt;
-debug-parameters all&lt;BR /&gt;
-assume dummy_aliases&lt;BR /&gt;
-assume protect_parens&lt;BR /&gt;
-check arg_temp_created&lt;BR /&gt;
-check bounds&lt;BR /&gt;
-check pointers&lt;BR /&gt;
-check uninit&lt;BR /&gt;
-common-args&lt;BR /&gt;
-ftrapuv&lt;BR /&gt;
-inline-debug-info&lt;BR /&gt;
-diag-disable id7140&lt;BR /&gt;
-fkeep-static-consts&lt;BR /&gt;
-fp-model strict&lt;BR /&gt;
-fp-stack-check&lt;BR /&gt;
-fvisibility=default&lt;BR /&gt;
-no-global-hoist&lt;BR /&gt;
-prec-sqrt&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Jan 2008 23:31:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-ifort-usefulness-optimized-away/m-p/746265#M4161</guid>
      <dc:creator>oh_moose</dc:creator>
      <dc:date>2008-01-04T23:31:48Z</dc:date>
    </item>
  </channel>
</rss>

