Skip to content

[BUG] dp potential in lammps cannot be cleared from RAM #1828

@Johnsyisme

Description

@Johnsyisme

Bug summary

Hi~!
I want to do a series(maybe 10000+ times) of optimization calculations by LAMMPS with the dp potential to investigate the structure evolution

In the procedure like:
Optimization > change the structure(change volume or move some atom ...) > Optimization
And Lammps requires us to do clear every time before we do read_data new_structre

And Lammps will stop after a few hundred MD simulations because of Out Of Memory

I monitored this calculation and found that the used RAM increased several Gb when the new MD started
And this problem didn't happen when I used the empirical potential

So I think the command clear in Lammps may not be able to remove the dp potential in RAM

The simple version Lammps input files are attached

If we cannot clear the potential out of RAM, Can we use the potential defined in the previous step after changing the structure?

best wishes!
20220721145415
OOM_dp_lammps.zip

DeePMD-kit Version

2.1.3

TensorFlow Version

2.9

LAMMPS Version

23Jun2022 (Built-in mode)

How did you download the software?

Built from source

Input Files, Running Commands, Error Log, etc.

Lammps INPUT:
`
label loop
variable i loop 200000

clear

units metal
boundary p p p
atom_style atomic
neighbor 2.0 bin
neigh_modify every 1
compute tmp all pe
read_data carbon.data

#pair_style airebo 3.0
#pair_coeff * * CH.airebo C

pair_style deepmd test.pb
pair_coeff * *

thermo 1
thermo_style custom step pe temp c_tmp
minimize 1.0e-7 1.0e-10 1000 10000

next i
jump SELF loop
label break
quit

`

Steps to Reproduce

Run Lammps with dp potential
after a few hundred LOOPs
there will be an OOM problem

Further Information, Files, and Links

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions