You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to continue training model (from deepmd-kit 2.1.1, dpgen 0.10.5), using newly released 2.1.3. (offline package deepmd-kit-2.1.3-cuda10.2_gpu-Linux-x86_64.sh )
dpgen process failed to run, (task 4) with [unrecognized pair style] error in lmp log file.
DeePMD-kit Version
2.1.3
TensorFlow Version
How did you download the software?
Offline packages
Input Files, Running Commands, Error Log, etc.
dpgen 0.10.5
call lmp by
"model_devi":[ "command": "/DeepMD-kit-location/deepmd-kit-2.1.1-cu10.2/bin/lmp"
in machine json file.
I have activated the environment but I still get the error message: "ERROR: Unrecognized pair style 'deepmd' (src/force.cpp:271)" Do you have any suggestions?
I have activated the environment but I still get the error message: "ERROR: Unrecognized pair style 'deepmd' (src/force.cpp:271)" Do you have any suggestions?
Thank you for your help. However, I encountered an issue after setting the LAMMPS_PLUGIN_PATH. The error message I received is as follows: "Open of file /test_env4/lib/deepmd_lmp/dpplugin.so failed: libabsl_status.so.2301.0.0: cannot open shared object file: No such file or directory." Do you have any suggestions?
I have encounter the same kind of problem today.
The deepmd_lmp/dpplugin.so from the current conda-forge version of deepmd-kit does not has proper rpath and needed shared library information.
After installation, a temporary patch can be done with patchelf by
Do you use lmp_mpi or lmp_serial? lmp_serial in conda-forge does not provide a shared library (liblammps.so is built for MPI), which might be a problem and should not be used.
@njzjz@Yi-FanLi
I see. Currently, lmp_mpi indeed loads liblammps.so automatically and then loads the plugin correctly. I was fixing it because ldd or readelf does not list liblammps.so as a dependency.
It's my fault. I spotted the missing .so because an earlier incompatible version of LAMMPS was installed by conda because of other dependencies pinned down the LAMMPS version. I tried to debug the .so file to look into its symbols. I wasn't aware that upgrading LAMMPS version has already fixed these issues.
Activity
njzjz commentedon Jul 2, 2022
Please activate the environment first:
(
source activate /path/to/deepmd-kitorsource /path/to/deepmd-kit/bin/activate /path/to/deepmd-kitmay also work)By activating the conda environment, several environment variables can be set correctly.
r-hou commentedon Oct 20, 2023
it helps nothing, I did activate the environment, otherwise how could I use "lmp -h", it doesn't show deepmd pair_style
njzjz commentedon Oct 20, 2023
Currently,
lmp -honly lists built-in styles, but no plugged styles. This part of the codes is maintained by LAMMPS.hyuqing11 commentedon Nov 29, 2023
I have activated the environment but I still get the error message: "ERROR: Unrecognized pair style 'deepmd' (src/force.cpp:271)" Do you have any suggestions?
njzjz commentedon Nov 29, 2023
@hyuqing11 If it was installed from conda-forge or the offline package released recently, the problem has been resolved in conda-forge/deepmd-kit-feedstock#63.
During the activation process, the environment variable
LAMMPS_PLUGIN_PATHwill be set, so it can also be manually set instead:hyuqing11 commentedon Nov 30, 2023
Thank you for your help. However, I encountered an issue after setting the LAMMPS_PLUGIN_PATH. The error message I received is as follows: "Open of file /test_env4/lib/deepmd_lmp/dpplugin.so failed: libabsl_status.so.2301.0.0: cannot open shared object file: No such file or directory." Do you have any suggestions?
chazeon commentedon Dec 2, 2023
@njzjz @hyuqing11
I have encounter the same kind of problem today.
The
deepmd_lmp/dpplugin.sofrom the current conda-forge version of deepmd-kit does not has proper rpath and needed shared library information.After installation, a temporary patch can be done with
patchelfbyMy deepmd-kit version and build is
njzjz commentedon Dec 2, 2023
I know @Yi-FanLi had this issue before, but he compiled LAMMPS himself. @chazeon Did you use conda-forge's LAMMPS or others?
chazeon commentedon Dec 2, 2023
Yes, I used conda-forge’s LAMMPS.
njzjz commentedon Dec 4, 2023
Do you use
lmp_mpiorlmp_serial?lmp_serialin conda-forge does not provide a shared library (liblammps.sois built for MPI), which might be a problem and should not be used.Yi-FanLi commentedon Dec 4, 2023
Hi @chazeon, I used the following command to set up an environment:
and used this command to run the task:
It worked fine.
Can you tell us how we can reproduce the issue?
chazeon commentedon Dec 5, 2023
@njzjz @Yi-FanLi
I see. Currently,
lmp_mpiindeed loadsliblammps.soautomatically and then loads the plugin correctly. I was fixing it becauselddorreadelfdoes not listliblammps.soas a dependency.It's my fault. I spotted the missing
.sobecause an earlier incompatible version of LAMMPS was installed bycondabecause of other dependencies pinned down the LAMMPS version. I tried to debug the.sofile to look into its symbols. I wasn't aware that upgrading LAMMPS version has already fixed these issues.felix5572 commentedon Jan 23, 2025
sometimes just add
source ~/deepmd-kit/bin/activate ~/deepmd-kit/works for me.