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
## add lammps module to the wheel
In the next version, one can install DeePMD-kit using
```sh
pip install deepmd-kit[gpu,lmp]
```
Then one can use `lmp` to run the LAMMPS program with `pair deepmd`.
This works for Linux and macOS, and requires `libpython` installed to
load TF libraries. The LAMMPS Python package was prebuilt in [my
repo](https://github.com/njzjz/lammps-wheel).
## Build a Python package with LAMMPS module from the source
```sh
export DP_LAMMPS_VERSION=stable_23Jun2022_update2
export DP_variant=cuda
pip install -v .
```
But note that the same compilation condition (CXX ABI, MPI) should be
used to build LAMMPS and its plugin.
## Other fixes
- rename `op_abi` module to `deepmd_op` to share the same name between
Python and C++
- fix macOS OP library suffix in api_cc: `libdeepmd_op.dylib` ->
`libdeepmd_op.so`
- fix Windows dlopen APIs in api_cc
- fix compilation error on windows: `an explicit specialization or
instantiation of a function template cannot have any default arguments`
- avoid linking libdeepmd_lmp with the MPI library, which has been
linked with the main LAMMPS
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
If you only want to install the Python interface and have no existing TensorFlow installed, you can use `pip` to install the pre-built package of the Python interface with CUDA 11 supported:
87
+
If you have no existing TensorFlow installed, you can use `pip` to install the pre-built package of the Python interface with CUDA 11 supported:
88
88
89
89
```bash
90
90
pip install deepmd-kit[gpu]
@@ -95,6 +95,13 @@ Or install the CPU version without CUDA supported:
95
95
pip install deepmd-kit[cpu]
96
96
```
97
97
98
+
[LAMMPS module](../third-party/lammps-command.md) is only provided on Linux and macOS. To enable it, add `lmp` to extras:
99
+
```bash
100
+
pip install deepmd-kit[gpu,lmp]
101
+
```
102
+
MPICH is required for parallel running.
103
+
104
+
It is suggested to install the package into an isolated environment.
98
105
The supported platform includes Linux x86-64 and aarch64 with GNU C Library 2.28 or above, macOS x86-64, and Windows x86-64.
99
106
A specific version of TensorFlow which is compatible with DeePMD-kit will be also installed.
0 commit comments