Error when compile lammps with user-deepmd #333
Unanswered
FeynmanBongo
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Which version are you using? For the latest deepmd-kit code, we only support LAMMPS stable_29Oct2020 (or later). |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
dear deepmd-kit user and developer,
I have tried to install LAMMPS's DeePMD-kit module for weeks, so far I have obtained USER-DEEPMD module according to the developer's instructions, however, when I continue to build LAMMPS with the USER-DEEPMD module I always encount the following error:
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -std=c++11 -DHIGH_PREC -I/home/zhongxing/Software/TF/include -I/home/zhongxing/Software/TF/include -I/home/zhongxing/Software/DP/include/deepmd -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c ../run.cpp
../pppm_dplr.cpp: In member function ‘virtual void LAMMPS_NS::PPPMDPLR::compute(int, int)’:
../pppm_dplr.cpp:124:3: error: ‘gc’ was not declared in this scope
gc->reverse_comm_kspace(this,1,sizeof(FFT_SCALAR),REVERSE_RHO,
^~
../pppm_dplr.cpp:125:27: error: ‘gc_buf1’ was not declared in this scope
gc_buf1,gc_buf2,MPI_FFT_SCALAR);
^~~~~~~
../pppm_dplr.cpp:125:35: error: ‘gc_buf2’ was not declared in this scope
gc_buf1,gc_buf2,MPI_FFT_SCALAR);
^~~~~~~
mpicxx -g -O3 -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -std=c++11 -DHIGH_PREC -I/home/zhongxing/Software/TF/include -I/home/zhongxing/Software/TF/include -I/home/zhongxing/Software/DP/include/deepmd -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -c ../group.cpp
Makefile:104: recipe for target 'pppm_dplr.o' failed
make[1]: *** [pppm_dplr.o] Error 1
make[1]: *** Waiting for unfinished jobs....
../group.cpp: In member function ‘void LAMMPS_NS::Group::read_restart(FILE*)’:
../group.cpp:738:21: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
if (me == 0) fread(&ngroup,sizeof(int),1,fp);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
../group.cpp:750:23: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
if (me == 0) fread(&n,sizeof(int),1,fp);
~~~~~^~~~~~~~~~~~~~~~~~~~~
../group.cpp:754:25: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
if (me == 0) fread(names[i],sizeof(char),n,fp);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/home/zhongxing/Software/DPMD/lammps/src/Obj_mpi'
Makefile:201: recipe for target 'mpi' failed
make: *** [mpi] Error 2
AND the screen shot is:

I have referred to the previous discussion so the KSPACE package is "make-yes", but I have no idea how to deal with those errors.
Sincerely hope someone can help.
Thanks a lot!!
Beta Was this translation helpful? Give feedback.
All reactions