<?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 /qinit:snan is an unknown in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181828#M148947</link>
    <description>&lt;P&gt;/qinit:snan is an unknown option with my compiler version.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Sep 2018 17:18:09 GMT</pubDate>
    <dc:creator>gib</dc:creator>
    <dc:date>2018-09-10T17:18:09Z</dc:date>
    <item>
      <title>floating invalid error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181815#M148934</link>
      <description>&lt;P&gt;In my large Fortran application, I sometimes get a "forrtl: error (65): floating invalid" error message.&amp;nbsp; And I am at a loss as to why.&amp;nbsp; Below is a sample program which generates the error.&amp;nbsp; I create a table, within a large array.&amp;nbsp; I initialize all values in the array to zero.&amp;nbsp; For each row, i want to divide the value in column 2 by value in column 1 and put the result in column 2.&amp;nbsp; I only do this calculation if column 2 is positive.&amp;nbsp; In my example, in the first row, column&amp;nbsp; 2 is zero.&amp;nbsp; When I run, i get the floating invalid error message.&amp;nbsp; Interestingly, before i do the divide, i write out to the log file the values for columns 1 and 2, then my program runs to completion.&amp;nbsp; In my example I have commented out the write statement.&amp;nbsp; Also, this exact code runs without incident in Debug Mode.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; program test&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameter nra=3,nca=3,nta=100000, xa_size=nra*nca*nta&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; double precision xa(nra,nca,nta)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data xa /xa_size*0./&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xa(1,01,1) = 0.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xa(1,02,1) = 0.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xa(2,01,1) = 40000000.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xa(2,02,1) = 100.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xa(3,01,1) = 10000000.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xa(3,02,1) = 5.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do 800 i=1,3&lt;/P&gt;

&lt;P&gt;!&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write(6,50) i, xa(i,01,1), xa(i,02,1)&lt;BR /&gt;
	! 50&amp;nbsp;&amp;nbsp; format(1x,'check here',i4,2f10.0)&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (xa(i,02,1) &amp;gt; .01) xa(i,03,1) = xa(i,01,1) / xa(i,02,1)&lt;BR /&gt;
	&amp;nbsp;800&amp;nbsp; continue&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do 810 i=1,3&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write(6,100) i, xa(i,01,1), xa(i,02,1), xa(i,03,1)&lt;BR /&gt;
	&amp;nbsp;100&amp;nbsp;&amp;nbsp;&amp;nbsp; format(1x,'results',i4,3f10.0)&lt;BR /&gt;
	&amp;nbsp;810&amp;nbsp; continue&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&amp;nbsp;&lt;/P&gt;

&lt;P&gt;-------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;

&lt;P&gt;The following is the critical line in my code which builds the executable.&lt;/P&gt;

&lt;P&gt;ifort /nologo /I%MPI_include% /real_size:64 /libs:static /threads /list /debug:none /check:format /check:nopower /check:uninit /Qinit:snan,arrays /traceback /c test.f90&lt;/P&gt;

&lt;P&gt;What am I doing wrong.&amp;nbsp; I hope there is an easy fix.&lt;/P&gt;

&lt;P&gt;Thank-you in advance.&lt;/P&gt;

&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 21:10:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181815#M148934</guid>
      <dc:creator>Cilke__Jim</dc:creator>
      <dc:date>2018-09-06T21:10:26Z</dc:date>
    </item>
    <item>
      <title>sorry for the typo.  I put</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181816#M148935</link>
      <description>&lt;P&gt;sorry for the typo.&amp;nbsp; I put the result in column &lt;STRONG&gt;3&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 21:12:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181816#M148935</guid>
      <dc:creator>Cilke__Jim</dc:creator>
      <dc:date>2018-09-06T21:12:19Z</dc:date>
    </item>
    <item>
      <title>To see the errors, add</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181817#M148936</link>
      <description>&lt;P&gt;To see the errors, add IMPLICIT NONE after the first line and attempt to compile. It may also be helpful to use relevant compiler options to check for the code's adherence to the Fortran standard.&lt;/P&gt;

&lt;P&gt;(SPOILER: what is the type of&amp;nbsp;&lt;SPAN style="font-size: 19.512px;"&gt;xa_size?)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 07:52:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181817#M148936</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-09-08T07:52:00Z</dc:date>
    </item>
    <item>
      <title>It looks like an error which</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181818#M148937</link>
      <description>&lt;P&gt;It looks like an error which ifort should flag and refuse to compile even without IMPLICIT NONE, but it's possible the compiler isn't fully tested without that.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 12:04:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181818#M148937</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2018-09-08T12:04:09Z</dc:date>
    </item>
    <item>
      <title>Experiment:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181819#M148938</link>
      <description>&lt;P&gt;Experiment:&lt;/P&gt;

