Home
Get Started
Documentation
Community
Google Summer of Code
FAQ
GitHub
Home
Get Started
Documentation
Community
Google Summer of Code
FAQ
GitHub
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. This only matters for
40
// Armadillo 8.300.1 and newer.
41
#if (ARMA_VERSION_MAJOR > 8) || \
42
((ARMA_VERSION_MAJOR == 8) && (ARMA_VERSION_MINOR > 300)) || \
43
((ARMA_VERSION_MAJOR == 8) && (ARMA_VERSION_MINOR == 300) && \
44
(ARMA_VERSION_PATCH >= 1))
45
#ifdef ARMA_USE_OPENMP
46
#ifdef MLPACK_ARMA_DONT_USE_OPENMP
47
#pragma message "mlpack was compiled without OpenMP support, but you are \
48
compiling with OpenMP support (either -fopenmp or another option). This will \
49
almost certainly cause irreparable disaster. Either compile your application \
50
*without* OpenMP support (i.e. remove -fopenmp or another flag), or, recompile \
51
mlpack with OpenMP support."
52
#endif
53
#else
54
#ifdef MLPACK_ARMA_USE_OPENMP
55
#pragma message "mlpack was compiled with OpenMP support, but you are \
56
compiling without OpenMP support. This will almost certainly cause \
57
irreparable disaster. Either enable OpenMP support in your application (e.g., \
58
add -fopenmp to your compiler command line), or, recompile mlpack *without* \
59
OpenMP support."
60
#endif
61
#endif
62
#endif
63
64
#endif
arma_config.hpp
This is an autogenerated file which contains the configuration of Armadillo at the time mlpack was bu...