biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Unify CUDA and OpenCL lookup-table creation
[alexxy/gromacs.git]
/
src
/
gromacs
/
gpu_utils
/
devicebuffer_ocl.h
diff --git
a/src/gromacs/gpu_utils/devicebuffer_ocl.h
b/src/gromacs/gpu_utils/devicebuffer_ocl.h
index 40d72761baa4ea4a3c6e181a35c7a684dd6cd021..6840195d2687d3f1a3ca7e773a59a4dc66b4f555 100644
(file)
--- a/
src/gromacs/gpu_utils/devicebuffer_ocl.h
+++ b/
src/gromacs/gpu_utils/devicebuffer_ocl.h
@@
-187,7
+187,7
@@
void copyFromDeviceBuffer(ValueType* hostBuffer,
{
if (numValues == 0)
{
- return;
// such calls are actually made with empty domains
+ return;
}
GMX_ASSERT(buffer, "needs a buffer pointer");
GMX_ASSERT(hostBuffer, "needs a host buffer pointer");