&lt;P&gt;Configure to produce error (comment out the write in do 800).&lt;BR /&gt;
	Verify error&lt;BR /&gt;
	Then initialize x1(1,02,1) = 0.000001&lt;/P&gt;

&lt;P&gt;IOW something less than your threshold.&lt;/P&gt;

&lt;P&gt;If this corrects the error, then my guess is the compiler had vectorized the 800 loop and use a conditional move to not move the excluded case.&lt;/P&gt;

&lt;P&gt;Then, if the above corrects the case, restore the initialization to 0, but then insert&lt;/P&gt;

&lt;P&gt;!DIR$ NOVECTOR&lt;/P&gt;

&lt;P&gt;in front of the do 800 statement.&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 13:13:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181819#M148938</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2018-09-08T13:13:13Z</dc:date>
    </item>
    <item>
      <title>I don't see that the failure</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181820#M148939</link>
      <description>&lt;P&gt;I don't see that the failure to declare xa_size has any relevance here, and there is no error for the compiler to detect. The form of the PARAMETER statement here is nonstandard and xa_size takes on the type of the value, which is integer, but otherwise it is fine, syntax-wise.&lt;/P&gt;

&lt;P&gt;I have not done any further analysis.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 16:17:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181820#M148939</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2018-09-08T16:17:45Z</dc:date>
    </item>
    <item>
      <title>With my old (version 11.075)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181821#M148940</link>
      <description>&lt;P&gt;With my old (version 11.075) compiler, building with&lt;/P&gt;

&lt;P&gt;ifort err.f90&lt;/P&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;P&gt;ifort /real_size:64 err.f90&lt;/P&gt;

&lt;P&gt;gives an executable that runs OK, giving&lt;/P&gt;

&lt;P&gt;&amp;nbsp;results&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.&lt;BR /&gt;
	&amp;nbsp;results&amp;nbsp;&amp;nbsp; 2 40000000.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100.&amp;nbsp;&amp;nbsp; 400000.&lt;BR /&gt;
	&amp;nbsp;results&amp;nbsp;&amp;nbsp; 3 10000000.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.&amp;nbsp; 2000000.&lt;/P&gt;

&lt;P&gt;If I try&lt;/P&gt;

&lt;P&gt;ifort /real_size:64 /libs:static err.f90&lt;/P&gt;

&lt;P&gt;I get this link error:&lt;/P&gt;

&lt;P&gt;LINK : fatal error LNK1104: cannot open file 'LIBC.lib'&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 22:37:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181821#M148940</guid>
      <dc:creator>gib</dc:creator>
      <dc:date>2018-09-08T22:37:19Z</dc:date>
    </item>
    <item>
      <title>You must also have a newer</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181822#M148941</link>
      <description>&lt;P&gt;You must also have a newer Visual Studio installed that doesn't supply libc.lib.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 23:02:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181822#M148941</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2018-09-08T23:02:24Z</dc:date>
    </item>
    <item>
      <title>When I build and run this,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181823#M148942</link>
      <description>&lt;P&gt;When I build and run this, with the options shown, under 18.0.3, it runs successfully.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 23:07:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181823#M148942</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2018-09-08T23:07:28Z</dc:date>
    </item>
    <item>
      <title>"You must also have a newer</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181824#M148943</link>
      <description>&lt;P&gt;"You must also have a newer Visual Studio installed that doesn't supply libc.lib."&lt;/P&gt;

&lt;P&gt;Yes, IVF is integrated with VS2005, but I also have VS2010 installed.&amp;nbsp; Is this a path issue?&lt;/P&gt;</description>
      <pubDate>Sun, 09 Sep 2018 12:07:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181824#M148943</guid>
      <dc:creator>gib</dc:creator>
      <dc:date>2018-09-09T12:07:30Z</dc:date>
    </item>
    <item>
      <title>I think it was VS2005 that</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181825#M148944</link>
      <description>&lt;P&gt;I think it was VS2005 that dropped libc.lib. Are you rebuilding the entire application or are there some objects or libraries left over from an earlier build? I would expect the compiler driver to not use libc.lib as a dependency.&lt;/P&gt;

