GROMACS version: 2022.5
GROMACS modification: No
CP2K Installation:
./install_cp2k_toolchain.sh --enable-cuda=no --libint-lmax=5 --with-sirius=no --with-mkl=system --with-openblas=no --with-scalapack=no --with-cosma=no --with-spla=no --with-spfft=no --with-hdf5=no --with-spglib=no --with-libvdwxc=no --with-plumed=no
After this, I end up with several arch files. I am just listing the content of the local.psmp file here.
The local.psmp has the following contents:
CC = /home/Packages/intel/oneapi/mpi/2021.5.1/bin/mpiicc
CXX = /home/Packages/intel/oneapi/mpi/2021.5.1/bin/mpiicpc
AR = ar -r
FC = /home/Packages/intel/oneapi/mpi/2021.5.1/bin/mpiifort
LD = /home/Packages/intel/oneapi/mpi/2021.5.1/bin/mpiifort
DFLAGS = -D__LIBXSMM -D__parallel -D__MKL -D__FFTW3 -D__SCALAPACK -D__LIBINT -D__LIBXC -D__ELPA -D__LIBVORI
WFLAGS =
FCDEBFLAGS =
CFLAGS = -fopenmp -fp-model precise -g -nofor-main -qopenmp-simd -traceback -wd279 -xHost (PROFOPT) -m64 -I/home/Packages/intel/oneapi/mkl/2022.0.2/include -I/home/Packages/intel/oneapi/mkl/2022.0.2/include/fftw -I'/home/Packages/cp2k_2023.1/tools/toolchain/install/libint-v2.6.0-cp2k-lmax-5/include' -I'/home/Packages/cp2k_2023.1/tools/toolchain/install/libxc-6.0.0/include' -I'/home/Packages/cp2k_2023.1/tools/toolchain/install/libxsmm-1.17/include' -I'/home/Packages/cp2k_2023.1/tools/toolchain/install/elpa-2022.11.001/cpu/include/elpa_openmp-2022.11.001/modules' -I'/home/Packages/cp2k_2023.1/tools/toolchain/install/elpa-2022.11.001/cpu/include/elpa_openmp-2022.11.001/elpa' -std=c11 -Wall -Wextra -Werror -Wno-vla-parameter -Wno-deprecated-declarations (DFLAGS)
FCFLAGS = -fopenmp -fp-model precise -g -nofor-main -qopenmp-simd -traceback -wd279 -xHost (PROFOPT) -m64 -I/home/Packages/intel/oneapi/mkl/2022.0.2/include -I/home/Packages/intel/oneapi/mkl/2022.0.2/include/fftw -I'/home/Packages/cp2k_2023.1/tools/toolchain/install/libint-v2.6.0-cp2k-lmax-5/include' -I'/home/Packages/cp2k_2023.1/tools/toolchain/install/libxc-6.0.0/include' -I'/home/Packages/cp2k_2023.1/tools/toolchain/install/libxsmm-1.17/include' -I'/home/Packages/cp2k_2023.1/tools/toolchain/install/elpa-2022.11.001/cpu/include/elpa_openmp-2022.11.001/modules' -I'/home/Packages/cp2k_2023.1/tools/toolchain/install/elpa-2022.11.001/cpu/include/elpa_openmp-2022.11.001/elpa' (FCDEBFLAGS) (WFLAGS) (DFLAGS)
CXXFLAGS = -O2 -fPIC -fno-omit-frame-pointer -fopenmp -g -march=native -mtune=native --std=c++14 $(DFLAGS) -Wno-deprecated-declarations
LDFLAGS = $(FCFLAGS) -Wl,–enable-new-dtags -L’/home/Packages/intel/oneapi/mpi/2021.5.1/lib/release’ -Wl,-rpath,‘/home/Packages/intel/oneapi/mpi/2021.5.1/lib/release’ -L’/home/Packages/cp2k_2023.1/tools/toolchain/install/libint-v2.6.0-cp2k-lmax-5/lib’ -L’/home/Packages/cp2k_2023.1/tools/toolchain/install/libxc-6.0.0/lib’ -Wl,-rpath,‘/home/Packages/cp2k_2023.1/tools/toolchain/install/libxc-6.0.0/lib’ -L’/home/Packages/cp2k_2023.1/tools/toolchain/install/libxsmm-1.17/lib’ -Wl,-rpath,‘/home/Packages/cp2k_2023.1/tools/toolchain/install/libxsmm-1.17/lib’ -L’/home/Packages/cp2k_2023.1/tools/toolchain/install/elpa-2022.11.001/cpu/lib’ -Wl,-rpath,‘/home/Packages/cp2k_2023.1/tools/toolchain/install/elpa-2022.11.001/cpu/lib’ -L’/home/Packages/cp2k_2023.1/tools/toolchain/install/libvori-220621/lib’ -Wl,-rpath,‘/home/Packages/cp2k_2023.1/tools/toolchain/install/libvori-220621/lib’
LIBS = -lelpa_openmp -lxsmmf -lxsmm -ldl -lpthread -lxcf03 -lxc -lint2 -lmpi -lmpicxx -L/home/Packages/intel/oneapi/mkl/2022.0.2/lib/intel64 -Wl,-rpath,/home/Packages/intel/oneapi/mkl/2022.0.2/lib/intel64 -lmkl_scalapack_lp64 -Wl,–start-group -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lmkl_blacs_intelmpi_lp64 -Wl,–end-group -lpthread -lm -ldl -lvori -lstdc++ -lstdc++
After that I executed the following commands:
cp /home/Packages/cp2k_2023.1/tools/toolchain/install/arch/* …/…/arch/
make -j 24 ARCH=local VERSION=“ssmp sdbg psmp pdbg” libcp2k
GROMACS Installation:
Patched with plumed 2.8.2 compiled using Intel mpi and compilers
FLAGS=“-xCORE-AVX512 -g -static-intel”; CFLAGS=$FLAGS CXXFLAGS=$FLAGS CC=mpiicc CXX=mpiicpc /home/Packages/cp2k_2023.1/tools/toolchain/install/cmake-3.25.1/bin/cmake … -DCMAKE_INSTALL_PREFIX=/home/Packages/gromacs/2022.5_cp2k_2023.1 -DBUILD_SHARED_LIBS=OFF -DGMX_PREFER_STATIC_LIBS=ON -DGMX_FFT_LIBRARY=mkl -DMKL_LIBRARIES=“/home/Packages/intel/oneapi/mkl/2022.0.2/lib/intel64/libmkl_scalapack_lp64.so;/home/Packages/intel/oneapi/mkl/2022.0.2/lib/intel64/libmkl_gf_lp64.so;/home/Packages/intel/oneapi/mkl/2022.0.2/lib/intel64/libmkl_sequential.so;/home/Packages/intel/oneapi/mkl/2022.0.2/lib/intel64/libmkl_core.so;/home/Packages/intel/oneapi/mkl/2022.0.2/lib/intel64/libmkl_blacs_intelmpi_lp64.so” -DMKL_INCLUDE_DIR=“/home/Packages/intel/oneapi/mkl/2022.0.2/include” -DGMX_GPU=OFF -DGMX_BUILD_HELP=OFF -DGMX_HWLOC=OFF -DGMX_SIMD=AVX_512 -DGMX_CP2K=ON -DCP2K_DIR=“/home/Packages/cp2k_2023.1/lib/local/psmp” -DGMX_LIBS_SUFFIX=_cp2k -DGMX_DEFAULT_SUFFIX=off -DGMX_BINARY_SUFFIX=_cp2k -DGMXAPI=OFF -DGMX_INSTALL_NBLIB_API=OFF -DGMX_DOUBLE=ON
I get very large linker errors. I am pasting a few last lines of the same.
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: libxcf03.f90:(.text+0x1f02): undefined reference to for_len_trim' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/Packages/cp2k_2023.1/tools/toolchain/install/libxc-6.0.0/lib/libxcf03.a(libxcf03.o): in function
xc_f03_lib_m_mp_f_to_c_string_‘:
libxcf03.f90:(.text+0x2571): undefined reference to for_len_trim' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/Packages/cp2k_2023.1/tools/toolchain/install/libxc-6.0.0/lib/libxcf03.a(libxcf03.o): in function
xc_f03_lib_m_mp_c_to_f_string_’:
libxcf03.f90:(.text+0x26bc): undefined reference to for_cpystr' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/Packages/cp2k_2023.1/tools/toolchain/install/libxc-6.0.0/lib/libxcf03.a(libxcf03.o): in function
xc_f03_lib_m_mp_c_to_f_string_p
make[2]: *** [src/programs/CMakeFiles/gmx.dir/build.make:110: bin/gmx_cp2k] Error 1
make[1]: *** [CMakeFiles/Makefile2:5966: src/programs/CMakeFiles/gmx.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
Any help will be appreciated.
Thanks and regards,
Rajib