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
* :attr:`grouping_method` and :attr:`group_id` are the grouping method and the related group ID to be used.
17
+
* :attr:`grouping_method` and :attr:`group_id` are the grouping method and the related group ID to be used.
18
+
18
19
If :attr:`grouping_method` is negative, :attr:`group_id` will be ignored and data for the whole system will be output.
19
20
20
21
* :attr:`interval` is the output interval (number of steps) of the data.
21
22
22
-
* :attr:`filename` is the output file.
23
+
* :attr:`filename` is the output file.
24
+
23
25
If it is ended by a star (*), the data for one frame will be output to one file, named by changing the star to the step number.
24
26
25
27
* Then one can write the properties to be output, and the allowed properties include: :attr:`mass`, :attr:`velocity`, :attr:`force`, :attr:`potential`, :attr:`virial`, and :attr:`unwrapped_position`.
Copy file name to clipboardExpand all lines: doc/installation.rst
+154Lines changed: 154 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -133,3 +133,157 @@ The setup instructions are below:
133
133
* Follow the remaining :program:`GPUMD` installation instructions
134
134
135
135
Following these steps will enable the :ref:`plumed keyword <kw_plumed>`.
136
+
137
+
.. _use_dp_in_gpumd:
138
+
.. index::
139
+
single: Deep Potential
140
+
141
+
GPUMD supports DP potential project
142
+
=====================================
143
+
144
+
0 Program Introduction
145
+
----------------------
146
+
This is the beginning of GPUMD's support for other machine learning potential functions.
147
+
148
+
0.1 Necessary instructions
149
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
150
+
- This is a test version.
151
+
- Only potential function files ending with ``.pb`` in deepmd are supported, that is, the potential function files of the tensorflow version generated using ``dp --tf`` freeze.
152
+
153
+
0.2 Installation Dependencies
154
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
155
+
- You must ensure that the new version of DP is installed and can run normally. This program contains DP-related dependencies.
156
+
- The installation environment requirements of GPUMD itself must be met.
157
+
158
+
1 Installation details
159
+
----------------------
160
+
Use the instance in AutoDL for testing. If one need testing use AutoDL, please contact Ke Xu ([email protected]).
161
+
162
+
And we have created an image in `AutoDL <https://www.autodl.com/>`_ that can run GPUMD-DP directly, which can be shared with the account that provides the user ID. Then, you will not require the following process and can be used directly.
- Line 19 is changed from ``CUDA_ARCH=-arch=sm_60`` to ``CUDA_ARCH=-arch=sm_89`` (for RTX 4090). Modify according to the corresponding graphics card model.
194
+
- Line 25 is changed from ``INC = -I./`` to ``INC = -I./ -I/root/miniconda3/deepmd-kit/source/build/path_to_install/include/deepmd``
195
+
- Line 27 is changed from ``LIBS = -lcublas -lcusolver`` to ``LIBS = -lcublas -lcusolver -L/root/miniconda3/deepmd-kit/source/build/path_to_install/lib -ldeepmd_cc``
This DP interface requires two files: a setting file and a DP potential file. The first file is very simple and is used to inform GPUMD of the atom number and types. For example, the ``dp.txt`` is shown in here for use the ``potential dp.txt DP_POTENTIAL_FILE.pb`` command in the ``run.in`` file::
276
+
277
+
dp 2 O H
278
+
279
+
Notice
280
+
~~~~~~~
281
+
The type list in the setting file and the potential file must be the same.
282
+
283
+
Example
284
+
~~~~~~~
285
+
* Some water simulations using the ``DP`` model in ``GPUMD``: https://github.com/brucefan1983/GPUMD/discussions
0 commit comments