5#ifndef GPR_POTENTIALS_ENGINEREGISTRY_H_
6#define GPR_POTENTIALS_ENGINEREGISTRY_H_
91 const std::string& potential);
96 const std::string& potential,
bool plugin);
101 const std::string& potential);
112 const std::string& potential);
131 int oracle_threads = 1);
152 const std::string& model_sha256);
158std::shared_future<std::string>
startModelDigest(
const std::string& model_path);
Potential wrappers and the batched oracle interface.
bool resolveEngine(const EngineRequest &request, EngineBinding &binding, std::string &err)
bool engineRegistryKnows(const std::string &potential)
True when the registry maps potential to an engine params arm.
bool recordOraclePath(const OraclePathChoice &choice)
Record the choice on the active tracking run as oracle.path.
std::unique_ptr< EnginePotential > openEngine(const EngineRequest &request, std::string &err, EngineBinding *binding, int oracle_threads)
resolveEngine followed by EnginePotential::open.
bool engineIsGeneric(const std::string &potential)
bool engineRequestIsPlugin(const EngineRequest &request)
std::string formatOraclePath(const OraclePathChoice &choice, const std::string &potential)
OraclePathChoice selectOraclePath(const std::string &requested, const std::string &potential, bool plugin)
bool recordEngineProvenance(const EngineReport &report)
std::string formatEngineReport(const EngineReport &report)
std::shared_future< std::string > startModelDigest(const std::string &model_path)
std::vector< std::string > engineSearchDirectories(const EngineRequest &request, const std::string &potential)
EngineReport reportEngine(const EnginePotential &engine, const EngineBinding &binding)
A name resolved to an engine library and the capnp params message it takes.
std::string params_arm
capnp root struct, e.g. UmaParams
std::string library
path or soname for dlopen
std::vector< std::string > searched
std::vector< unsigned char > config
flat-array message
What a run needs to state about the engine that answered it.
std::string library
as requested of the loader
std::string resolved_path
file the loader mapped
std::string model_path
empty for engines that load no model
std::string params_arm
capnp root struct the engine read
std::string model_sha256
digest of the model file; empty if unread
int abi_version
rgpot_engine_abi_version()
What a driver knows when it asks for a potential by name.
double cpmd_scf_convergence
–cpmd-scf-convergence: CPMD's CONVERGENCE ORBITALS criterion.
std::string model_path
–model
double cp2k_eps_scf
–cp2k-eps-scf: CP2K's &SCF EPS_SCF for the default cp2k deck.
std::string plugin_name
[oracle.plugin] pluginName, for the startup report only.
std::string task_name
–task-name (UMA task head)
std::string potential
–potential: uma, omol, metatomic, ...
std::string lammps_params_path
–lammps-params: pair style, coefficients and type map for lammps.
std::string device
–device
std::string executable_dir
std::vector< unsigned char > potential_config
Optional canonical rgpot PotentialConfig shared with the direct path.
int spin
–uma-spin (multiplicity)
int cp2k_outer_max_scf
&OUTER_SCF MAX_SCF of the default cp2k deck; 0 drops the outer loop.
std::string library
–potential-library: overrides the table
std::vector< unsigned char > params_payload
Which route a run takes to its potential, and why.