Skip GPU reallocation of an empty non-local pairlist
commit25a500568cc354ddefa75aea77e332e2539838ca
authorAleksei Iupinov <a.yupinov@gmail.com>
Mon, 18 Sep 2017 13:37:44 +0000 (18 15:37 +0200)
committerBerk Hess <hess@kth.se>
Mon, 18 Sep 2017 19:21:34 +0000 (18 21:21 +0200)
tree7f33b277d8a8f48266a1923ec44ad0cc7f62d740
parent07972831f869ff0eb81c8900afbe56c756ce7330
Skip GPU reallocation of an empty non-local pairlist

This makes the corresponding timing event's usage consistent.
The common early return condition is moved into a new header
nbnbn_gpu_common.h, shared by OpenCL/CUDA.

Change-Id: I5b9cc027676cccda69f5b844d07e94e5fda620e7
src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda.cu
src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu
src/gromacs/mdlib/nbnxn_gpu_common.h [new file with mode: 0644]
src/gromacs/mdlib/nbnxn_ocl/nbnxn_ocl.cpp
src/gromacs/mdlib/nbnxn_ocl/nbnxn_ocl_data_mgmt.cpp