Unify nbnxn kernel dispatchers
commit25f9763a925e5c99f811be30c6654704b2e57f53
authorBerk Hess <hess@kth.se>
Thu, 20 Apr 2017 19:04:11 +0000 (20 21:04 +0200)
committerBerk Hess <hess@kth.se>
Tue, 4 Jul 2017 14:02:56 +0000 (4 16:02 +0200)
tree8908b53d7beb70ebec74ad73aec4cb181b127952
parentaecdf8a008bbb6067c993f9c9a759cf16578fb81
Unify nbnxn kernel dispatchers

Reduced code duplication by merging the three nbnxn kernel dispatch
functions for C reference, simd_4xn and simd_2xnn into a single
dispatcher. This also removes the implementation details from
sim_util.cpp.

More reorganization could be done, but is not included here to
minimize the size of this change.

The original goal of this change was to conditionally compile all
files in the simd_4xn and simd_2xnn directory, but currently we
do not have the conditions available at configure time.

Change-Id: I41f7ae96d267a12cf6024866b59bb0cda7e1cd2f
16 files changed:
docs/doxygen/suppressions.txt
src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_common.h [copied from src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/nbnxn_kernel_simd_template.h.pre with 53% similarity]
src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_cpu.cpp [new file with mode: 0644]
src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_cpu.h [copied from src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_common.h with 53% similarity]
src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/make_verlet_simd_kernel_files.py
src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/nbnxn_kernel_simd_template.cpp.pre [deleted file]
src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/nbnxn_kernel_simd_template.h.pre [copied from src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_ref.h with 64% similarity]
src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_gpu_ref.cpp
src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_ref.cpp
src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_ref.h
src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_ref_outer.h
src/gromacs/mdlib/nbnxn_kernels/simd_2xnn/nbnxn_kernel_simd_2xnn.cpp [deleted file]
src/gromacs/mdlib/nbnxn_kernels/simd_2xnn/nbnxn_kernel_simd_2xnn.h
src/gromacs/mdlib/nbnxn_kernels/simd_4xn/nbnxn_kernel_simd_4xn.cpp [deleted file]
src/gromacs/mdlib/nbnxn_kernels/simd_4xn/nbnxn_kernel_simd_4xn.h
src/gromacs/mdlib/sim_util.cpp