D7.6: Numerical Libraries for Heterogeneous/Hybrid Architectures
Description
This task aims to develop low-level numerical libraries that would provide the necessary building-blocks to compose more complex scientific applications and workflows. Looking forward, it also focusses on enabling the required modularity so that scientific codes perform optimally on heterogenous/hybrid architectures of the Exascale era.
Two specific problems are targeted initially:
1. Linear Algebra Libraries for Distributed/Hybrid Architectures
Here, the objective is to accomplish a usable, distributed, (GPU) accelerated dense linear algebra library that can potentially minimize code rewrite on existing code bases via a common interface powered by a selection of compute backends. Many simulation packages are written with ScaLAPACK data structures. A new Distributed Linear Algebra (DLA) interface is proposed that is fully compatible with this data layout, but allows use of more efficient libraries such as D-Plasma for better performance.
This API aims to minimize code changes while improving performance of the Linear Algebra dominated parts of the package. Preliminary results show over 2x speed-up on GPU accelerated nodes as ScaLAPACK doesn’t use GPUs. On multi-core nodes, there is an improvement of 10%. Both these studies include the non-negligible computational cost of data layout conversion.
2. Non-Bonded Interactions (NBI) in Classical Molecular Dynamics
In any molecular dynamics (MD) simulation, computation of the NBI between various particles overwhelmingly dominate the compute loads. There are several high-performance simulation packages, but none of those performant parts are available as reusable libraries. This is mainly because there isn’t a unified interface to express n-body problems.
This task proposes an API, and attempts integration of significant parts of it into the community code GROMACS. This integration involves significant refactor to separate concerns along with multi-level APIs for integration of new features for developers, as well as for composing high level workflows for end-users. Sections of the API are slated for public release in GROMACS 2020.
This project explored the various challenges involved in defining the analogue of BLAS in the particle simulations space setting the foundation for concrete plans for transitioning GROMACS from the stand-alone package to a reusable library through another undertaking (NB-LIB project, PRACE 6IP WP8).