<div dir="ltr"><div>The error message is that you cannot link to BLAS.</div><div>My first question is that you are using ACML, which has a BLAS implementation, and then you are linking to librefblas.a?<br></div><div>I tried your arch file on my local CP2K installation. <br></div><div>I have removed ACML and reordered the library in the linking. Note that I did a change in scalapack and lapack (in my case, I have installed lapack through scalapack).</div><div><br></div><div><span style="font-family:monospace"><span style="color: rgb(0, 0, 0);">CC = gcc </span><br>CPP = <br>FC = mpif90 <br>LD = mpif90 <br>AR = ar -r <br><br></span></div><div><span style="font-family:monospace">FFTW_INC = /share/home/tshjiang/cp2k-4.1/tools/toolchain/install/fftw-3.3.4/include <br>FFTW_LIB = /share/home/tshjiang/cp2k-4.1/tools/toolchain/install/fftw-3.3.4/lib <br>LIBINT_INC = /share/home/tshjiang/cp2k-4.1/tools/toolchain/install/libint-1.1.4/include <br>LIBINT_LIB = /share/home/tshjiang/cp2k-4.1/tools/toolchain/install/libint-1.1.4/lib <br>LIBXC_INC = /share/home/tshjiang/cp2k-4.1/tools/toolchain/install/libxc-2.2.2/include <br>LIBXC_LIB = /share/home/tshjiang/cp2k-4.1/tools/toolchain/install/libxc-2.2.2/lib <br>SCALAPACK_LIB = /share/home/tshjiang/cp2k-4.1/tools/toolchain/install/scalapack-2.0.2/<br>
<br></span></div><div><span style="font-family:monospace"><span style="color: rgb(0, 0, 0);">DFLAGS = -D__FFTW3 -D__LIBINT -D__LIBXC2 -D__MPI_VERSION=2\ </span><br> -D__LIBINT_MAX_AM=7 -D__LIBDERIV_MAX_AM1=6 -D__MAX_CONTR=4\ <br> -D__parallel -D__SCALAPACK <br>CPPFLAGS = <br>FCFLAGS = $(DFLAGS) -O2 -ffast-math -ffree-form -ffree-line-length-none\ <br> -fopenmp -ftree-vectorize -funroll-loops\ <br> -mtune=native <br>FCFLAGS += -I$(FFTW_INC) -I$(LIBINT_INC) -I$(LIBXC_INC) <br>LDFLAGS = $(FCFLAGS) -dynamic-libgfortran <br>LIBS = -L$(FFTW_LIB) -lfftw3 -lfftw3_omp <br>LIBS += -L$(LIBINT_LIB) -lderiv -lint <br>LIBS += -L$(LIBXC_LIB) -lxcf03 -lxc <br>LIBS += -L$(SCALAPACK_LIB) -lscalapack -lreflapack -lrefblas<br>
<br></span></div><div>Could you try if it links in your case?</div><div>It is definitely a problem with the library linking, so you have to check there...</div><div><br></div><div>I hope it helps to solve your problem.</div><div><br></div><div>Alfio</div><div><br></div><div><br></div><div><br></div><div><br></div><br><br>Il giorno mercoledì 11 aprile 2018 15:35:56 UTC+2, Tianshu Jiang in Beijing ha scritto:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><font face="georgia, serif">Hi Alfio,</font><div><font face="georgia, serif">Sorry to bother you again. After I changed my arch file. The original error disappear. But there exists some new error.</font></div><div><font face="georgia, serif"><br></font></div><div><div style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px;word-wrap:break-word"><code><div><div>/share/home/tshjiang/cp2k-4.1/<wbr>lib/Linux-x86-64-gfortran/<wbr>psmp/libdbcsrmm.a(dbcsr_mm_<wbr>hostdrv.o): In function `__dbcsr_mm_hostdrv_MOD_blas_<wbr>process_mm_stack_s':</div><div>dbcsr_mm_hostdrv.F:(.text+<wbr>0xc2): undefined reference to `sgemm_'</div><div>dbcsr_mm_hostdrv.F:(.text+<wbr>0x14e): undefined reference to `sgemm_'</div><div>dbcsr_mm_hostdrv.F:(.text+<wbr>0x1cd): undefined reference to `sgemm_'</div><div>dbcsr_mm_hostdrv.F:(.text+<wbr>0x246): undefined reference to `sgemm_'</div><div>/share/home/tshjiang/cp2k-4.1/<wbr>lib/Linux-x86-64-gfortran/<wbr>psmp/libdbcsrmm.a(dbcsr_mm_<wbr>hostdrv.o): In function `__dbcsr_mm_hostdrv_MOD_blas_<wbr>process_mm_stack_d':</div><div>dbcsr_mm_hostdrv.F:(.text+<wbr>0x332): undefined reference to `dgemm_'</div><div>dbcsr_mm_hostdrv.F:(.text+<wbr>0x3be): undefined reference to `dgemm_'</div><div>dbcsr_mm_hostdrv.F:(.text+<wbr>0x43d): undefined reference to `dgemm_'</div><div>dbcsr_mm_hostdrv.F:(.text+<wbr>0x4b6): undefined reference to `dgemm_'</div><div>/share/home/tshjiang/cp2k-4.1/<wbr>lib/Linux-x86-64-gfortran/<wbr>psmp/libdbcsrmm.a(dbcsr_mm_<wbr>hostdrv.o): In function `__dbcsr_mm_hostdrv_MOD_blas_<wbr>process_mm_stack_c':</div><div>dbcsr_mm_hostdrv.F:(.text+<wbr>0x5a2): undefined reference to `cgemm_'</div><div>dbcsr_mm_hostdrv.F:(.text+<wbr>0x62e): undefined reference to `cgemm_'</div><div>dbcsr_mm_hostdrv.F:(.text+<wbr>0x6ad): undefined reference to `cgemm_'</div><div>dbcsr_mm_hostdrv.F:(.text+<wbr>0x726): undefined reference to `cgemm_'</div></div></code></div><br><font face="georgia, serif">But I have no idea why there exist such error.</font></div><div><font face="georgia, serif">The arch file is here</font></div><div><font face="georgia, serif"><br></font></div><div><div style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px;word-wrap:break-word"><code><div><div>CC = gcc</div><div>CPP =</div><div>FC = mpif90</div><div>LD = mpif90</div><div>AR = ar -r</div><div>ACML_INC = /share/home/tshjiang/cp2k-4.1/<wbr>tools/toolchain/install/acml-<wbr>5.3.1/gfortran64/include</div><div>ACML_LIB = /share/home/tshjiang/cp2k-4.1/<wbr>tools/toolchain/install/acml-<wbr>5.3.1/gfortran64/lib</div><div>FFTW_INC = /share/home/tshjiang/cp2k-4.1/<wbr>tools/toolchain/install/fftw-<wbr>3.3.4/include</div><div>FFTW_LIB = /share/home/tshjiang/cp2k-4.1/<wbr>tools/toolchain/install/fftw-<wbr>3.3.4/lib</div><div>LIBINT_INC = /share/home/tshjiang/cp2k-4.1/<wbr>tools/toolchain/install/<wbr>libint-1.1.4/include</div><div>LIBINT_LIB = /share/home/tshjiang/cp2k-4.1/<wbr>tools/toolchain/install/<wbr>libint-1.1.4/lib</div><div>LIBXC_INC = /share/home/tshjiang/cp2k-4.1/<wbr>tools/toolchain/install/libxc-<wbr>2.2.2/include</div><div>LIBXC_LIB = /share/home/tshjiang/cp2k-4.1/<wbr>tools/toolchain/install/libxc-<wbr>2.2.2/lib</div><div>DFLAGS = -D__FFTW3 -D__LIBINT -D__LIBXC2 -D__MPI_VERSION=2\</div><div> -D__LIBINT_MAX_AM=7 -D__LIBDERIV_MAX_AM1=6 -D__MAX_CONTR=4\</div><div> -D__parallel -D__SCALAPACK</div><div>CPPFLAGS =</div><div>FCFLAGS = $(DFLAGS) -O2 -ffast-math -ffree-form -ffree-line-length-none\</div><div> -fopenmp -ftree-vectorize -funroll-loops\</div><div> -mtune=native\</div><div> -I$(ACML_INC) -I$(FFTW_INC) -I$(LIBINT_INC) -I$(LIBXC_INC)</div><div>LDFLAGS = $(FCFLAGS) -dynamic-libgfortran<br><div>LIBS = /share/home/tshjiang/cp2k-4.1/<wbr>tools/toolchain/install/<wbr>scalapack-2.0.2/libscalapack.<wbr>a\</div><div> /share/home/tshjiang/cp2k-4.<wbr>1/tools/toolchain/install/<wbr>acml-5.3.1/gfortran64/lib/<wbr>libacml.a\</div><div> /share/home/tshjiang/cp2k-4.<wbr>1/tools/toolchain/install/<wbr>lapack-3.5.0/liblapack.a\</div><div> /share/home/tshjiang/cp2k-4.<wbr>1/tools/toolchain/install/<wbr>lapack-3.5.0/librefblas.a\</div><div> $(FFTW_LIB)/libfftw3.a\</div><div> $(FFTW_LIB)/libfftw3_threads.<wbr>a\</div><div> $(LIBXC_LIB)/libxcf90.a\</div><div> $(LIBXC_LIB)/libxc.a\</div><div> $(LIBINT_LIB)/libderiv.a\</div><div> $(LIBINT_LIB)/libint.a</div></div></div></code></div><br><br><br>在 2018年4月7日星期六 UTC+8下午2:06:17,Alfio Lazzaro写道:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Note that Intel 17.0.1 is not supported (see <a href="https://www.cp2k.org/dev:compiler_support" rel="nofollow" target="_blank" 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> ). Make sure that your CP2K installation goes through the regtest (<a href="https://www.cp2k.org/dev:regtesting" rel="nofollow" target="_blank" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.cp2k.org%2Fdev%3Aregtesting\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG1cOJGd_1hhwVDqInibboNBS5zMw';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.cp2k.org%2Fdev%3Aregtesting\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG1cOJGd_1hhwVDqInibboNBS5zMw';return true;">https://www.cp2k.org/<wbr>dev:regtesting</a> ).<div><br></div><div>Alfio<br><div><br></div><div><br></div><div><br>Il giorno venerdì 6 aprile 2018 14:11:57 UTC+2, Tianshu Jiang in Beijing ha scritto:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font face="georgia, serif" size="4">Dear all, </font><div><font face="georgia, serif" size="4"><br></font></div><div><font face="georgia, serif" size="4">I have been compiling cp2k-4.1 using intel compiler for several days but there is always problems.</font></div><div><font face="georgia, serif" size="4">I edit both Linux-x86-64-gfortran.<wbr>psmp and Linux-x86-64-intel-mic.<wbr>psmp file according to the tutorial searched from the internet.</font></div><div><font face="georgia, serif" size="4">But in my latest trial, the beginning is OK, then the error emerge. </font></div><div><font face="georgia, serif" size="4">The compiling environment is on our cluster, the version of Intel compiler is 17.0.1, libint 1.1.4 and libxc 2.2.2.</font></div><div><font face="georgia, serif" size="4">The error information is as follows</font></div><div><br><br></div><div style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px;word-wrap:break-word"><code><div><span style="color:#000">mpiifort </span><span style="color:#660">-</span><span style="color:#000">c </span><span style="color:#660">-</span><span style="color:#000">D__MKL </span><span style="color:#660">-</span><span style="color:#000">D__FFTW3 </span><span style="color:#660">-</span><span style="color:#000">D__LIBINT </span><span style="color:#660">-</span><span style="color:#000">D__LIBXC2 </span><span style="color:#660">-</span><span style="color:#000">D__MPI_VERSION</span><span style="color:#660">=</span><span style="color:#066">3</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">D__LIBINT_MAX_AM</span><span style="color:#660">=</span><span style="color:#066">7</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">D__LIBDERIV_MAX_AM1</span><span style="color:#660">=</span><span style="color:#066">6</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">D__MAX_CONTR</span><span style="color:#660">=</span><span style="color:#066">4</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">D__parallel </span><span style="color:#660">-</span><span style="color:#000">D__SCALAPACK </span><span style="color:#660">-</span><span style="color:#000">O2 </span><span style="color:#660">-</span><span style="color:#000">g </span><span style="color:#660">-</span><span style="color:#000">traceback </span><span style="color:#660">-</span><span style="color:#000">fpp </span><span style="color:#660">-</span><span style="color:#000">free </span><span style="color:#660">-</span><span style="color:#000">I</span><span style="color:#660">/</span><span style="color:#000">soft</span><span style="color:#660">/</span><span style="color:#000">intel_2017</span><span style="color:#660">/</span><span style="color:#000">compilers_<wbr>and_libraries_2017</span><span style="color:#660">/</span><span style="color:#000">linux</span><span style="color:#660">/</span><span style="color:#000">mkl</span><span style="color:#660">/</span><span style="color:#000">i<wbr>nclude </span><span style="color:#660">-</span><span style="color:#000">I</span><span style="color:#660">/</span><span style="color:#000">soft</span><span style="color:#660">/</span><span style="color:#000">intel_2017</span><span style="color:#660">/</span><span style="color:#000">compilers_<wbr>and_libraries_2017</span><span style="color:#660">/</span><span style="color:#000">linux</span><span style="color:#660">/</span><span style="color:#000">mkl</span><span style="color:#660">/</span><span style="color:#000">i<wbr>nclude</span><span style="color:#660">/</span><span style="color:#000">fftw </span><span style="color:#660">-</span><span style="color:#000">I</span><span style="color:#660">/</span><span style="color:#000">share</span><span style="color:#660">/</span><span style="color:#000">home</span><span style="color:#660">/</span><span style="color:#000">tshjiang</span><span style="color:#660">/</span><span style="color:#000">intel_<wbr>cp2k</span><span style="color:#660">/</span><span style="color:#000">tools</span><span style="color:#660">/</span><span style="color:#000">toolchain</span><span style="color:#660">/</span><span style="color:#000">install</span><span style="color:#660">/</span><span style="color:#000">l<wbr>ibint</span><span style="color:#660">-</span><span style="color:#066">1.1</span><span style="color:#660">.</span><span style="color:#066">4</span><span style="color:#660">/</span><span style="color:#000">include </span><span style="color:#660">-</span><span style="color:#000">I</span><span style="color:#660">/</span><span style="color:#000">share</span><span style="color:#660">/</span><span style="color:#000">home</span><span style="color:#660">/</span><span style="color:#000">tshjiang</span><span style="color:#660">/</span><span style="color:#000">intel_<wbr>cp2k</span><span style="color:#660">/</span><span style="color:#000">tools</span><span style="color:#660">/</span><span style="color:#000">toolchain</span><span style="color:#660">/</span><span style="color:#000">install</span><span style="color:#660">/</span><span style="color:#000">l<wbr>ibxc</span><span style="color:#660">-</span><span style="color:#066">2.2</span><span style="color:#660">.</span><span style="color:#066">2</span><span style="color:#660">/</span><span style="color:#000">include </span><span style="color:#660">-</span><span style="color:#000">D__COMPILE_ARCH</span><span style="color:#660">=</span><span style="color:#080">"\"Linux-x86-<wbr>64-gfortran\""</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">D__COMPILE_DATE</span><span style="color:#660">=</span><span style="color:#080">"\"Fri Apr 6 19:45:36 CST 2018\""</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">D__COMPILE_HOST</span><span style="color:#660">=</span><span style="color:#080">"\"ln02\""</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">D__COMPILE_REVISION</span><span style="color:#660">=</span><span style="color:#080">"\"svn:<wbr>17462\""</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">D__DATA_DIR</span><span style="color:#660">=</span><span style="color:#080">"\"/share/home/<wbr>tshjiang/intel_cp2k/data\""</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">D__SHORT_FILE__</span><span style="color:#660">=</span><span style="color:#080">"\"eri_mme/<wbr>eri_mme_lattice_summation.F\""</span><span style="color:#000"> </span><span style="color:#660">/</span><span style="color:#000">share</span><span style="color:#660">/</span><span style="color:#000">home</span><span style="color:#660">/</span><span style="color:#000">tshjiang</span><span style="color:#660">/</span><span style="color:#000">intel_<wbr>cp2k</span><span style="color:#660">/</span><span style="color:#000">src</span><span style="color:#660">/</span><span style="color:#000">eri_mme</span><span style="color:#660">/</span><span style="color:#000">eri_mme_<wbr>lattice_summation</span><span style="color:#660">.</span><span style="color:#000">F<br>ld</span><span style="color:#660">:</span><span style="color:#000"> </span><span style="color:#008">group</span><span style="color:#000"> ended before it began </span><span style="color:#660">(--</span><span style="color:#000">help </span><span style="color:#008">for</span><span style="color:#000"> usage</span><span style="color:#660">)</span><span style="color:#000"><br>make</span><span style="color:#660">[</span><span style="color:#066">3</span><span style="color:#660">]:</span><span style="color:#000"> </span><span style="color:#660">***</span><span style="color:#000"> </span><span style="color:#660">[</span><span style="color:#080">/share/</span><span style="color:#000">home</span><span style="color:#660">/</span><span style="color:#000">tshjiang</span><span style="color:#660">/</span><span style="color:#000">intel_<wbr>cp2k</span><span style="color:#660">/</span><span style="color:#000">exe</span><span style="color:#660">/</span><span style="color:#606">Linux</span><span style="color:#660">-</span><span style="color:#000">x86</span><span style="color:#660">-</span><span style="color:#066">64</span><span style="color:#660">-</span><span style="color:#000">gfortran</span><span style="color:#660"><wbr>/</span><span style="color:#000">graph</span><span style="color:#660">.</span><span style="color:#000">psmp</span><span style="color:#660">]</span><span style="color:#000"> </span><span style="color:#606">Error</span><span style="color:#000"> </span><span style="color:#066">1</span><span style="color:#000"><br>make</span><span style="color:#660">[</span><span style="color:#066">3</span><span style="color:#660">]:</span><span style="color:#000"> </span><span style="color:#660">***</span><span style="color:#000"> </span><span style="color:#606">Waiting</span><span style="color:#000"> </span><span style="color:#008">for</span><span style="color:#000"> unfinished jobs</span><span style="color:#660">....</span><span style="color:#000"><br>make</span><span style="color:#660">[</span><span style="color:#066">2</span><span style="color:#660">]:</span><span style="color:#000"> </span><span style="color:#660">***</span><span style="color:#000"> </span><span style="color:#660">[</span><span style="color:#000">all</span><span style="color:#660">]</span><span style="color:#000"> </span><span style="color:#606">Error</span><span style="color:#000"> </span><span style="color:#066">2</span><span style="color:#000"><br>make</span><span style="color:#660">[</span><span style="color:#066">1</span><span style="color:#660">]:</span><span style="color:#000"> </span><span style="color:#660">***</span><span style="color:#000"> </span><span style="color:#660">[</span><span style="color:#000">psmp</span><span style="color:#660">]</span><span style="color:#000"> </span><span style="color:#606">Error</span><span style="color:#000"> </span><span style="color:#066">2</span><span style="color:#000"><br>make</span><span style="color:#660">:</span><span style="color:#000"> </span><span style="color:#660">***</span><span style="color:#000"> </span><span style="color:#660">[</span><span style="color:#000">all</span><span style="color:#660">]</span><span style="color:#000"> </span><span style="color:#606">Error</span><span style="color:#000"> <br><br></span></div></code></div><div><br><br></div><div><font face="georgia, serif" size="4">I even can not figure out where is the error. The command of make is:</font></div><div><br></div><div><div style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px;word-wrap:break-word"><code><div><span style="color:#000">make </span><span style="color:#660">-</span><span style="color:#000">j </span><span style="color:#066">8</span><span style="color:#000"> ARCH</span><span style="color:#660">=</span><span style="color:#606">Linux</span><span style="color:#660">-</span><span style="color:#000">x86</span><span style="color:#660">-</span><span style="color:#066">64</span><span style="color:#660">-</span><span style="color:#000">gfortran VERSION</span><span style="color:#660">=</span><span style="color:#000">psmp</span></div></code></div><br></div><div><font face="georgia, serif" size="4">the arch file looks like</font></div><div><br></div><div><div style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px;word-wrap:break-word"><code><div><span style="color:#800"># Tested with: GFortran 4.9.2, MPICH 3.1, LAPACK 3.5.0, ScaLAPACK 2.0.2</span><span style="color:#000"><br>CC </span><span style="color:#660">=</span><span style="color:#000"> icc<br>CPP </span><span style="color:#660">=</span><span style="color:#000"><br>FC </span><span style="color:#660">=</span><span style="color:#000"> mpiifort<br>LD </span><span style="color:#660">=</span><span style="color:#000"> mpiifort<br>AR </span><span style="color:#660">=</span><span style="color:#000"> ar </span><span style="color:#660">-</span><span style="color:#000">r<br><br>LIBINT_INC </span><span style="color:#660">=</span><span style="color:#000"> </span><span style="color:#080">/share/</span><span style="color:#000">home</span><span style="color:#660">/</span><span style="color:#000">tshjiang</span><span style="color:#660">/</span><span style="color:#000">intel_<wbr>cp2k</span><span style="color:#660">/</span><span style="color:#000">tools</span><span style="color:#660">/</span><span style="color:#000">toolchain</span><span style="color:#660">/</span><span style="color:#000">install</span><span style="color:#660">/</span><span style="color:#000">l<wbr>ibint</span><span style="color:#660">-</span><span style="color:#066">1.1</span><span style="color:#660">.</span><span style="color:#066">4</span><span style="color:#660">/</span><span style="color:#000">include<br><br>LIBINT_LIB </span><span style="color:#660">=</span><span style="color:#000"> </span><span style="color:#080">/share/</span><span style="color:#000">home</span><span style="color:#660">/</span><span style="color:#000">tshjiang</span><span style="color:#660">/</span><span style="color:#000">intel_<wbr>cp2k</span><span style="color:#660">/</span><span style="color:#000">tools</span><span style="color:#660">/</span><span style="color:#000">toolchain</span><span style="color:#660">/</span><span style="color:#000">install</span><span style="color:#660">/</span><span style="color:#000">l<wbr>ibint</span><span style="color:#660">-</span><span style="color:#066">1.1</span><span style="color:#660">.</span><span style="color:#066">4</span><span style="color:#660">/</span><span style="color:#000">lib<br>LIBXC_INC </span><span style="color:#660">=</span><span style="color:#000"> </span><span style="color:#080">/share/</span><span style="color:#000">home</span><span style="color:#660">/</span><span style="color:#000">tshjiang</span><span style="color:#660">/</span><span style="color:#000">intel_<wbr>cp2k</span><span style="color:#660">/</span><span style="color:#000">tools</span><span style="color:#660">/</span><span style="color:#000">toolchain</span><span style="color:#660">/</span><span style="color:#000">install</span><span style="color:#660">/</span><span style="color:#000">l<wbr>ibxc</span><span style="color:#660">-</span><span style="color:#066">2.2</span><span style="color:#660">.</span><span style="color:#066">2</span><span style="color:#660">/</span><span style="color:#000">include<br>LIBXC_LIB </span><span style="color:#660">=</span><span style="color:#000"> </span><span style="color:#080">/share/</span><span style="color:#000">home</span><span style="color:#660">/</span><span style="color:#000">tshjiang</span><span style="color:#660">/</span><span style="color:#000">intel_<wbr>cp2k</span><span style="color:#660">/</span><span style="color:#000">tools</span><span style="color:#660">/</span><span style="color:#000">toolchain</span><span style="color:#660">/</span><span style="color:#000">install</span><span style="color:#660">/</span><span style="color:#000">l<wbr>ibxc</span><span style="color:#660">-</span><span style="color:#066">2.2</span><span style="color:#660">.</span><span style="color:#066">2</span><span style="color:#660">/</span><span style="color:#000">lib<br>DFLAGS </span><span style="color:#660">=</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">D__MKL </span><span style="color:#660">-</span><span style="color:#000">D__FFTW3 </span><span style="color:#660">-</span><span style="color:#000">D__LIBINT </span><span style="color:#660">-</span><span style="color:#000">D__LIBXC2 </span><span style="color:#660">-</span><span style="color:#000">D__MPI_VERSION</span><span style="color:#660">=</span><span style="color:#066">3</span><span style="color:#660">\</span><span style="color:#000"><br> </span><span style="color:#660">-</span><span style="color:#000">D__LIBINT_MAX_AM</span><span style="color:#660">=</span><span style="color:#066">7</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">D__LIBDERIV_MAX_AM1</span><span style="color:#660">=</span><span style="color:#066">6</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">D__MAX_CONTR</span><span style="color:#660">=</span><span style="color:#066">4</span><span style="color:#660">\</span><span style="color:#000"><br> </span><span style="color:#660">-</span><span style="color:#000">D__parallel </span><span style="color:#660">-</span><span style="color:#000">D__SCALAPACK<br>CFLAGS </span><span style="color:#660">=</span><span style="color:#000"> $</span><span style="color:#660">(</span><span style="color:#000">DFLAGS</span><span style="color:#660">)</span><span style="color:#000"><br>CPPFLAGS </span><span style="color:#660">=</span><span style="color:#000"><br>MKLROOT </span><span style="color:#660">=</span><span style="color:#000"> </span><span style="color:#080">/soft/</span><span style="color:#000">intel_2017</span><span style="color:#660">/</span><span style="color:#000">compilers_<wbr>and_libraries_2017</span><span style="color:#660">/</span><span style="color:#000">linux</span><span style="color:#660">/</span><span style="color:#000">mkl<br>FCFLAGS </span><span style="color:#660">=</span><span style="color:#000"> $</span><span style="color:#660">(</span><span style="color:#000">DFLAGS</span><span style="color:#660">)</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">O2 </span><span style="color:#660">-</span><span style="color:#000">g </span><span style="color:#660">-</span><span style="color:#000">traceback </span><span style="color:#660">-</span><span style="color:#000">fpp </span><span style="color:#660">-</span><span style="color:#000">free </span><span style="color:#660">\</span><span style="color:#000"><br> </span><span style="color:#660">-</span><span style="color:#000">I$</span><span style="color:#660">(</span><span style="color:#000">MKLROOT</span><span style="color:#660">)/</span><span style="color:#000">include </span><span style="color:#660">-</span><span style="color:#000">I$</span><span style="color:#660">(</span><span style="color:#000">MKLROOT</span><span style="color:#660">)/</span><span style="color:#000">include</span><span style="color:#660">/</span><span style="color:#000">fftw </span><span style="color:#660">-</span><span style="color:#000">I$</span><span style="color:#660">(</span><span style="color:#000">LIBINT_INC</span><span style="color:#660">)</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">I$</span><span style="color:#660">(</span><span style="color:#000">LIBXC_INC</span><span style="color:#660">)</span><span style="color:#000"><br>FCFLAGS2 </span><span style="color:#660">=</span><span style="color:#000"> $</span><span style="color:#660">(</span><span style="color:#000">DFLAGS</span><span style="color:#660">)</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">O0 </span><span style="color:#660">-</span><span style="color:#000">g </span><span style="color:#660">-</span><span style="color:#000">traceback </span><span style="color:#660">-</span><span style="color:#000">fpp </span><span style="color:#660">-</span><span style="color:#000">free </span><span style="color:#660">\</span><span style="color:#000"><br> </span><span style="color:#660">-</span><span style="color:#000">I$</span><span style="color:#660">(</span><span style="color:#000">MKLROOT</span><span style="color:#660">)/</span><span style="color:#000">include </span><span style="color:#660">-</span><span style="color:#000">I$</span><span style="color:#660">(</span><span style="color:#000">MKLROOT</span><span style="color:#660">)/</span><span style="color:#000">include</span><span style="color:#660">/</span><span style="color:#000">fftw </span><span style="color:#660">-</span><span style="color:#000">I$</span><span style="color:#660">(</span><span style="color:#000">LIBINT_INC</span><span style="color:#660">)</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">I$</span><span style="color:#660">(</span><span style="color:#000">LIBXC_INC</span><span style="color:#660">)</span><span style="color:#000"><br>LDFLAGS </span><span style="color:#660">=</span><span style="color:#000"> $</span><span style="color:#660">(</span><span style="color:#000">FCFLAGS</span><span style="color:#660">)</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#008">static</span><span style="color:#660">-</span><span style="color:#000">intel<br>LDFLAGS_C </span><span style="color:#660">=</span><span style="color:#000"> $</span><span style="color:#660">(</span><span style="color:#000">FCFLAGS</span><span style="color:#660">)</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#008">static</span><span style="color:#660">-</span><span style="color:#000">intel </span><span style="color:#660">-</span><span style="color:#000">nofor_main<br>LIBS </span><span style="color:#660">=</span><span style="color:#000"> $</span><span style="color:#660">(</span><span style="color:#000">MKLROOT</span><span style="color:#660">)/</span><span style="color:#000">lib</span><span style="color:#660">/</span><span style="color:#000">intel64</span><span style="color:#660">/</span><span style="color:#000">libmkl_<wbr>scalapack_lp64</span><span style="color:#660">.</span><span style="color:#000">a </span><span style="color:#660">\</span><span style="color:#000"><br> </span><span style="color:#660">-</span><span style="color:#000">WI</span><span style="color:#660">,--</span><span style="color:#000">start</span><span style="color:#660">-</span><span style="color:#008">group</span><span style="color:#000"> $</span><span style="color:#660">(</span><span style="color:#000">MKLROOT</span><span style="color:#660">)/</span><span style="color:#000">lib</span><span style="color:#660">/</span><span style="color:#000">intel64</span><span style="color:#660">/</span><span style="color:#000">libmkl_<wbr>intel_lp64</span><span style="color:#660">.</span><span style="color:#000">a </span><span style="color:#660">\</span><span style="color:#000"><br> $</span><span style="color:#660">(</span><span style="color:#000">MKLROOT</span><span style="color:#660">)/</span><span style="color:#000">lib</span><span style="color:#660">/</span><span style="color:#000">intel64</span><span style="color:#660">/</span><span style="color:#000">libmkl<wbr>_sequential</span><span style="color:#660">.</span><span style="color:#000">a </span><span style="color:#660">\</span><span style="color:#000"><br> $</span><span style="color:#660">(</span><span style="color:#000">MKLROOT</span><span style="color:#660">)/</span><span style="color:#000">lib</span><span style="color:#660">/</span><span style="color:#000">intel64</span><span style="color:#660">/</span><span style="color:#000">libmkl<wbr>_core</span><span style="color:#660">.</span><span style="color:#000">a </span><span style="color:#660">\</span><span style="color:#000"><br> $</span><span style="color:#660">(</span><span style="color:#000">MKLROOT</span><span style="color:#660">)/</span><span style="color:#000">lib</span><span style="color:#660">/</span><span style="color:#000">intel64</span><span style="color:#660">/</span><span style="color:#000">libmkl<wbr>_blacs_intelmpi_lp64</span><span style="color:#660">.</span><span style="color:#000">a </span><span style="color:#660">-</span><span style="color:#606">Wl</span><span style="color:#660">,--</span><span style="color:#008">end</span><span style="color:#660">-</span><span style="color:#008">group</span><span style="color:#000"> </span><span style="color:#660">\</span><span style="color:#000"><br> </span><span style="color:#660">-</span><span style="color:#000">lpthread </span><span style="color:#660">-</span><span style="color:#000">lm </span><span style="color:#660">\</span><span style="color:#000"><br> </span><span style="color:#660">-</span><span style="color:#000">L$</span><span style="color:#660">(</span><span style="color:#000">LIBXC_LIB</span><span style="color:#660">)</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">lxcf90 </span><span style="color:#660">-</span><span style="color:#000">lxc </span><span style="color:#660">\</span><span style="color:#000"><br> $</span><span style="color:#660">(</span><span style="color:#000">LIBINT_LIB</span><span style="color:#660">)/</span><span style="color:#000">libderiv</span><span style="color:#660">.</span><span style="color:#000">a </span><span style="color:#660">\</span><span style="color:#000"><br> $</span><span style="color:#660">(</span><span style="color:#000">LIBINT_LIB</span><span style="color:#660">)/</span><span style="color:#000">libint</span><span style="color:#660">.</span><span style="color:#000">a </span><span style="color:#660">-</span><span style="color:#000">lstdc</span><span style="color:#660">++</span><span style="color:#000"><br>mp2_optimize_ri_basis</span><span style="color:#660">.</span><span style="color:#000">o</span><span style="color:#660">:</span><span style="color:#000">mp2_<wbr>optimize_ri_basis</span><span style="color:#660">.</span><span style="color:#000">F<br> $</span><span style="color:#660">(</span><span style="color:#000">FC</span><span style="color:#660">)</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">c $</span><span style="color:#660">(</span><span style="color:#000">FCFLAGS2</span><span style="color:#660">)</span><span style="color:#000"> $</span><span style="color:#660"><</span><span style="color:#000"><br>hfx_contraction_methods</span><span style="color:#660">.</span><span style="color:#000">o</span><span style="color:#660">:</span><span style="color:#000">hfx_<wbr>contraction_methods</span><span style="color:#660">.</span><span style="color:#000">F<br> $</span><span style="color:#660">(</span><span style="color:#000">FC</span><span style="color:#660">)</span><span style="color:#000"> </span><span style="color:#660">-</span><span style="color:#000">c $</span><span style="color:#660">(</span><span style="color:#000">FCFLAGS2</span><span style="color:#660">)</span><span style="color:#000"> $</span><span style="color:#660"><</span></div></code></div><div style="background-color:rgb(255,255,255)"><div><br></div></div><div style="background-color:rgb(255,255,255)"><font face="georgia, serif" size="4">Can anyone encounter the similar situation and give some advice. </font></div><div style="background-color:rgb(255,255,255)"><font face="georgia, serif" size="4">I will be appreciated for your suggestion.</font></div><div><font face="georgia, serif" size="4"><br></font></div><div><br></div><div><br></div></div><div><br></div><div><br></div></div></blockquote></div></div></div></blockquote></div></div></blockquote></div>