1 #ifndef GENIE_INTERFACE_CONFIG_H_ 2 #define GENIE_INTERFACE_CONFIG_H_ 23 uint32_t query_range_;
24 uint32_t num_of_queries_;
25 bool save_to_gpu_ =
false;
27 bool k_initialized_ =
false;
28 bool query_range_initialized_ =
false;
29 bool num_of_queries_initialized_ =
false;
34 uint32_t
GetK()
const;
Config & SetGpuId(const uint8_t gpu_id)
Set the ID of the GPU used.
uint8_t GetGpuId() const
Return the ID of the GPU used.
This is the top-level namespace of the project.
Config & SetNumOfQueries(const uint32_t num_of_queries)
Set the number of query to search.
Config & SetQueryRange(const uint32_t query_range)
Set the range used in range-based search.
void Validate() const
Validate that all required options are set.
uint32_t GetK() const
Return K.
Config & SetSaveToGpu(const bool save_to_gpu)
Set whether table should be saved to GPU after search.
uint32_t GetQueryRange() const
Return the range used in range-based search.
void DisplayConfiguration()
Display enabled configuration options.
Config & SetK(const uint32_t k)
Set k.
Config class holds all user configurable settings of GENIE.
Config & LoadFromFile(const std::string &filename)
Load configuration from a file.
bool IsNumOfQueriesSet() const
Return whether the number of query has been set.
bool IsQueryRangeSet() const
Return whether the query range has been set.
bool GetSaveToGpu() const
Return whether table should be saved to GPU after search.
uint32_t GetNumOfQueries() const
Return the number of query to search.
bool IsKSet() const
Return whether K has been set.