Fix false-positives in checkDeviceBuffer for OpenCL
commitfd0c311db88c8dfe944c4ebc6c46c13e08f34f82
authorAndrey Alekseenko <al42and@gmail.com>
Wed, 23 Sep 2020 16:34:29 +0000 (23 18:34 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 23 Sep 2020 18:23:54 +0000 (23 18:23 +0000)
tree5f164ff3d3292ff998419cdff3cd1dd9600662bc
parent3744ed1ae89a847e433a6cfce5245eb0a6b1bea2
Fix false-positives in checkDeviceBuffer for OpenCL

The function takes required number of elements as its argument, but then
compares it with the buffer size measured in bytes.
src/gromacs/gpu_utils/devicebuffer_ocl.h