Optimized Belief Propagation (CPU and GPU)
RunResultsSpeedups Class Reference

Class to load and store run results data including speedups from evaluation. More...

#include <RunResultsSpeedups.h>

Public Member Functions

 RunResultsSpeedups (const std::filesystem::path &imp_results_file_path, const std::string &run_name)
 Constructor that takes in implementation file path and run name and retrieves run results and speedup evaluation for the run if available. More...
 
 RunResultsSpeedups (const std::filesystem::path &run_results_file_path)
 Constructor that takes in run results path and processes run results
Speedups not available when using this constructor. More...
 
std::map< std::string, std::vector< std::string > > Speedups () const
 Return speedups from run results data with speedups. More...
 
std::vector< std::string > SpeedupHeadersOrder () const
 Return order of speedup headers. More...
 
std::map< InputSignature, std::string > InputsToKeyVal (std::string_view key) const
 Get mapping of run input signature to value corresponding to input key for each run result. More...
 
std::map< std::string, std::string > DataForInput (const InputSignature &input_sig) const
 Return data for specified input signature. More...
 

Detailed Description

Class to load and store run results data including speedups from evaluation.

Definition at line 42 of file RunResultsSpeedups.h.

Constructor & Destructor Documentation

◆ RunResultsSpeedups() [1/2]

RunResultsSpeedups::RunResultsSpeedups ( const std::filesystem::path &  imp_results_file_path,
const std::string &  run_name 
)
explicit

Constructor that takes in implementation file path and run name and retrieves run results and speedup evaluation for the run if available.

Parameters
imp_results_file_path
run_name

Definition at line 34 of file RunResultsSpeedups.cpp.

◆ RunResultsSpeedups() [2/2]

RunResultsSpeedups::RunResultsSpeedups ( const std::filesystem::path &  run_results_file_path)
explicit

Constructor that takes in run results path and processes run results
Speedups not available when using this constructor.

Parameters
run_results_file_path

Definition at line 74 of file RunResultsSpeedups.cpp.

Member Function Documentation

◆ DataForInput()

std::map<std::string, std::string> RunResultsSpeedups::DataForInput ( const InputSignature input_sig) const
inline

Return data for specified input signature.

Parameters
input_sig
Returns
Data for run corresponding to input signature

Definition at line 97 of file RunResultsSpeedups.h.

◆ InputsToKeyVal()

std::map< InputSignature, std::string > RunResultsSpeedups::InputsToKeyVal ( std::string_view  key) const

Get mapping of run input signature to value corresponding to input key for each run result.

Parameters
key
Returns
Mapping of run input signature to value corresponding to input key

Definition at line 134 of file RunResultsSpeedups.cpp.

◆ SpeedupHeadersOrder()

std::vector<std::string> RunResultsSpeedups::SpeedupHeadersOrder ( ) const
inline

Return order of speedup headers.

Returns
Speedup headers in order

Definition at line 78 of file RunResultsSpeedups.h.

◆ Speedups()

std::map<std::string, std::vector<std::string> > RunResultsSpeedups::Speedups ( ) const
inline

Return speedups from run results data with speedups.

Returns
Speedups from run results data with speedups

Definition at line 69 of file RunResultsSpeedups.h.


The documentation for this class was generated from the following files: