<div dir="ltr">Hi Nico,<div><br></div><div>Thanks for your response. I am indeed using that version of the intel compiler.</div><div><br></div><div>With a new arch file (provided to me after my original post) - I was able to compile cp2k again. I didn't have much luck with the arch file that you linked. This time - I am getting a segmentation fault when I run the executable for any input. This is probably due to a small mistake in the arch file.</div><div><br></div><div>Here is the segfault output:</div><div><br></div><div>---</div><div>




<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 21.0px Menlo; color: #000000; background-color: #ffffff}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style>


<p class="p1"><span class="s1">forrtl: severe (174): SIGSEGV, segmentation fault occurred</span></p>
<p class="p1"><span class="s1">Image<span class="Apple-converted-space">              </span>PC<span class="Apple-converted-space">                </span>Routine<span class="Apple-converted-space">            </span>Line<span class="Apple-converted-space">        </span>Source<span class="Apple-converted-space">             </span></span></p>
<p class="p1"><span class="s1">cp2k.popt<span class="Apple-converted-space">          </span>00000000061CEDD4<span class="Apple-converted-space">  </span>Unknown <span class="Apple-converted-space">              </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p>
<p class="p1"><span class="s1">libpthread-2.12.s<span class="Apple-converted-space">  </span>00002AFB6C88A710<span class="Apple-converted-space">  </span>Unknown <span class="Apple-converted-space">              </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p>
<p class="p1"><span class="s1">cp2k.popt<span class="Apple-converted-space">          </span>00000000060C5B41<span class="Apple-converted-space">  </span>mkl_lapack_ps_avx <span class="Apple-converted-space">    </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p>
<p class="p1"><span class="s1">cp2k.popt<span class="Apple-converted-space">          </span>0000000005FE4287<span class="Apple-converted-space">  </span>Unknown <span class="Apple-converted-space">              </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p>
<p class="p1"><span class="s1">cp2k.popt<span class="Apple-converted-space">          </span>0000000002F9F719<span class="Apple-converted-space">  </span>Unknown <span class="Apple-converted-space">              </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p>
<p class="p1"><span class="s1">cp2k.popt<span class="Apple-converted-space">          </span>0000000002DC42D4<span class="Apple-converted-space">  </span>Unknown <span class="Apple-converted-space">              </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p>
<p class="p1"><span class="s1">cp2k.popt<span class="Apple-converted-space">          </span>0000000002A9B519<span class="Apple-converted-space">  </span>Unknown <span class="Apple-converted-space">              </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p>
<p class="p1"><span class="s1">cp2k.popt<span class="Apple-converted-space">          </span>0000000000CBE12C<span class="Apple-converted-space">  </span>Unknown <span class="Apple-converted-space">              </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p>
<p class="p1"><span class="s1">cp2k.popt<span class="Apple-converted-space">          </span>0000000000787E2A<span class="Apple-converted-space">  </span>Unknown <span class="Apple-converted-space">              </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p>
<p class="p1"><span class="s1">cp2k.popt<span class="Apple-converted-space">          </span>00000000007842BC<span class="Apple-converted-space">  </span>Unknown <span class="Apple-converted-space">              </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p>
<p class="p1"><span class="s1">cp2k.popt<span class="Apple-converted-space">          </span>0000000000599F37<span class="Apple-converted-space">  </span>Unknown <span class="Apple-converted-space">              </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p>
<p class="p1"><span class="s1">cp2k.popt<span class="Apple-converted-space">          </span>00000000005999F3<span class="Apple-converted-space">  </span>Unknown <span class="Apple-converted-space">              </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p>
<p class="p1"><span class="s1">cp2k.popt<span class="Apple-converted-space">          </span>000000000045B876<span class="Apple-converted-space">  </span>Unknown <span class="Apple-converted-space">              </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p>
<p class="p1"><span class="s1">cp2k.popt<span class="Apple-converted-space">          </span>0000000000450C38<span class="Apple-converted-space">  </span>Unknown <span class="Apple-converted-space">              </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p>
<p class="p1"><span class="s1">cp2k.popt<span class="Apple-converted-space">          </span>0000000006232E02<span class="Apple-converted-space">  </span>Unknown <span class="Apple-converted-space">              </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p>
<p class="p1"><span class="s1">libc-2.12.so <span class="Apple-converted-space">      </span>00002AFB6E219D5D<span class="Apple-converted-space">  </span>__libc_start_main <span class="Apple-converted-space">    </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p>
<p class="p1"><span class="s1">cp2k.popt<span class="Apple-converted-space">          </span>0000000000450229<span class="Apple-converted-space">  </span>Unknown <span class="Apple-converted-space">              </span>Unknown<span class="Apple-converted-space">  </span>Unknown</span></p></div><div>---</div><div><br></div><div>Here is the arch file:</div><div><br></div><div>-----</div><div><br></div><div><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">CC       = icc<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">CPP      =<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">FC       = mpiifort<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">LD       = mpiifort<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">AR       = ar -r<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">MKLROOT=/panfs/pfs.local/software/install/intel/17.4/mkl<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">INTEL_LIB = $(MKLROOT)/lib/intel64<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;"><o:p> </o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">DFLAGS   = -D__INTEL -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK -D__FFTSG -D__MAX_CONTR=3 -D__HAS_NO_GETLOG -D__STATM_RESIDENT -D__HAS_NO_SHARED_GLIBC<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">FCFLAGS   = -D__INTEL -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK -D__FFTSG  -D__MAX_CONTR=3 -D__HAS_NO_GETLOG -D__STATM_RESIDENT -D__HAS_NO_SHARED_GLIBC<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">FCFLAGS  = $(DFLAGS) -I$ -O3 -msse2 -heap-arrays 64 -funroll-loops -fpp -free -nofor_main<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">FCFLAGS2 = $(DFLAGS) -O1 -msse2 -heap-arrays 64 -fpp -free<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">CPPFLAGS = $(FCFLAGS)<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">LDFLAGS  = $(FCFLAGS)<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">LIBS     = -L$(INTEL_LIB) -lstdc++  ${MKLROOT}/lib/intel64/libmkl_blas95_ilp64.a ${MKLROOT}/lib/intel64/libmkl_lapack95_ilp64.a ${MKLROOT}/lib/intel64/libmkl_scalapack_ilp64.a -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_ilp64.a ${MKLROOT}/lib/intel64/libmkl_intel_thread.a ${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64/libmkl_blacs_intelmpi_ilp64.a -Wl,--end-group -liomp5 -lpthread -lm -ldl<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">OBJECTS_ARCHITECTURE = machine_intel.o<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;"><o:p> </o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">graphcon.o: graphcon.F<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">    $(FC) -c $(FCFLAGS2) $<<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">mao_methods.o: mao_methods.F<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;">    $(FC) -c $(FCFLAGS2) $<</span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><span style="font-size: 16pt; font-family: Menlo;"><br></span></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;">-----</p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><br></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;">Do you have any thoughts on where the issue might be?</p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><br></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;">Would it be better if I gave up on the intel compiler for now and switched to trying to compile with gcc?</p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><br></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;">I really appreciate your response.</p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;"><br></p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;">Thanks,</p><p class="MsoNormal" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(0, 0, 0); text-size-adjust: auto;">Zeke</p></div><div> <br><br>On Thursday, March 22, 2018 at 11:40:25 AM UTC-5, Nico Holmberg wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">Hi,<br><br>Which version of the Intel compiler suite/MKL are you using? Only version  17.0.4 20170411 currently works without issues, see <a href="https://www.cp2k.org/dev:compiler_support" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.cp2k.org%2Fdev%3Acompiler_support\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHq7WVu4QkGpDyG7P2tzgPChzf4YQ';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.cp2k.org%2Fdev%3Acompiler_support\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHq7WVu4QkGpDyG7P2tzgPChzf4YQ';return true;">https://www.cp2k.org/dev:<wbr>compiler_support</a> and earlier discussions on the Google groups forum. <br><br>I am no expert on Intel compiling but I think there are some issues with the arch-file, compare yours e.g. with this one <a href="https://sourceforge.net/p/cp2k/code/18346/tree//trunk/cp2k/arch/Linux-x86-64-intel.popt" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fsourceforge.net%2Fp%2Fcp2k%2Fcode%2F18346%2Ftree%2F%2Ftrunk%2Fcp2k%2Farch%2FLinux-x86-64-intel.popt\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFrK9PKQUZ4Dkfjz0d3t5wVL6sPkQ';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fsourceforge.net%2Fp%2Fcp2k%2Fcode%2F18346%2Ftree%2F%2Ftrunk%2Fcp2k%2Farch%2FLinux-x86-64-intel.popt\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFrK9PKQUZ4Dkfjz0d3t5wVL6sPkQ';return true;">https://sourceforge.net/p/<wbr>cp2k/code/18346/tree//trunk/<wbr>cp2k/arch/Linux-x86-64-intel.<wbr>popt</a> from the CP2K repository. For instance, I don't think the <span> -D__FFTMKL</span> flag exists (?), use -D__MKL for MKL linear algebra/FFT<span>. Also, setting</span> -fp-model precise to FCFLAGS might help.<br><br>The error/note you mentioned is harmless.<br><br>- Nico<br><br><br><br>torstai 22. maaliskuuta 2018 16.20.54 UTC+2 Zeke P kirjoitti:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I have been trying to work with our cluster support people here to install CP2K with intel compilers and I have been having difficulty getting an executable that passes the regtest.</div><div><br></div><div>Here are the regtest results I am getting:</div><div><br></div><div><span style="color:rgb(0,0,0);font-family:Menlo;font-size:17px">-----</span><br></div><div><br></div><div>







