reduced the cost of the nbnxn OpenMP nb-force reduction
authorBerk Hess <hess@kth.se>
Wed, 14 Nov 2012 10:10:23 +0000 (11:10 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Fri, 16 Nov 2012 00:01:36 +0000 (01:01 +0100)
commit4a50973ce38bc3222c2bf25dbfc37593d4cd5a08
tree9cfc0381d8530fc4a0132f45722aee1cfb308d81
parentd14b1b5d0ceb25205b9eed2a8c7603282b4d5eef
reduced the cost of the nbnxn OpenMP nb-force reduction

The cost of the nbnxn non-bonded force reduction, used with OpenMP
on the CPU, increased linearly with the number of OpenMP threads.
Now blocks of this array are only reduced when a thread writes
forces to it.

Change-Id: I06acf772b7951ad3166d22be2e5876e3e5084bc0
src/mdlib/nbnxn_atomdata.c
src/mdlib/nbnxn_internal.h
src/mdlib/nbnxn_search.c