Explicitly destroy PME-PP GPU communication object
commitc2e5f5788fb6415942a0c682f8ac801e45479d9c
authorAlan Gray <alangraygerrit@gmail.com>
Tue, 29 Oct 2019 09:03:05 +0000 (29 02:03 -0700)
committerPaul Bauer <paul.bauer.q@gmail.com>
Tue, 29 Oct 2019 09:55:46 +0000 (29 10:55 +0100)
treeb02ce60a6b903ddbd76b3864251e5897ea0fe1fb
parent6e01b028bc95bb6014d027e2edb6c65715a0572b
Explicitly destroy PME-PP GPU communication object

Add code to destroy object when it is no longer required. Even
although object is managed by a unique pointer, this needs to be done
while the GPU context still exists, otherwise a seg fault can occur
when it is automatically destroyed later.

Addresses #3077

Change-Id: I9d6f798d79a73e2ce366c9fb85a0ff9339fc9f88
src/gromacs/mdrun/md.cpp