Skip to content

Cannot execute lmp with deepmd when build from source as described in doc #2048

@MabinogiX

Description

@MabinogiX

Summary

I have installed deepmd and lammps in plugin mode following the instruction in
https://github.com/deepmodeling/deepmd-kit/blob/master/doc/install/install-from-source.md and
https://github.com/deepmodeling/deepmd-kit/blob/master/doc/install/install-lammps.md.
However I got this error when executor command ${deepmd_root}/bin/lmp -i in.lammps -v restart 0:
ERROR: Unrecognized pair style 'deepmd' (src/force.cpp:279)

DeePMD-kit Version

v2.1.5

TensorFlow Version

2.9

Python Version, CUDA Version, GCC Version, LAMMPS Version, etc

No response

Details

The problem can be solved by:

cd ${deepmd_root}/lib
ln -s libdeepmd_lmp.so dpplugin.so

Then executor lmp:

LAMMPS_PLUGIN_PATH=${deepmd_root}/lib/  ${deepmd_root}/bin/lmp -i in.lammps -v restart 0

I'm not sure if this is my problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions