GENIE
|
Config class holds all user configurable settings of GENIE. More...
#include <config.h>
Public Member Functions | |
uint32_t | GetK () const |
Return K. More... | |
uint32_t | GetQueryRange () const |
Return the range used in range-based search. More... | |
uint32_t | GetNumOfQueries () const |
Return the number of query to search. More... | |
bool | GetSaveToGpu () const |
Return whether table should be saved to GPU after search. More... | |
uint8_t | GetGpuId () const |
Return the ID of the GPU used. More... | |
Config & | SetK (const uint32_t k) |
Set k. More... | |
Config & | SetQueryRange (const uint32_t query_range) |
Set the range used in range-based search. More... | |
Config & | SetNumOfQueries (const uint32_t num_of_queries) |
Set the number of query to search. More... | |
Config & | SetSaveToGpu (const bool save_to_gpu) |
Set whether table should be saved to GPU after search. More... | |
Config & | SetGpuId (const uint8_t gpu_id) |
Set the ID of the GPU used. More... | |
Config & | LoadFromFile (const std::string &filename) |
Load configuration from a file. More... | |
bool | IsKSet () const |
Return whether K has been set. More... | |
bool | IsQueryRangeSet () const |
Return whether the query range has been set. More... | |
bool | IsNumOfQueriesSet () const |
Return whether the number of query has been set. More... | |
void | Validate () const |
Validate that all required options are set. More... | |
void | DisplayConfiguration () |
Display enabled configuration options. More... | |
Config class holds all user configurable settings of GENIE.
The required options are:
The following options have default values:
void genie::Config::DisplayConfiguration | ( | ) |
uint8_t genie::Config::GetGpuId | ( | ) | const |
uint32_t genie::Config::GetNumOfQueries | ( | ) | const |
uint32_t genie::Config::GetQueryRange | ( | ) | const |
bool genie::Config::GetSaveToGpu | ( | ) | const |
bool genie::Config::IsKSet | ( | ) | const |
bool genie::Config::IsNumOfQueriesSet | ( | ) | const |
bool genie::Config::IsQueryRangeSet | ( | ) | const |
Config & genie::Config::LoadFromFile | ( | const std::string & | filename | ) |
Config & genie::Config::SetGpuId | ( | const uint8_t | gpu_id | ) |
Config & genie::Config::SetNumOfQueries | ( | const uint32_t | num_of_queries | ) |
Config & genie::Config::SetQueryRange | ( | const uint32_t | query_range | ) |
Config & genie::Config::SetSaveToGpu | ( | const bool | save_to_gpu | ) |
void genie::Config::Validate | ( | ) | const |