<html>#1276: Intel 2013.1.117 mis-compiles NewRad
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Roland Haas</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>open</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td>development version</td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td>EinsteinToolkit thorn</td></tr>
</table>

<p>Comment (by Roland Haas):</p>
<p>Unless objected I will close this ticket as “resolved” after 2019-7-14.</p>
<p>The test remains in <code>cctk_Config.h</code> which is maybe a bit unfortunate since that is not a file one would normally have checked. A test in <a data-is-external-link="true" href="http://configure.in" rel="nofollow">configure.in</a> (ideally not requiring actually running code, so that it also works with cross compiling) would be nicer. Something like:</p>
<div class="codehilite language-c"><pre><span></span><span class="cp">#if (defined __INTEL_COMPILER                &amp;&amp;                 \</span>
<span class="cp">     __INTEL_COMPILER_BUILD_DATE &gt;= 20120731 &amp;&amp;                 \</span>
<span class="cp">     __INTEL_COMPILER_BUILD_DATE &lt;  20130728 &amp;&amp;                 \</span>
<span class="cp">     !defined CCTK_INTEL_COMPILER_DONT_DISABLE_RESTRICT)</span>
<span class="cp">#error &quot;icpc with failing __restrict__ handling detected&quot;</span>
<span class="cp">#endif</span>
</pre></div>


<p>would do the trick.</p>
<p>There are no longer any production machines with intel compilers which fall into this range. The oldest compiler available is on shelob with /usr/local/compilers/Intel/composer_xe_2013.5.192/bin/intel64/icpc which has a build date of  20130607 and thus would fall into the range of “buggy” compilers (&gt;= 20120731 and &lt;20130728) but passes the standalone test for me (no matter what optimization level I choose).</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/1276/intel-20131117-mis-compiles-newrad'>https://bitbucket.org/einsteintoolkit/tickets/issues/1276/intel-20131117-mis-compiles-newrad</a></p>
</html>