namespace gpr::optim_abi

Overview

namespace optim_abi {
 
// structs
 
struct ResultLayoutStamp;
 
// global variables
 
std::uint32_t kResultLayoutVersion = 2;
 
// global functions
 
ResultLayoutStamp libraryResultLayout();
bool operator==(const ResultLayoutStamp& a, const ResultLayoutStamp& b);
ResultLayoutStamp compiledResultLayout();
std::string describe(const ResultLayoutStamp& stamp);
std::string resultLayoutMismatch(const ResultLayoutStamp& driver, const ResultLayoutStamp& library);
void refuseMismatchedResultLayout(const ResultLayoutStamp& driver, const ResultLayoutStamp& library);
void requireResultLayout();
 
} // namespace optim_abi

Detailed Documentation

Global Variables

std::uint32_t kResultLayoutVersion = 2

Bump when GPNEBResult or OCINEBResult changes layout. 2: GPNEBResult::prior_observations (OCINEBResult embeds that result).

Global Functions

ResultLayoutStamp libraryResultLayout()

What libgpridge was built with. Defined in the library, not inline, so a stale driver cannot satisfy the check with its own copy.

ResultLayoutStamp compiledResultLayout()

What this translation unit compiled against.

std::string resultLayoutMismatch(const ResultLayoutStamp& driver, const ResultLayoutStamp& library)

Empty when the stamps agree. Otherwise a message naming both.