1. A CUDA fast multipole method with highly efficient M2L farfield evaluationfield evaluation
- Author
-
Kohnke, B., Kutzner, C., Beckmann, A., Lube, G., Kabadshow, I., Dachsel, H., and Grubmüller, H.
- Abstract
Solving an N-body problem, electrostatic or gravitational, is a crucial task and the main computational bottleneck in manyscientific applications. Its direct solution is an ubiquitous showcase example for the compute power of graphics processingunits (GPUs). However, the naive pairwise summation hasOðN2Þcomputational complexity. The fast multipole method(FMM) can reduce runtime and complexity toOðNÞfor any specified precision. Here, we present a CUDA-accelerated,CþþFMM implementation for multi particle systems withr1potential that are found, e.g. in biomolecular simulations.The algorithm involves several operators to exchange information in an octree data structure. We focus on the Multipole-to-Local (M2L) operator, as its runtime is limiting for the overall performance. We propose, implement and benchmarkthree different M2L parallelization approaches. Approach (1) utilizes Unified Memory to minimize programming andporting efforts. It achieves decent speedups for only little implementation work. Approach (2) employs CUDA DynamicParallelism to significantly improve performance for high approximation accuracies. The presorted list-based approach(3) fits periodic boundary conditions particularly well. It exploits FMM operator symmetries to minimize both memoryaccess and the number of complex multiplications. The result is a compute-bound implementation, i.e. performance islimited by arithmetic operations rather than by memory accesses. The complete CUDA parallelized FMM is incorporatedwithin the GROMACS molecular dynamics package as an alternative Coulomb solver.
- Published
- 2021