arma_config_check.hpp
Go to the documentation of this file.
1 
16 #ifndef MLPACK_CORE_UTIL_ARMA_CONFIG_CHECK_HPP
17 #define MLPACK_CORE_UTIL_ARMA_CONFIG_CHECK_HPP
18 
19 #include "arma_config.hpp"
20 
21 #ifdef ARMA_64BIT_WORD
22  #ifdef MLPACK_ARMA_NO_64BIT_WORD
23  #pragma message "mlpack was compiled without ARMA_64BIT_WORD, but you are \
24 compiling with ARMA_64BIT_WORD. This will almost certainly cause irreparable \
25 disaster. Either disable ARMA_64BIT_WORD in your application which is using \
26 mlpack, or, recompile mlpack against a version of Armadillo which has \
27 ARMA_64BIT_WORD enabled."
28  #endif
29 #else
30  #ifdef MLPACK_ARMA_64BIT_WORD
31  #pragma message "mlpack was compiled with ARMA_64BIT_WORD, but you are \
32 compiling without ARMA_64BIT_WORD. This will almost certainly cause \
33 irreparable disaster. Either enable ARMA_64BIT_WORD in your application which \
34 is using mlpack, or, recompile mlpack against a version of Armadillo which has \
35 ARMA_64BIT_WORD disabled."
36  #endif
37 #endif
38 
39 // Check if OpenMP was enabled when mlpack was built.
40 #ifdef ARMA_USE_OPENMP
41  #ifdef MLPACK_ARMA_DONT_USE_OPENMP
42  #pragma message "mlpack was compiled without OpenMP support, but you are \
43 compiling with OpenMP support (either -fopenmp or another option). This will \
44 almost certainly cause irreparable disaster. Either compile your application \
45 *without* OpenMP support (i.e. remove -fopenmp or another flag), or, recompile \
46 mlpack with OpenMP support."
47  #endif
48 #else
49  #ifdef MLPACK_ARMA_USE_OPENMP
50  #pragma message "mlpack was compiled with OpenMP support, but you are \
51 compiling without OpenMP support. This will almost certainly cause \
52 irreparable disaster. Either enable OpenMP support in your application (e.g., \
53 add -fopenmp to your compiler command line), or, recompile mlpack *without* \
54 OpenMP support."
55  #endif
56 #endif
57 
58 #endif
This is an autogenerated file which contains the configuration of Armadillo at the time mlpack was bu...