Gromacs
2020.4
|
#include "gmxpre.h"
#include "config.h"
#include <string>
#include "gromacs/listed_forces/gpubonded.h"
#include "gromacs/mdtypes/inputrec.h"
#include "gromacs/topology/topology.h"
#include "gromacs/utility/stringutil.h"
Implements GPU bonded lists for non-GPU builds.
Functions | |
static bool | gmx::someInteractionsCanRunOnGpu (const InteractionLists &ilists) |
Returns whether there are any interactions in ilists suitable for a GPU. | |
static bool | gmx::bondedInteractionsCanRunOnGpu (const gmx_mtop_t &mtop) |
Returns whether there are any bonded interactions in the global topology suitable for a GPU. | |
static bool | gmx::addMessageIfNotSupported (ArrayRef< const std::string > errorReasons, std::string *error) |
Help build a descriptive message in error if there are errorReasons why bondeds on a GPU are not supported. More... | |
bool | gmx::buildSupportsGpuBondeds (std::string *error) |
Checks whether the GROMACS build allows to compute bonded interactions on a GPU. More... | |
bool | gmx::inputSupportsGpuBondeds (const t_inputrec &ir, const gmx_mtop_t &mtop, std::string *error) |
Checks whether the input system allows to compute bonded interactions on a GPU. More... | |