#include "gmxpre.h"
#include "gpu_utils.h"
#include "config.h"
#include <cassert>
#include "gromacs/utility/arrayref.h"
#include "gromacs/utility/smalloc.h"
#include "gromacs/utility/stringutil.h"
static bool addMessageIfNotSupported |
( |
gmx::ArrayRef< const std::string > |
errorReasons, |
|
|
std::string * |
error |
|
) |
| |
|
static |
Help build a descriptive message in error
if there are errorReasons
why nonbondeds on a GPU are not supported.
- Returns
- Whether the lack of errorReasons indicate there is support.
bool buildSupportsNonbondedOnGpu |
( |
std::string * |
error | ) |
|
Check if GROMACS has been built with GPU support.
- Parameters
-
[in] | error | Pointer to error string or nullptr. |
- Todo:
- Move this to NB module once it exists.