&lt;P&gt;Try adding libc.lib to the "Ignore libraries" list in the Linker property pages, and add libcmt.lib as an additional dependency. I am not entirely sure this will work. Or use /libs:dll instead of /libs:static.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Sep 2018 14:23:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181825#M148944</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2018-09-09T14:23:20Z</dc:date>
    </item>
    <item>
      <title>Steve, I have no problems</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181826#M148945</link>
      <description>&lt;P&gt;Steve, I have no problems with VS2005 for my own purposes, I was just trying to be helpful by testing the OP's code, and just mentioned the libc.lib issue as an interesting discovery.&amp;nbsp; In my own work I always build using the IDE, and everything has been working fine for years.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Sep 2018 21:01:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181826#M148945</guid>
      <dc:creator>gib</dc:creator>
      <dc:date>2018-09-09T21:01:47Z</dc:date>
    </item>
    <item>
      <title>First, thank-you all for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181827#M148946</link>
      <description>&lt;P&gt;First, thank-you all for taking the time to look at my problem.&lt;/P&gt;

&lt;P&gt;Through some trial and error, I believe I have found the "smoking gun", or at least something that is contributing to the "floating invalid" error message I am getting.&amp;nbsp; In my simple example (see my original post), if I remove the compile option "/qinit:snan,arrays", my simple program runs fine.&amp;nbsp; Or if I remove the "snan" such that the option is "/qinit:arrays", my simple program runs fine.&lt;/P&gt;

&lt;P&gt;Steve: with this fix, "/libs:dll" and "/libs:static"&amp;nbsp; appear to work equally well)&lt;/P&gt;

&lt;P&gt;But my use of "/qinit:snan" raises the question of whether I need (or should use) this compiler option in my much larger application.&amp;nbsp; (I can't recall why I added the option in the first place.&amp;nbsp; But I must have had a reason.)&amp;nbsp; Let add one more observation (which I perhaps should have included in my original post).&amp;nbsp; The size of the array matters.&amp;nbsp; I do not get the "floating invalid" message when the size of the xa array is small. (e.g., when nta=1).&amp;nbsp; I'm not sure why the size of the array matters; but it does.&lt;/P&gt;

&lt;P&gt;So, thoughts experts?&amp;nbsp; Why is this compiler option causing problems?&amp;nbsp; Is removing this compiler option something I should be worried about? My next step is to test my large application without this compiler option.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;Jim&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 17:07:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181827#M148946</guid>
      <dc:creator>Cilke__Jim</dc:creator>
      <dc:date>2018-09-10T17:07:12Z</dc:date>
    </item>
    <item>
      <title>/qinit:snan is an unknown</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181828#M148947</link>
      <description>&lt;P&gt;/qinit:snan is an unknown option with my compiler version.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 17:18:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181828#M148947</guid>
      <dc:creator>gib</dc:creator>
      <dc:date>2018-09-10T17:18:09Z</dc:date>
    </item>
    <item>
      <title>On Windows, it's spelled</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181829#M148948</link>
      <description>&lt;P&gt;On Windows, it's spelled /Qinit:snan&amp;nbsp;&amp;nbsp; (note that the Q is uppercased)&lt;/P&gt;

&lt;P&gt;Some of the command line options are case-insensitive, but the vast majority are case-&lt;STRONG&gt;sensitive&amp;nbsp; &lt;/STRONG&gt;(especially ones that begin with Q)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --Lorri&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 17:32:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181829#M148948</guid>
      <dc:creator>Lorri_M_Intel</dc:creator>
      <dc:date>2018-09-10T17:32:08Z</dc:date>
    </item>
    <item>
      <title>'/Qinit:snan' is also unknown</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181830#M148949</link>
      <description>&lt;P&gt;'/Qinit:snan' is also unknown to IVF 11.075.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 17:39:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181830#M148949</guid>
      <dc:creator>gib</dc:creator>
      <dc:date>2018-09-10T17:39:40Z</dc:date>
    </item>
    <item>
      <title>Quite right Lorri.  I should</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181831#M148950</link>
      <description>&lt;P&gt;Quite right Lorri.&amp;nbsp; I should have been more exact in my post and used /Qinit instead of /qinit.&lt;/P&gt;

&lt;P&gt;And gib, the compile option /Qinit:snan appears to be known in IVF 15.0.7, as I do not get an "unrecognized keyword" error message.&amp;nbsp; And, based on the documentation for /Qinit:snan, it seems like it would be useful compiler option to invoke.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 18:06:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/floating-invalid-error/m-p/1181831#M148950</guid>
      <dc:creator>Cilke__Jim</dc:creator>
      <dc:date>2018-09-10T18:06:10Z</dc:date>
    </item>
  </channel>
</rss>

