Loading...
Searching...
No Matches
EngineRegistry.cpp File Reference
#include "EngineRegistry.h"
#include <algorithm>
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <iterator>
#include <sstream>
#include <stdexcept>
#include "AotiPackageIsa.h"
#include "RgpotFactory.h"
#include "gpr/StartupReport.h"
#include "gpr/auxiliary/MlflowFileStore.h"
#include "gpr/auxiliary/Sha256.h"

Go to the source code of this file.

Namespaces

namespace  pot
 Potential wrappers and the batched oracle interface.

Functions

bool pot::engineIsGeneric (const std::string &potential)
bool pot::engineRequestIsPlugin (const EngineRequest &request)
OraclePathChoice pot::selectOraclePath (const std::string &requested, const std::string &potential, bool plugin)
OraclePathChoice pot::selectOraclePath (const std::string &requested, const std::string &potential)
std::string pot::formatOraclePath (const OraclePathChoice &choice, const std::string &potential)
bool pot::recordOraclePath (const OraclePathChoice &choice)
 Record the choice on the active tracking run as oracle.path.
std::vector< std::string > pot::engineSearchDirectories (const EngineRequest &request, const std::string &potential)
bool pot::engineRegistryKnows (const std::string &potential)
 True when the registry maps potential to an engine params arm.
bool pot::resolveEngine (const EngineRequest &request, EngineBinding &binding, std::string &err)
std::unique_ptr< EnginePotential > pot::openEngine (const EngineRequest &request, std::string &err, EngineBinding *binding=nullptr, int oracle_threads=1)
 resolveEngine followed by EnginePotential::open.
EngineReport pot::reportEngine (const EnginePotential &engine, const EngineBinding &binding)
EngineReport pot::reportEngine (const EnginePotential &engine, const EngineBinding &binding, const std::string &model_sha256)
std::shared_future< std::string > pot::startModelDigest (const std::string &model_path)
std::string pot::formatEngineReport (const EngineReport &report)
bool pot::recordEngineProvenance (const EngineReport &report)