|
Gromacs
2026.0-dev-20251119-5f0a571d
|
#include "torchmodel.h"#include <dlfcn.h>#include <iostream>#include "gromacs/gmxlib/network.h"#include "gromacs/hardware/device_information.h"#include "gromacs/mdtypes/enerdata.h"#include "gromacs/mdtypes/forceoutput.h"#include "gromacs/pbcutil/pbc.h"#include "gromacs/topology/embedded_system_preprocessing.h"#include "gromacs/utility/exceptions.h"#include "gromacs/utility/logger.h"#include "gromacs/utility/mpicomm.h"#include "gromacs/utility/stringutil.h"#include "nnpotoptions.h"
Include dependency graph for torchmodel.cpp:Implements a wrapper class for a TorchScript-compiled neural network model.
Functions | |
| static std::string | gmx::recordToString (std::tuple< at::DataPtr, size_t > data) |
| static void | gmx::loadModelExtensions (const std::string &ext_libs, const MDLogger &logger) |
| load custom extensions used to compile the TorchScript model from extra_files | |
| static std::tuple< std::string, std::optional< int > > | gmx::getMdrunActiveDevice () |
| static torch::Device | gmx::determineDevice (const MDLogger &logger, const MpiComm &mpiComm) |
| Determine which device to use depending on GMX_NN_DEVICE environment variable. More... | |
1.8.5