Eliminate macro that expands to variable in PME GPU
commit6b8847e89534340ecf6acfc24d751844bf154fb1
authorSzilárd Páll <pall.szilard@gmail.com>
Thu, 1 Nov 2018 15:59:30 +0000 (1 16:59 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 7 Nov 2018 11:55:49 +0000 (7 12:55 +0100)
tree3101668b4653556a2ece3bce619716b307aa2bc2
parent691f1d0e45f14973c466dc27d32d901358679139
Eliminate macro that expands to variable in PME GPU

The PME_SPREADGATHER_THREADS_PER_ATOM expanded to a statement containing
variables that needed to be declared. This has been eliminated and the
order constant is used through a constexpr.
Added consistency checks to make sure that the PME order stored in the
data structures matches the constant in question.

Also converted a few more macros to constexpr.

Change-Id: I73efea25c2da7cbde40df961f8bfae7e364bd74d
src/gromacs/ewald/pme-gather.clh
src/gromacs/ewald/pme-gather.cu
src/gromacs/ewald/pme-gpu-constants.h
src/gromacs/ewald/pme-gpu-internal.cpp
src/gromacs/ewald/pme-gpu-program-impl-ocl.cpp
src/gromacs/ewald/pme-gpu-types-host.h
src/gromacs/ewald/pme-gpu-utils.clh
src/gromacs/ewald/pme-gpu-utils.h
src/gromacs/ewald/pme-program.cl
src/gromacs/ewald/pme-spread.clh
src/gromacs/ewald/pme-spread.cu