Compute reference indices in GPU LINCS upon data preparation
authorArtem Zhmurov <zhmurov@gmail.com>
Tue, 8 Jun 2021 11:48:22 +0000 (14:48 +0300)
committerPaul Bauer <paul.bauer.q@gmail.com>
Wed, 9 Jun 2021 11:20:29 +0000 (11:20 +0000)
commit0adce6e0acc8b75b9c84dde5f3672b3bda3c09bf
tree4b24ee2f1fe2981bc1c5187b50271e14d85da9cf
parent847171badfdddf1b3d76f9d147ed79579a008070
Compute reference indices in GPU LINCS upon data preparation

The reference indices are used to map into shared memory location.
The start of the block is then subtracted from the index in map
to get the location in shared memory that should be used. This can
be done when the structure is populated to reduce the amount of
computations in the GPU kernel.

Refs #3350
src/gromacs/mdlib/lincs_gpu.cpp
src/gromacs/mdlib/lincs_gpu_internal.cu