GROMACS version:
GROMACS modification: Yes/No
Here post your question
Dear Gromacs community
I tried to install GROMACS 2022.2 in combination with CP2K.2022.1 on our CRAY supercomputer.
From what I understand in a previous post (link reported at the end of this post) the
-DCP2K_LINKER_FLAGS is not needed anymore starting from cp2k.9.1
I successfully install cp2k.2022.1 and I tried to install gromacs
I got some mpi warning:
warning:use of old-style cast [-Wold-style-cast]
MPI_Comm libraryWorldCommunicator_ = MPI_COMM_NULL;
and at the end this error at the end:
…
[100%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/selection/sm_simple.cpp.o
[100%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/selection/symrec.cpp.o
3 warnings generated.
7 warnings generated.
18 warnings generated.
[100%] Linking CXX static library …/…/lib/libgromacs_mpi_d.a
[100%] Built target libgromacs
[100%] Linking CXX executable …/…/bin/gmx_mpi_d
ld.lld: error: unable to find library -lsymspg
ld.lld: error: unable to find library -lplumed
ld.lld: error: unable to find library -lgsl
ld.lld: error: unable to find library -lxsmmf
ld.lld: error: unable to find library -lxsmm
ld.lld: error: unable to find library -lxcf03
ld.lld: error: unable to find library -lxc
ld.lld: error: unable to find library -lint2
ld.lld: error: unable to find library -lfftw3_mpi
ld.lld: error: unable to find library -lfftw3
ld.lld: error: unable to find library -lfftw3_omp
ld.lld: error: unable to find library -lvori
ld.lld: error: unable to find library -lsymspg
ld.lld: error: unable to find library -lplumed
ld.lld: error: unable to find library -lgsl
ld.lld: error: unable to find library -lxsmmf
ld.lld: error: unable to find library -lxsmm
ld.lld: error: unable to find library -lxcf03
ld.lld: error: unable to find library -lxc
ld.lld: error: unable to find library -lint2
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/programs/CMakeFiles/gmx.dir/build.make:97: bin/gmx_mpi_d] Error 1
make[1]: *** [CMakeFiles/Makefile2:6163: src/programs/CMakeFiles/gmx.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
We had some adjustments on our CRAY machine and now I am trying to install GROMACS 2022.3 in combination with CP2K.9.1 (right now I have some trouble installing the last version of cp2k).The error that I get is, anyway, very similar
[100%] Linking CXX executable …/…/bin/gmx_mpi_d
No supported cpu target is set, CRAY_CPU_TARGET=x86-64 will be used.
Load a valid targeting module or set CRAY_CPU_TARGET
/usr/bin/ld: cannot find -lplumed
/usr/bin/ld: cannot find -lgsl
/usr/bin/ld: cannot find -lgslcblas
/usr/bin/ld: cannot find -lxsmmf
/usr/bin/ld: cannot find -lxsmm
collect2: error: ld returned 1 exit status
make[2]: *** [src/programs/CMakeFiles/gmx.dir/build.make:97: bin/gmx_mpi_d] Error 1
make[1]: *** [CMakeFiles/Makefile2:6163: src/programs/CMakeFiles/gmx.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
removing gsl and plumed I was able to compile.
The code runs a simple test case, but now I am going to do more performance tests
(it looks a bit slow, also for a simple classical MD, but I want to be more precise…)
Thank you very much
PS: below the installation note for cp2k and gromacs used on my CRAY machine, in case someone needs