mlpack 3.4.2
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 \
24compiling with ARMA_64BIT_WORD. This will almost certainly cause irreparable \
25disaster. Either disable ARMA_64BIT_WORD in your application which is using \
26mlpack, or, recompile mlpack against a version of Armadillo which has \
27ARMA_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 \
32compiling without ARMA_64BIT_WORD. This will almost certainly cause \
33irreparable disaster. Either enable ARMA_64BIT_WORD in your application which \
34is using mlpack, or, recompile mlpack against a version of Armadillo which has \
35ARMA_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 \
43compiling with OpenMP support (either -fopenmp or another option). This will \
44almost certainly cause irreparable disaster. Either compile your application \
45*without* OpenMP support (i.e. remove -fopenmp or another flag), or, recompile \
46mlpack 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 \
51compiling without OpenMP support. This will almost certainly cause \
52irreparable disaster. Either enable OpenMP support in your application (e.g., \
53add -fopenmp to your compiler command line), or, recompile mlpack *without* \
54OpenMP 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...