<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I had also tried the latest development version with  ELPA 2019.05.001, and had the same problem. I rolled back to 6.2 since I did not know the source of the problem <div class="">at the time. I think it is key to add -fopenmp to the flags evens if some flags are already present.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Ron</div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">---<br class="">Ron Cohen<br class=""><a href="mailto:reco...@gmail.com" class="">reco...@gmail.com</a><br class="">skypename: ronaldcohen</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">twitter: @recohen3<br class=""><div class=""><br class=""></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Aug 17, 2019, at 1:35 PM, Ole Schütt <<a href="mailto:o...@schuett.name" class="">o...@schuett.name</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Ron,<br class=""><br class="">thanks for investigating! A couple days ago we switch the cp2k developer branch to ELPA 2019.05.001. In our nightly tests everything works fine [1]. Hence, I'm wondering if the problem got resolved or our tests are missing it?<br class=""><br class="">-Ole<br class=""><br class="">[1] <a href="https://dashboard.cp2k.org/archive/current-psmp/index.html" class="">https://dashboard.cp2k.org/archive/current-psmp/index.html</a><br class=""><br class="">On 2019-08-16 14:16, Ronald Cohen wrote:<br class=""><blockquote type="cite" class="">I got it working —the problem was elpa after all. Doing enable-omp<br class="">in the configure was not enough. I also needed to add -fopenmp to the<br class="">FLAGS. Now psmp works<br class="">fine with threads.<br class="">Ron<br class="">---<br class="">Ronald Cohen<br class="">Extreme Materials Initiative<br class="">Geophysical Laboratory<br class="">Carnegie Institution<br class="">5251 Broad Branch Rd., N.W.<br class="">Washington, D.C. 20015<br class="">rco...@<a href="http://carnegiescience.edu" class="">carnegiescience.edu</a><br class="">office: 202-478-8937<br class="">skype: ronaldcohen<br class="">twitter: @recohen3<br class=""><blockquote type="cite" class="">On Aug 15, 2019, at 3:50 PM, Ronald Cohen <reco...@<a href="http://gmail.com" class="">gmail.com</a>> wrote:<br class="">This is for the release 6.1 tarball .The error occurs in<br class="">dbcsr/dist/dbcsr_dist_method. I have rebuilt many times using<br class="">different option but always get this<br class="">with the local.psmp arch. The code riuns fine with<br class="">export OMP_NUM_THREADS=1<br class="">but fails for >1 with:<br class=""></blockquote>*******************************************************************************<br class=""><blockquote type="cite" class="">*   ___<br class="">*<br class="">*  /   \<br class="">*<br class="">* [ABORT]<br class="">*<br class="">*  \___/                        Thread number has changed<br class="">*<br class="">*    |<br class="">*<br class="">*  O/|<br class="">*<br class="">* /| |<br class="">*<br class="">* / \<br class="">dbcsr/dist/dbcsr_dist_methods.F:515 *<br class=""></blockquote>*******************************************************************************<br class=""><blockquote type="cite" class="">===== Routine Calling Stack =====<br class="">10 dbcsr_create_new<br class="">9 build_overlap_matrix<br class="">8 build_core_hamiltonian_matrix<br class="">7 qs_energies_init_hamiltonians<br class="">6 qs_energies<br class="">5 qs_forces<br class="">4 cp_eval_at<br class="">3 geoopt_bfgs<br class="">2 cp_geo_opt<br class="">1 CP2K<br class="">It fails whether I use elpa or not.<br class="">My toolchain command is:<br class="">./install_cp2k_toolchain.sh --with-cmake=install<br class="">--with-libint=install  --with-libxc=install<br class="">--with-elpa=/home/rcohen/gnu --enable-cuda=no --enable-omp=yes<br class="">--with-gcc=install --with-binutils=install<br class="">and local.psmp is:<br class="">C          =<br class=""></blockquote>/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/gcc-7.3.0/bin/gcc<br class=""><blockquote type="cite" class="">CXX         =<br class=""></blockquote>/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/gcc-7.3.0/bin/g++<br class=""><blockquote type="cite" class="">CPP         =<br class="">AR          = ar -r<br class="">FC          = mpif90<br class="">LD          = mpif90<br class="">#<br class="">DFLAGS      = -D__LIBXSMM  -D__parallel  -D__FFTW3  -D__LIBINT<br class="">-D__LIBINT_MAX_AM=6 -D__LIBDERIV_MAX_AM1=5 -D__LIBXC -D__SCALAPACK<br class="">-D__ELPA=201705<br class="">#<br class="">WFLAGS      = -Werror=aliasing -Werror=ampersand<br class="">-Werror=c-binding-type -Werror=intrinsic-shadow<br class="">-Werror=intrinsics-std -Werror=line-truncation -Werror=tabs<br class="">-Werror=realloc-lhs-all -Werror=target-lifetime -Werror=underflow<br class="">-Werror=unused-but-set-variable -Werror=unused-variable<br class="">-Werror=unused-dummy-argument -Werror=conversion -Werror=zerotrip<br class="">-Werror=uninitialized -Wno-maybe-uninitialized -Wuse-without-only<br class="">#<br class="">FCDEBFLAGS  = -ffree-form -std=f2003 -fimplicit-none<br class="">CFLAGS      = -march=knl -fno-omit-frame-pointer -g  -O3<br class="">-funroll-loops -ffast-math $(PROFOPT) -fopenmp<br class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/mpich-3.2.1/include'<br class=""><blockquote type="cite" class="">-m64<br class=""></blockquote>-I/mnt/beegfs/intel/compilers_and_libraries_2019.4.243/linux/mkl/include<br class=""><blockquote type="cite" class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/fftw-3.3.7/include'<br class=""><blockquote type="cite" class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libint-1.1.6/include'<br class=""><blockquote type="cite" class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libxc-4.0.3/include'<br class=""><blockquote type="cite" class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libxsmm-1.9.0/include'<br class=""><blockquote type="cite" class="">-I'/home/rcohen/gnu/include/elpa_openmp-2018.11.001/modules'<br class="">-I'/home/rcohen/gnu/include/elpa_openmp-2018.11.001/elpa' $(DFLAGS)<br class="">FCFLAGS     = -march=knl -fno-omit-frame-pointer -g  -O3<br class="">-funroll-loops -ffast-math $(PROFOPT) -fopenmp<br class="">-I${MKLROOT}/include/intel64/lp64 -m64 -I${MKLROOT}/include<br class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/mpich-3.2.1/include'<br class=""><blockquote type="cite" class="">-m64<br class=""></blockquote>-I/mnt/beegfs/intel/compilers_and_libraries_2019.4.243/linux/mkl/include<br class=""><blockquote type="cite" class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/fftw-3.3.7/include'<br class=""><blockquote type="cite" class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libint-1.1.6/include'<br class=""><blockquote type="cite" class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libxc-4.0.3/include'<br class=""><blockquote type="cite" class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libxsmm-1.9.0/include'<br class=""><blockquote type="cite" class="">-I'/home/rcohen/gnu/include/elpa_openmp2018.11.001/elpa''<br class="">FCDEBFLAGS  = -ffree-form -std=f2003 -fimplicit-none<br class="">CFLAGS      = -march=knl -fno-omit-frame-pointer -g  -O3<br class="">-funroll-loops -ffast-math $(PROFOPT) -fopenmp<br class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/mpich-3.2.1/include'<br class=""><blockquote type="cite" class="">-m64<br class=""></blockquote>-I/mnt/beegfs/intel/compilers_and_libraries_2019.4.243/linux/mkl/include<br class=""><blockquote type="cite" class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/fftw-3.3.7/include'<br class=""><blockquote type="cite" class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libint-1.1.6/include'<br class=""><blockquote type="cite" class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libxc-4.0.3/include'<br class=""><blockquote type="cite" class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libxsmm-1.9.0/include'<br class=""><blockquote type="cite" class="">-I'/home/rcohen/gnu/include/elpa_openmp-2018.11.001/modules'<br class="">-I'/home/rcohen/gnu/include/elpa_openmp-2018.11.001/elpa' $(DFLAGS)<br class="">FCFLAGS     = -march=knl -fno-omit-frame-pointer -g  -O3<br class="">-funroll-loops -ffast-math $(PROFOPT) -fopenmp<br class="">-I${MKLROOT}/include/intel64/lp64 -m64 -I${MKLROOT}/include<br class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/mpich-3.2.1/include'<br class=""><blockquote type="cite" class="">-m64<br class=""></blockquote>-I/mnt/beegfs/intel/compilers_and_libraries_2019.4.243/linux/mkl/include<br class=""><blockquote type="cite" class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/fftw-3.3.7/include'<br class=""><blockquote type="cite" class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libint-1.1.6/include'<br class=""><blockquote type="cite" class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libxc-4.0.3/include'<br class=""><blockquote type="cite" class=""></blockquote>-I'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libxsmm-1.9.0/include'<br class=""><blockquote type="cite" class="">-I'/home/rcohen/gnu/include/elpa_openmp-2018.11.001/modules'<br class="">-I'/home/rcohen/gnu/include/elpa_openmp-2018.11.001/elpa'<br class="">$(FCDEBFLAGS) $(WFLAGS) $(DFLAGS)<br class="">#<br class="">LDFLAGS     = $(FCFLAGS) -Wl,--enable-new-dtags<br class=""></blockquote>-L'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/mpich-3.2.1/lib'<br class=""><blockquote type="cite" class=""></blockquote>-Wl,-rpath='/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/mpich-3.2.1/lib'<br class=""><blockquote type="cite" class=""></blockquote>-L'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/fftw-3.3.7/lib'<br class=""><blockquote type="cite" class=""></blockquote>-Wl,-rpath='/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/fftw-3.3.7/lib'<br class=""><blockquote type="cite" class=""></blockquote>-L'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libint-1.1.6/lib'<br class=""><blockquote type="cite" class=""></blockquote>-Wl,-rpath='/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libint-1.1.6/lib'<br class=""><blockquote type="cite" class=""></blockquote>-L'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libxc-4.0.3/lib'<br class=""><blockquote type="cite" class=""></blockquote>-Wl,-rpath='/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libxc-4.0.3/lib'<br class=""><blockquote type="cite" class=""></blockquote>-L'/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libxsmm-1.9.0/lib'<br class=""><blockquote type="cite" class=""></blockquote>-Wl,-rpath='/home/rcohen/CP2K/cp2k-6.1.0/tools/toolchain/install/libxsmm-1.9.0/lib'<br class=""><blockquote type="cite" class="">-Wl,-rpath='/home/rcohen/gnu/lib'<br class="">LIBS        = -lelpa_openmp  -lxsmmf -lxsmm -ldl -lpthread -lxcf03<br class="">-lxc -lderiv -lint -lfftw3 -lfftw3_omp  -lmpi -lmpicxx<br class="">${MKLROOT}/lib/intel64/libmkl_blas95_lp64.a<br class="">${MKLROOT}/lib/intel64/libmkl_lapack95_lp64.a<br class="">${MKLROOT}/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group<br class="">${MKLROOT}/lib/intel64/libmkl_gf_lp64.a<br class="">${MKLROOT}/lib/intel64/libmkl_gnu_thread.a<br class="">${MKLROOT}/lib/intel64/libmkl_core.a<br class="">${MKLROOT}/lib/intel64/libmkl_blacs_intelmpi_lp64.a -Wl,--end-group<br class="">-lgomp -lpthread -lm -ldl -lstdc++<br class="">I had cp2k built fine but my system migrated to centos and I had to<br class="">rebuild. I had a similar problem in the past trying to use the intel<br class="">toolchain.<br class="">Thanks for help!<br class="">Sincerely,<br class="">Ron<br class="">--<br class="">You received this message because you are subscribed to a topic in<br class="">the Google Groups "cp2k" group.<br class="">To unsubscribe from this topic, visit<br class=""><a href="https://groups.google.com/d/topic/cp2k/vrgNXE8L0F4/unsubscribe" class="">https://groups.google.com/d/topic/cp2k/vrgNXE8L0F4/unsubscribe</a>.<br class="">To unsubscribe from this group and all its topics, send an email to<br class="">cp...@<a href="http://googlegroups.com" class="">googlegroups.com</a>.<br class="">To view this discussion on the web visit<br class=""></blockquote><a href="https://groups.google.com/d/msgid/cp2k/cd7bcd1f-4250-4528-aab7-ff5dd656417d%40googlegroups.com" class="">https://groups.google.com/d/msgid/cp2k/cd7bcd1f-4250-4528-aab7-ff5dd656417d%40googlegroups.com</a><br class=""><blockquote type="cite" class="">[1].<br class=""></blockquote>Links:<br class="">------<br class="">[1]<br class="">https://groups.google.com/d/msgid/cp2k/cd7bcd1f-4250-4528-aab7-ff5dd656417d%40googlegroups.com?utm_medium=email&amp;utm_source=footer<br class="">_______________________________________________<br class="">CP2K-user mailing list<br class="">CP2K...@lists.cp2k.org<br class="">https://lists.cp2k.org/listinfo/cp2k-user<br class=""></blockquote><br class="">-- <br class="">You received this message because you are subscribed to a topic in the Google Groups "cp2k" group.<br class="">To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/cp2k/vrgNXE8L0F4/unsubscribe" class="">https://groups.google.com/d/topic/cp2k/vrgNXE8L0F4/unsubscribe</a>.<br class="">To unsubscribe from this group and all its topics, send an email to <a href="mailto:cp...@googlegroups.com" class="">cp...@googlegroups.com</a>.<br class="">To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/8adac8e11acb4da4dd764763acdc813f%40schuett.name" class="">https://groups.google.com/d/msgid/cp2k/8adac8e11acb4da4dd764763acdc813f%40schuett.name</a>.<br class=""></div></div></blockquote></div><br class=""></div></body></html>