OpenMEEG
OpenMEEGMathsConfig.h
Go to the documentation of this file.
1 /*
2 Project Name : OpenMEEG
3 
4 © INRIA and ENPC (contributors: Geoffray ADDE, Maureen CLERC, Alexandre
5 GRAMFORT, Renaud KERIVEN, Jan KYBIC, Perrine LANDREAU, Théodore PAPADOPOULO,
6 Emmanuel OLIVI
7 Maureen.Clerc.AT.inria.fr, keriven.AT.certis.enpc.fr,
8 kybic.AT.fel.cvut.cz, papadop.AT.inria.fr)
9 
10 The OpenMEEG software is a C++ package for solving the forward/inverse
11 problems of electroencephalography and magnetoencephalography.
12 
13 This software is governed by the CeCILL-B license under French law and
14 abiding by the rules of distribution of free software. You can use,
15 modify and/ or redistribute the software under the terms of the CeCILL-B
16 license as circulated by CEA, CNRS and INRIA at the following URL
17 "http://www.cecill.info".
18 
19 As a counterpart to the access to the source code and rights to copy,
20 modify and redistribute granted by the license, users are provided only
21 with a limited warranty and the software's authors, the holders of the
22 economic rights, and the successive licensors have only limited
23 liability.
24 
25 In this respect, the user's attention is drawn to the risks associated
26 with loading, using, modifying and/or developing or reproducing the
27 software by the user in light of its specific status of free software,
28 that may mean that it is complicated to manipulate, and that also
29 therefore means that it is reserved for developers and experienced
30 professionals having in-depth computer knowledge. Users are therefore
31 encouraged to load and test the software's suitability as regards their
32 requirements in conditions enabling the security of their systems and/or
33 data to be ensured and, more generally, to use and operate it in the
34 same conditions as regards security.
35 
36 The fact that you are presently reading this means that you have had
37 knowledge of the CeCILL-B license and that you accept its terms.
38 */
39 
40 #pragma once
41 
42 // cmake configuration.
43 
44 #include <OpenMEEGConfigure.h>
45 #include <OpenMEEGMaths_Export.h>
46 
47 // specially for windows
48 #if WIN32
49  #pragma inline_recursion (on)
50  #pragma inline_depth (255) // MSVC static build with MKL cause LNK2019 error
51  #pragma warning( disable : 4530) //MSVC standard library can't be inlined
52  #pragma warning( disable : 4996) //MSVC warning C4996: declared deprecated
53  #if defined(_MSC_VER)
54  // Enable MSVC compiler warning messages that are useful but off by default.
55  # pragma warning ( default : 4263 ) /* no override, call convention differs */
56  // Disable MSVC compiler warning messages that often occur in valid code.
57  # pragma warning ( disable : 4097 ) /* typedef is synonym for class */
58  # pragma warning ( disable : 4127 ) /* conditional expression is constant */
59  # pragma warning ( disable : 4244 ) /* possible loss in conversion */
60  # pragma warning ( disable : 4251 ) /* missing DLL-interface */
61  # pragma warning ( disable : 4305 ) /* truncation from type1 to type2 */
62  # pragma warning ( disable : 4309 ) /* truncation of constant value */
63  # pragma warning ( disable : 4514 ) /* unreferenced inline function */
64  # pragma warning ( disable : 4706 ) /* assignment in conditional expression */
65  # pragma warning ( disable : 4710 ) /* function not inlined */
66  # pragma warning ( disable : 4786 ) /* identifier truncated in debug info */
67  # pragma warning ( disable : 4244 ) /* possible loss of data ('float' to 'mat_uint32_t') */
68  # pragma warning ( disable : 4267 ) /* possible loss of data (size_t to int) */
69  #endif
70 #endif
71 
72 // Blas/Lapack configuration
73 
74 #if defined(MKL_ILP64) && defined(USE_MKL)
75 typedef long long int BLAS_INT;
76 #else
77 typedef int BLAS_INT;
78 #endif
79 
80 #if defined(USE_LAPACK)
81 #include <BlasLapackImplementations/OpenMEEGMathsBlasLapackConfig.h>
82 #elif defined(USE_MKL)
83 #include <BlasLapackImplementations/OpenMEEGMathsMKLConfig.h>
84 #elif defined(USE_ATLAS)
85 #include <BlasLapackImplementations/OpenMEEGMathsAtlasConfig.h>
86 #elif defined(USE_OPENBLAS)
87 #include <BlasLapackImplementations/OpenMEEGMathsOpenBLASConfig.h>
88 #elif defined(USE_VECLIB)
89 #include <BlasLapackImplementations/OpenMEEGMathsvecLibConfig.h>
90 #else
91 #warning "No blas/lapack implementation selected."
92 #endif
93 
94 //#define inline __forceinline
95 //#define inline __attribute__((always_inline))
96 //#define inline __attribute__((weak)) inline
97 
98 
99 #define DPOTF2 LAPACK(dpotf2,DPOTF2)
100 #define DSPEVD LAPACK(dspevd,DSPEVD)
BLAS_INT
int BLAS_INT
Definition: OpenMEEGMathsConfig.h:77