Add a note on early return in device buffer operations
authorArtem Zhmurov <zhmurov@gmail.com>
Sun, 11 Apr 2021 17:36:11 +0000 (20:36 +0300)
committerPaul Bauer <paul.bauer.q@gmail.com>
Mon, 12 Apr 2021 07:15:20 +0000 (07:15 +0000)
commit3a61909b5918fa5bd6abb8b2e94939ece8bbd8bd
treeeee34b5d09703b4931a7d49fc2effaea995bc6aa
parent957397873858b478c59d1a7795c876f134a34410
Add a note on early return in device buffer operations

Functions that (re)allocate, clear and copy to or from
device buffer have an early return in case of zero operation
size. This is a safety mechnism that allows calling these
functions even if the buffers are not intialized, if the
size of the respective buffer is set to zero. A note is
added to the devicebuffer.h that explains why these early
returns are needed.
src/gromacs/gpu_utils/devicebuffer.h