<p><span>Summary of the regression tester run from 2018-03-21_17-21-50 using Linux-x86-64-intel-ku popt</span></p>
<p><span>Number of FAILED<span>  </span>tests 165</span></p>
<p><span>Number of WRONG <span>  </span>tests 1003</span></p>
<p><span>Number of CORRECT tests 1524</span></p>
<p><span>Number of NEW <span>    </span>tests 10</span></p>
<p><span>Total number of <span>  </span>tests 2702</span></p><p><span><br></span></p><p><span>-----</span></p><p><span><br></span></p><p><font size="2"><span>We have compiled CP2K/5.1 using the following arch makefile (created by our cluster support)</span></font></p><p><font size="2"><span><br></span></font></p><p><span>-----</span><font size="2"><span><br></span></font></p><p><span><br></span></p><p><span>INTEL_INC = $(MKL_ROOT)/include/fftw</span></p><p><span>INTEL_LIB = $(MKL_ROOT)/lib/intel64</span></p><p><span>CC = mpiicc</span></p><p><span>FC = mpiifort</span></p><p><span>LD = mpiifort</span></p><p><span>AR = xiar -r</span></p><p><span>DFLAGS = -D__INTEL -D__FFTSG -D__FFTW3 -D__FFTMKL -D__parallel -D__BLACS -D__SCALAPACK</span></p><p><span>CPPFLAGS = -C -traditional $(DFLAGS) -I$(INTEL_INC)</span></p><p><span>FCFLAGS = $(DFLAGS) -I$(INTEL_INC) -O2 -xHost -heap-arrays 64 -fpp -free -unroll -pc 64 -convert big_endian -nofor_main</span></p><p><span>LDFLAGS = $(FCFLAGS)</span></p><p><span>LIBS = -L$(INTEL_LIB) -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64</span></p><p>


















</p><p><span>OBJECTS_ARCHITECTURE = machine_intel.o</span></p><p><span><br></span></p><p><span>-----<br></span></p><p><span><br></span></p><p><span><font size="2">That being said - we aren't having much success. During compilation we are getting remark 8291 which states</font> <font size="2" face="arial, sans-serif">"</font></span><font size="2" face="arial, sans-serif">Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor </font><span style="font-family:arial,sans-serif;font-size:small">is 'W>=D+7'."  Could this be causing the problem? I am attaching the error summary output by the regtest in case that would help.</span></p><p><span style="font-family:arial,sans-serif;font-size:small"><br></span></p><p><span style="font-family:arial,sans-serif;font-size:small">I would appreciate any suggestions you may have - it is very likely that we are missing something stupid that is causing the compilation trouble.</span></p><p><span style="font-family:arial,sans-serif;font-size:small"><br></span></p><p><span style="font-family:arial,sans-serif;font-size:small">Thanks so much,</span></p><p><span style="font-family:arial,sans-serif;font-size:small">Zeke Piskulich</span></p></div></div></blockquote></div></blockquote></div></div>