DiSMEC++
config.h
Go to the documentation of this file.
1 // Copyright (c) 2022, Aalto University, developed by Erik Schultheis
2 // All rights reserved.
3 //
4 // SPDX-License-Identifier: MIT
5 
12 #ifndef DISMEC_SRC_CONFIG_H
13 #define DISMEC_SRC_CONFIG_H
14 
15 namespace dismec {
17  using real_t = float;
18 
22  constexpr const long CG_MIN_ITER_BOUND = 5;
23 
25  constexpr const real_t CG_DEFAULT_EPSILON = 0.5;
26 
28  constexpr const int MIN_TIME_PER_CHUNK_MS = 5;
29 
30  namespace parallel {
32  constexpr const int COST_PLACE_THREAD = 10;
33 
35  constexpr const int COST_PLACE_HYPER_THREAD = 5;
36  }
37 
39  constexpr const int PREDICTION_RUN_CHUNK_SIZE = 1024;
40 
42  constexpr const int PREDICTION_METRICS_CHUNK_SIZE = 4096;
43 }
44 
45 #endif //DISMEC_SRC_CONFIG_H
constexpr const int COST_PLACE_THREAD
Load balancing cost for placing a thread on a core.
Definition: config.h:32
constexpr const int COST_PLACE_HYPER_THREAD
Load balancing cost for placing a thread on a SMT shared core.
Definition: config.h:35
Main namespace in which all types, classes, and functions are defined.
Definition: app.h:15
constexpr const long CG_MIN_ITER_BOUND
Definition: config.h:22
constexpr const int PREDICTION_RUN_CHUNK_SIZE
Default chunk size for predicting scores.
Definition: config.h:39
constexpr const int MIN_TIME_PER_CHUNK_MS
If the time needed per chunk of work is less than this, we display a warning.
Definition: config.h:28
constexpr const real_t CG_DEFAULT_EPSILON
The default value for the tolerance parameter of the conjugate gradient optimization.
Definition: config.h:25
constexpr const int PREDICTION_METRICS_CHUNK_SIZE
Default chunk size for calculating metrics.
Definition: config.h:42
float real_t
The default type for floating point values.
Definition: config.h:17