config.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 // Armadillo
4 #define ARMA_DONT_PRINT_ERRORS
5 #define ARMA_USE_CXX11
6 #include <armadillo>
7 
8 // MPI support must be added via CMake, to ensure that we also link against it.
9 // Therefore, CMake will decide whether SUPPORT_MPI is to be defined or not.
10 /* #undef SUPPORT_MPI */
11 
12 // OpenMP support must be added via CMake, to ensure that we also link against it.
13 // Therefore, CMake will decide whether SUPPORT_OPENMP is to be defined or not.
14 /* #undef SUPPORT_OPENMP */
15 
16 // The maximal number of threads to be supported by PASS.
17 // Larger values may result in a greater start up time and decrese efficency.
18 // In case `MAXIMAL_NUMBER_OF_THREADS` was not defined before, we fall back to the value below, determined via CMake.
19 #if !defined(MAXIMAL_NUMBER_OF_THREADS)
20 
21 #define MAXIMAL_NUMBER_OF_THREADS 1
22 
23 #endif
24 
25 namespace pass
26 {
32  extern bool is_verbose;
33 
39  extern int global_number_of_runs;
45  extern double precision;
51  extern arma::uword parameter_setting_number_of_runs;
52 
53  int thread_number();
54  int number_of_threads();
55  int node_rank();
56  int number_of_nodes();
57 }
arma::uword parameter_setting_number_of_runs
double precision
bool is_verbose
int node_rank()
Definition: config.cpp:97
int number_of_nodes()
Definition: config.cpp:74
Definition: adaptive_parameter_search.hpp:5
int thread_number()
Definition: config.cpp:61
int global_number_of_runs
int number_of_threads()
Definition: config.cpp:48