Homec4science

fix memory leak via NeighListKokkos::clean_copy()

Authored by Dan Ibanez <daibane@sandia.gov> on Mar 28 2017, 19:38.

Description

fix memory leak via NeighListKokkos::clean_copy()

There were several clean_copy() calls in pair
styles *outside device code*.
They seem to have been left over from an abandoned
effort to copy the Kokkos neighbor list as
a member of the pair style, instead of copying
out the individual views needed.
These leftover clean_copy() calls were setting
pointers to NULL that had not been freed,
leading to large memory leaks.
I've removed the clean_copy() function entirely,
and replaced it with the copymode flag system used
in many other Kokkos objects.
The copymode flag is only set to one in
functors that hold copies of the neighbor list.

Details

Committed
Stan Moore <stamoor@sandia.gov>Mar 28 2017, 21:01
Pushed
jungeOct 19 2017, 09:53
Parents
rLAMMPS2c93065786a1: Merge branch 'master' of https://github.com/lammps/lammps into USER-DPD_kokkos
Branches
Unknown
Tags
Unknown

Event Timeline

Stan Moore <stamoor@sandia.gov> committed rLAMMPSb3d6d9f8cf3e: fix memory leak via NeighListKokkos::clean_copy() (authored by Dan Ibanez <daibane@sandia.gov>).Mar 28 2017, 21:01