|
本帖最后由 乐平 于 2022-11-19 17:52 编辑
怀着试一试的心情在 CentOS 7 系统(GCC 已经升级到 9.3.0)编译了 CP2K 2022.2。编译过程比以往 CP2K 8.1, 9.1 顺利。
- rpath='/public1/apps/cp2k202202/tools/toolchain/install/sirius-7.3.1/lib' -L/public1/apps/cp2k202202/lib/local/psmp -o /public1/apps/cp2k202202/exe/local/cp2k.psmp cp2k.o -lcp2kstart -lcp2kmc -lcp2kswarm -lcp2kmotion -lcp2kthermostat -lcp2kemd -lcp2ktmc -lcp2kmain -lcp2kdbt -lcp2ktas -lcp2kdbm -lcp2kgrid -lcp2kgridcpu -lcp2kgridref -lcp2kgridcommon -ldbcsrarnoldi -ldbcsrx -lcp2kshg_int -lcp2keri_mme -lcp2kminimax -lcp2khfxbase -lcp2ksubsys -lcp2kxc -lcp2kao -lcp2kpw_env -lcp2kinput -lcp2kpw -lcp2kgpu -lcp2kfft -lcp2kfpga -lcp2kfm -lcp2kcommon -lcp2koffload -lcp2kmpiwrap -lcp2kbase -L/public1/apps/cp2k202202/lib/local/psmp/exts/dbcsr -ldbcsr -lsirius -lspla -lspfft -lsymspg -lhdf5 -lhdf5_hl -lz -lplumed -ldl -lstdc++ -lz -ldl -lgsl -lpexsi -lsuperlu_dist -lptscotchparmetis -lptscotch -lptscotcherr -lscotchmetis -lscotch -lscotcherr -lelpa_openmp -lcosma_prefixed_pxgemm -lcosma -lcosta -lxsmmf -lxsmm -ldl -lpthread -lxcf03 -lxc -lint2 -lmpi -L/public1/apps/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64 -Wl,-rpath=/public1/apps/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64 -lmkl_scalapack_lp64 -Wl,--start-group -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lmkl_blacs_openmpi_lp64 -Wl,--end-group -lpthread -lm -ldl -lvori -lstdc++ -lstdc++
- cd /public1/apps/cp2k202202/exe/local; ln -sf cp2k.psmp cp2k_shell.psmp
- cd /public1/apps/cp2k202202/exe/local; ln -sf cp2k.psmp cp2k.popt
复制代码- (base) [root@master cp2k202202]#
- (base) [root@master cp2k202202]# cd exe/local/
- (base) [root@master local]# ls
- cp2k.popt cp2k.sopt dbt_tas_unittest.psmp dumpdcd.psmp grid_miniapp.psmp libcp2k_unittest.psmp parallel_rng_types_unittest.psmp
- cp2k.psmp cp2k.ssmp dbt_tas_unittest.ssmp dumpdcd.ssmp grid_miniapp.ssmp libcp2k_unittest.ssmp parallel_rng_types_unittest.ssmp
- cp2k_shell.psmp dbm_miniapp.psmp dbt_unittest.psmp graph.psmp grid_unittest.psmp memory_utilities_unittest.psmp xyz2dcd.psmp
- cp2k_shell.ssmp dbm_miniapp.ssmp dbt_unittest.ssmp graph.ssmp grid_unittest.ssmp memory_utilities_unittest.ssmp xyz2dcd.ssmp
- (base) [root@master local]# la
- bash: la: command not found...
- (base) [root@master local]# ls -lhtr
- total 2.0G
- -rwxr-xr-x 1 root root 2.1M Nov 18 21:08 graph.ssmp
- -rwxr-xr-x 1 root root 121K Nov 18 21:08 memory_utilities_unittest.ssmp
- -rwxr-xr-x 1 root root 1.2M Nov 18 21:08 dbm_miniapp.ssmp
- -rwxr-xr-x 1 root root 3.2M Nov 18 21:08 parallel_rng_types_unittest.ssmp
- -rwxr-xr-x 1 root root 8.7M Nov 18 21:08 dbt_tas_unittest.ssmp
- -rwxr-xr-x 1 root root 2.1M Nov 18 21:08 graph.psmp
- -rwxr-xr-x 1 root root 121K Nov 18 21:08 memory_utilities_unittest.psmp
- -rwxr-xr-x 1 root root 1.2M Nov 18 21:08 dbm_miniapp.psmp
- -rwxr-xr-x 1 root root 3.8M Nov 18 21:08 parallel_rng_types_unittest.psmp
- -rwxr-xr-x 1 root root 9.7M Nov 18 21:08 dbt_tas_unittest.psmp
- -rwxr-xr-x 1 root root 11M Nov 18 21:09 dbt_unittest.ssmp
- -rwxr-xr-x 1 root root 12M Nov 18 21:09 dbt_unittest.psmp
- -rwxr-xr-x 1 root root 3.5M Nov 18 21:09 grid_miniapp.ssmp
- -rwxr-xr-x 1 root root 3.5M Nov 18 21:09 grid_unittest.ssmp
- -rwxr-xr-x 1 root root 3.5M Nov 18 21:09 grid_unittest.psmp
- -rwxr-xr-x 1 root root 3.5M Nov 18 21:09 grid_miniapp.psmp
- -rwxr-xr-x 1 root root 997K Nov 18 21:16 dumpdcd.ssmp
- -rwxr-xr-x 1 root root 941K Nov 18 21:16 xyz2dcd.ssmp
- -rwxr-xr-x 1 root root 293M Nov 18 21:16 libcp2k_unittest.ssmp
- -rwxr-xr-x 1 root root 293M Nov 18 21:16 cp2k.ssmp
- lrwxrwxrwx 1 root root 9 Nov 18 21:16 cp2k.sopt -> cp2k.ssmp
- lrwxrwxrwx 1 root root 9 Nov 18 21:16 cp2k_shell.ssmp -> cp2k.ssmp
- -rwxr-xr-x 1 root root 997K Nov 18 21:16 dumpdcd.psmp
- -rwxr-xr-x 1 root root 941K Nov 18 21:16 xyz2dcd.psmp
- -rwxr-xr-x 1 root root 668M Nov 18 21:16 libcp2k_unittest.psmp
- -rwxr-xr-x 1 root root 668M Nov 18 21:16 cp2k.psmp
- lrwxrwxrwx 1 root root 9 Nov 18 21:16 cp2k_shell.psmp -> cp2k.psmp
- lrwxrwxrwx 1 root root 9 Nov 18 21:16 cp2k.popt -> cp2k.psmp
- (base) [root@master local]#
复制代码
用 make -j 8 ARCH=local VERSION="ssmp psmp" test 命令测试的时候却遇到问题…… ssmp 顺利通过所有测试,如下
- ------------------------------- Errors ---------------------------------
- ------------------------------- Timings --------------------------------
- Plot: name="timings", title="Timing Distribution", ylabel="time [s]"
- PlotPoint: name="100th_percentile", plot="timings", label="100th %ile", y=55.89, yerr=0.0
- PlotPoint: name="99th_percentile", plot="timings", label="99th %ile", y=23.38, yerr=0.0
- PlotPoint: name="98th_percentile", plot="timings", label="98th %ile", y=16.99, yerr=0.0
- PlotPoint: name="95th_percentile", plot="timings", label="95th %ile", y=10.95, yerr=0.0
- PlotPoint: name="90th_percentile", plot="timings", label="90th %ile", y=8.01, yerr=0.0
- PlotPoint: name="80th_percentile", plot="timings", label="80th %ile", y=4.84, yerr=0.0
- ------------------------------- Summary --------------------------------
- Number of FAILED tests 0
- Number of WRONG tests 0
- Number of CORRECT tests 3719
- Total number of tests 3719
- Summary: correct: 3719 / 3719; 24min
- Status: OK
- *************************** Testing ended *****************************
- [huan[url=home.php?mod=space&uid=37877]@Master[/url] cp2k202202]#
复制代码
但是,smp 却无法运行,不知道为何。
- [huan@master cp2k202202]$ make -j 8 ARCH=local VERSION=psmp test
- Discovering programs ...
- make -C /public2/huan/cp2k202202/exts/dbcsr -f /public2/huan/cp2k202202/exts/build_dbcsr/Makefile \
- ARCHFILE=/public2/huan/cp2k202202/arch/local.psmp \
- LIBDIR=/public2/huan/cp2k202202/lib/local/psmp/exts/dbcsr \
- OBJDIR=/public2/huan/cp2k202202/obj/local/psmp/exts/dbcsr \
- USE_ACCEL="" \
- ACC="" \
- ACCFLAGS=""
- Removing stale archives for psmp ...
- Removing stale archives ...
- Resolving dependencies ...
- Resolving dependencies for psmp ...
- echo git:a95ec40 > "/public2/huan/cp2k202202/obj/git-ref.tmp"
- --------------------------- GIT ------------------------------------------
- CommitSHA: <N/A>
- --------------------------- Resource limits ------------------------------
- RESOURCE DESCRIPTION SOFT HARD UNITS
- AS address space limit unlimited unlimited bytes
- CORE max core file size 0 unlimited blocks
- CPU CPU time unlimited unlimited seconds
- DATA max data size unlimited unlimited bytes
- FSIZE max file size unlimited unlimited blocks
- LOCKS max number of file locks held unlimited unlimited
- MEMLOCK max locked-in-memory address space unlimited unlimited bytes
- MSGQUEUE max bytes in POSIX mqueues 819200 819200 bytes
- NICE max nice prio allowed to raise 0 0
- NOFILE max number of open files 1024 4096
- NPROC max number of processes 4096 257124
- RSS max resident set size unlimited unlimited pages
- RTPRIO max real-time priority 0 0
- RTTIME timeout for real-time tasks unlimited unlimited microsecs
- SIGPENDING max number of pending signals 257124 257124
- STACK max stack size unlimited unlimited bytes
- --------------------------- SELinux --------------------------------------
- SELinux is installed and is Disabled
- --------------------------- ARCH-file ------------------------------------
- CC = /public2/huan/cp2k202202/tools/toolchain/install/openmpi-4.1.1/bin/mpicc
- CXX = /public2/huan/cp2k202202/tools/toolchain/install/openmpi-4.1.1/bin/mpicxx
- AR = ar -r
- FC = /public2/huan/cp2k202202/tools/toolchain/install/openmpi-4.1.1/bin/mpif90
- LD = /public2/huan/cp2k202202/tools/toolchain/install/openmpi-4.1.1/bin/mpif90
- #
- DFLAGS = -D__LIBXSMM -D__parallel -D__MKL -D__FFTW3 -D__SCALAPACK -D__LIBINT -D__LIBXC -D__COSMA -D__ELPA -D__LIBPEXSI -D__GSL -D__PLUMED2 -D__HDF5 -D__SPGLIB -D__LIBVORI -D__SPFFT -D__SPLA -D__SIRIUS
- #
- WFLAGS = -Werror=aliasing -Werror=ampersand -Werror=c-binding-type -Werror=intrinsic-shadow -Werror=intrinsics-std -Werror=line-truncation -Werror=tabs -Werror=target-lifetime -Werror=underflow -Werror=unused-but-set-variable -Werror=unused-variable -Werror=unused-dummy-argument -Werror=conversion -Werror=zerotrip -Wno-maybe-uninitialized -Wuninitialized -Wuse-without-only
- #
- FCDEBFLAGS = -fbacktrace -ffree-form -fimplicit-none -std=f2008
- CFLAGS = -fno-omit-frame-pointer -fopenmp -g -march=native -mtune=native -O3 -funroll-loops $(PROFOPT) -I'/public2/huan/cp2k202202/tools/toolchain/install/openmpi-4.1.1/include' -m64 -I/public1/apps/intel/compilers_and_libraries_2018.1.163/linux/mkl/include -I/public1/apps/intel/compilers_and_libraries_2018.1.163/linux/mkl/include/fftw -I'/public2/huan/cp2k202202/tools/toolchain/install/libint-v2.6.0-cp2k-lmax-5/include' -I'/public2/huan/cp2k202202/tools/toolchain/install/libxc-5.2.3/include' -I'/public2/huan/cp2k202202/tools/toolchain/install/libxsmm-1.17/include' -I'/public2/huan/cp2k202202/tools/toolchain/install/COSMA-2.5.1/include' -I'/public2/huan/cp2k202202/tools/toolchain/install/elpa-2021.11.002/cpu/include/elpa_openmp-2021.11.002/modules' -I'/public2/huan/cp2k202202/tools/toolchain/install/elpa-2021.11.002/cpu/include/elpa_openmp-2021.11.002/elpa' -I'/public2/huan/cp2k202202/tools/toolchain/install/scotch-6.0.0/include' -I'/public2/huan/cp2k202202/tools/toolchain/install/superlu_dist-6.1.0/include' -I'/public2/huan/cp2k202202/tools/toolchain/install/pexsi-1.2.0/include' -I'/public2/huan/cp2k202202/tools/toolchain/install/gsl-2.7/include' -I/public2/huan/cp2k202202/tools/toolchain/install/hdf5-1.12.0/include -I/public2/huan/cp2k202202/tools/toolchain/install/spglib-1.16.2/include -I'/public2/huan/cp2k202202/tools/toolchain/install/SpFFT-1.0.6/include' -I'/public2/huan/cp2k202202/tools/toolchain/install/SpLA-1.5.4/include/spla' -I/public2/huan/cp2k202202/tools/toolchain/install/sirius-7.3.1/include -std=c11 -Wall -Wextra -Werror -Wno-vla-parameter -Wno-deprecated-declarations $(DFLAGS)
- FCFLAGS = -fno-omit-frame-pointer -fopenmp -g -march=native -mtune=native -O3 -funroll-loops $(PROFOPT) -I'/public2/huan/cp2k202202/tools/toolchain/install/openmpi-4.1.1/include' -m64 -I/public1/apps/intel/compilers_and_libraries_2018.1.163/linux/mkl/include -I/public1/apps/intel/compilers_and_libraries_2018.1.163/linux/mkl/include/fftw -I'/public2/huan/cp2k202202/tools/toolchain/install/libint-v2.6.0-cp2k-lmax-5/include' -I'/public2/huan/cp2k202202/tools/toolchain/install/libxc-5.2.3/include' -I'/public2/huan/cp2k202202/tools/toolchain/install/libxsmm-1.17/include' -I'/public2/huan/cp2k202202/tools/toolchain/install/COSMA-2.5.1/include' -I'/public2/huan/cp2k202202/tools/toolchain/install/elpa-2021.11.002/cpu/include/elpa_openmp-2021.11.002/modules' -I'/public2/huan/cp2k202202/tools/toolchain/install/elpa-2021.11.002/cpu/include/elpa_openmp-2021.11.002/elpa' -I'/public2/huan/cp2k202202/tools/toolchain/install/scotch-6.0.0/include' -I'/public2/huan/cp2k202202/tools/toolchain/install/superlu_dist-6.1.0/include' -I'/public2/huan/cp2k202202/tools/toolchain/install/pexsi-1.2.0/include' -I'/public2/huan/cp2k202202/tools/toolchain/install/gsl-2.7/include' -I/public2/huan/cp2k202202/tools/toolchain/install/hdf5-1.12.0/include -I/public2/huan/cp2k202202/tools/toolchain/install/spglib-1.16.2/include -I'/public2/huan/cp2k202202/tools/toolchain/install/SpFFT-1.0.6/include' -I'/public2/huan/cp2k202202/tools/toolchain/install/SpLA-1.5.4/include/spla' -I/public2/huan/cp2k202202/tools/toolchain/install/sirius-7.3.1/include $(FCDEBFLAGS) $(WFLAGS) $(DFLAGS)
- CXXFLAGS = -O2 -fPIC -fno-omit-frame-pointer -fopenmp -g -march=native -mtune=native --std=c++11 $(DFLAGS) -Wno-deprecated-declarations
- #
- LDFLAGS = $(FCFLAGS) -Wl,--enable-new-dtags -L'/public2/huan/cp2k202202/tools/toolchain/install/openmpi-4.1.1/lib' -Wl,-rpath='/public2/huan/cp2k202202/tools/toolchain/install/openmpi-4.1.1/lib' -L'/public2/huan/cp2k202202/tools/toolchain/install/libint-v2.6.0-cp2k-lmax-5/lib' -L'/public2/huan/cp2k202202/tools/toolchain/install/libxc-5.2.3/lib' -Wl,-rpath='/public2/huan/cp2k202202/tools/toolchain/install/libxc-5.2.3/lib' -L'/public2/huan/cp2k202202/tools/toolchain/install/libxsmm-1.17/lib' -Wl,-rpath='/public2/huan/cp2k202202/tools/toolchain/install/libxsmm-1.17/lib' -L'/public2/huan/cp2k202202/tools/toolchain/install/COSMA-2.5.1/lib' -Wl,-rpath='/public2/huan/cp2k202202/tools/toolchain/install/COSMA-2.5.1/lib' -L'/public2/huan/cp2k202202/tools/toolchain/install/elpa-2021.11.002/cpu/lib' -Wl,-rpath='/public2/huan/cp2k202202/tools/toolchain/install/elpa-2021.11.002/cpu/lib' -L'/public2/huan/cp2k202202/tools/toolchain/install/scotch-6.0.0/lib' -Wl,-rpath='/public2/huan/cp2k202202/tools/toolchain/install/scotch-6.0.0/lib' -L'/public2/huan/cp2k202202/tools/toolchain/install/superlu_dist-6.1.0/lib' -Wl,-rpath='/public2/huan/cp2k202202/tools/toolchain/install/superlu_dist-6.1.0/lib' -L'/public2/huan/cp2k202202/tools/toolchain/install/pexsi-1.2.0/lib' -Wl,-rpath='/public2/huan/cp2k202202/tools/toolchain/install/pexsi-1.2.0/lib' -L'/public2/huan/cp2k202202/tools/toolchain/install/gsl-2.7/lib' -Wl,-rpath='/public2/huan/cp2k202202/tools/toolchain/install/gsl-2.7/lib' -L'/public2/huan/cp2k202202/tools/toolchain/install/plumed-2.8.0/lib' -Wl,-rpath='/public2/huan/cp2k202202/tools/toolchain/install/plumed-2.8.0/lib' -L'/public2/huan/cp2k202202/tools/toolchain/install/hdf5-1.12.0/lib' -Wl,-rpath='/public2/huan/cp2k202202/tools/toolchain/install/hdf5-1.12.0/lib' -L'/public2/huan/cp2k202202/tools/toolchain/install/spglib-1.16.2/lib' -Wl,-rpath='/public2/huan/cp2k202202/tools/toolchain/install/spglib-1.16.2/lib' -L'/public2/huan/cp2k202202/tools/toolchain/install/libvori-220621/lib' -Wl,-rpath='/public2/huan/cp2k202202/tools/toolchain/install/libvori-220621/lib' -L'/public2/huan/cp2k202202/tools/toolchain/install/SpFFT-1.0.6/lib' -Wl,-rpath='/public2/huan/cp2k202202/tools/toolchain/install/SpFFT-1.0.6/lib' -L'/public2/huan/cp2k202202/tools/toolchain/install/sirius-7.3.1/lib' -Wl,-rpath='/public2/huan/cp2k202202/tools/toolchain/install/sirius-7.3.1/lib'
- LIBS = -lsirius -lspla -lspfft -lsymspg -lhdf5 -lhdf5_hl -lz -lplumed -ldl -lstdc++ -lz -ldl -lgsl -lpexsi -lsuperlu_dist -lptscotchparmetis -lptscotch -lptscotcherr -lscotchmetis -lscotch -lscotcherr -lelpa_openmp -lcosma_prefixed_pxgemm -lcosma -lcosta -lxsmmf -lxsmm -ldl -lpthread -lxcf03 -lxc -lint2 -lmpi -L/public1/apps/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64 -Wl,-rpath=/public1/apps/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64 -lmkl_scalapack_lp64 -Wl,--start-group -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lmkl_blacs_openmpi_lp64 -Wl,--end-group -lpthread -lm -ldl -lvori -lstdc++ -lstdc++
- #
- FYPPFLAGS = -n --line-marker-format=gfortran5
- -------------------------- Build-Tools -----------------------------------
- make[3]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
- =========== FC (psmp) ===========
- /public2/huan/cp2k202202/tools/toolchain/install/openmpi-4.1.1/bin/mpif90 --version
- GNU Fortran (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2)
- Copyright (C) 2019 Free Software Foundation, Inc.
- This is free software; see the source for copying conditions. There is NO
- warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- =========== CC (psmp) ===========
- /public2/huan/cp2k202202/tools/toolchain/install/openmpi-4.1.1/bin/mpicc --version
- gcc (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2)
- Copyright (C) 2019 Free Software Foundation, Inc.
- This is free software; see the source for copying conditions. There is NO
- warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- =========== AR (psmp) ===========
- ar V
- GNU ar version 2.32-16.el7
- Copyright (C) 2019 Free Software Foundation, Inc.
- This program is free software; you may redistribute it under the terms of
- the GNU General Public License version 3 or (at your option) any later version.
- This program has absolutely no warranty.
- ========== Make (psmp) ==========
- make --version
- GNU Make 3.82
- Built for x86_64-redhat-linux-gnu
- Copyright (C) 2010 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law.
- ========= Python (psmp) =========
- /usr/bin/env python3 --version
- Python 3.8.7
- ----------------------- External Modules ---------------------------------
- make[3]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
- DBCSR Version: 2.3.0 (2022-06-26)
- ---------------------------- Modules -------------------------------------
- No Modulefiles Currently Loaded.
- *************************** Testing started ****************************
- --------------------------------------------------------------------------
- Primary job terminated normally, but 1 process returned
- a non-zero exit code. Per user-direction, the job has been aborted.
- --------------------------------------------------------------------------
- --------------------------------------------------------------------------
- mpiexec noticed that process rank 1 with PID 0 on node master exited on signal 11 (Segmentation fault).
- --------------------------------------------------------------------------
- Could not parse feature flags.
- make[3]: *** [test] Error 1
- make[2]: *** [test] Error 2
- make[1]: *** [psmp] Error 2
- make: *** [test] Error 2
- [huan@master cp2k202202]$
- [huan@master cp2k202202]$
复制代码
用 H2O-32.inp 作为输入文件测试,也是如此报错
- --------------------------------------------------------------------------
- Primary job terminated normally, but 1 process returned
- a non-zero exit code. Per user-direction, the job has been aborted.
- --------------------------------------------------------------------------
- --------------------------------------------------------------------------
- mpirun noticed that process rank 1 with PID 0 on node node05 exited on signal 11 (Segmentation fault).
- --------------------------------------------------------------------------
复制代码
不清楚原因是什么……
|
|