<div dir="ltr">Dear all,<div><br></div><div>I recently built GROMACS 2016.1 for the Skylake architecture.</div><div>How<font face="arial, helvetica, sans-serif">ever, the executable </font>crashed when I trid to run it.</div><div>The reason for this was that the code was compiled with -xMIC-AVX512, which generates AVX512 instructions for the Knights Landing architecture, which are partly incompatible with the AVX512 instruction set for Skylakes.</div><div><br></div><div>The reason for this compiler flag to be used is the following code in cmake/gmxManageSimd.cmake</div><div><br></div><div><pre style="font-family:consolas,menlo,&quot;liberation mono&quot;,courier,monospace;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;font-size:12px;color:rgb(51,51,51);background-color:rgb(250,250,250)">elseif(GMX_SIMD STREQUAL &quot;AVX_512&quot;)</pre><pre style="font-family:consolas,menlo,&quot;liberation mono&quot;,courier,monospace;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;font-size:12px;color:rgb(51,51,51);background-color:rgb(250,250,250)">   ...</pre><pre style="font-family:consolas,menlo,&quot;liberation mono&quot;,courier,monospace;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;font-size:12px;color:rgb(51,51,51);background-color:rgb(250,250,250)">   &quot;-xMIC-AVX512&quot; &quot;-mavx512f -mfma&quot; &quot;-mavx512f&quot; &quot;/arch:AVX&quot; &quot;-hgnu&quot;) # no AVX_512F flags known for MSVC yet</pre><pre style="font-family:consolas,menlo,&quot;liberation mono&quot;,courier,monospace;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;font-size:12px;color:rgb(51,51,51);background-color:rgb(250,250,250)"><br></pre><pre style="margin-top:0px;margin-bottom:0px;white-space:pre-wrap;font-size:12px;color:rgb(51,51,51);background-color:rgb(250,250,250)"><font face="arial, helvetica, sans-serif">I checked the GROMACS repository, and this code seems still to be present.</font></pre><pre style="margin-top:0px;margin-bottom:0px;white-space:pre-wrap;font-size:12px;color:rgb(51,51,51);background-color:rgb(250,250,250)"><font face="arial, helvetica, sans-serif">To generate correct code for Skylakes, the -xMIC-AVX512 should be replaced by -xCORE-AVX512.</font></pre><pre style="margin-top:0px;margin-bottom:0px;white-space:pre-wrap;font-size:12px;color:rgb(51,51,51);background-color:rgb(250,250,250)"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="margin-top:0px;margin-bottom:0px;white-space:pre-wrap;font-size:12px;color:rgb(51,51,51);background-color:rgb(250,250,250)"><font face="arial, helvetica, sans-serif">Best regards,</font></pre><pre style="margin-top:0px;margin-bottom:0px;white-space:pre-wrap;font-size:12px;color:rgb(51,51,51);background-color:rgb(250,250,250)"><font face="arial, helvetica, sans-serif">Daniel</font></pre></div></div>