Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Sacado_ConfigDefs.h
Go to the documentation of this file.
1 /*
2 @HEADER
3 *************************************************************************
4 
5  Sacado Package
6  Copyright (2006) Sandia Corporation
7 
8 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9 the U.S. Government retains certain rights in this software.
10 
11 This library is free software; you can redistribute it and/or modify
12 it under the terms of the GNU Lesser General Public License as
13 published by the Free Software Foundation; either version 2.1 of the
14 License, or (at your option) any later version.
15 
16 This library is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
20 
21 You should have received a copy of the GNU Lesser General Public
22 License along with this library; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
24 USA
25 Questions? Contact David M. Gay (dmgay@sandia.gov) or Eric T. Phipps
26 (etphipp@sandia.gov).
27 
28 ************************************************************************
29 @HEADER
30 */
31 
32 #ifndef SACADO_CONFIGDEFS_H
33 #define SACADO_CONFIGDEFS_H
34 
35 #ifndef __cplusplus
36 #define __cplusplus
37 #endif
38 
39 /*
40  * The macros PACKAGE, PACKAGE_NAME, etc, get defined for each package and
41  * need to be undef'd here to avoid warnings when this file is included from
42  * another package.
43  * KL 11/25/02
44  */
45 #ifdef PACKAGE
46 #undef PACKAGE
47 #endif
48 
49 #ifdef PACKAGE_NAME
50 #undef PACKAGE_NAME
51 #endif
52 
53 #ifdef PACKAGE_BUGREPORT
54 #undef PACKAGE_BUGREPORT
55 #endif
56 
57 #ifdef PACKAGE_STRING
58 #undef PACKAGE_STRING
59 #endif
60 
61 #ifdef PACKAGE_TARNAME
62 #undef PACKAGE_TARNAME
63 #endif
64 
65 #ifdef PACKAGE_VERSION
66 #undef PACKAGE_VERSION
67 #endif
68 
69 #ifdef VERSION
70 #undef VERSION
71 #endif
72 
73 #ifndef TRILINOS_NO_CONFIG_H
74 #include <Sacado_config.h>
75 #endif
76 
77 /* Kokkos macros */
78 
79 #ifdef HAVE_SACADO_KOKKOSCORE
80 #include "Kokkos_Macros.hpp"
81 #endif
82 
83 /* Define them even if Kokkos isn't enabled */
84 
85 #ifndef KOKKOS_FUNCTION
86 #define KOKKOS_FUNCTION /* */
87 #endif
88 
89 #ifndef KOKKOS_DEFAULTED_FUNCTION
90 #define KOKKOS_DEFAULTED_FUNCTION /* */
91 #endif
92 
93 #ifndef KOKKOS_INLINE_FUNCTION
94 #define KOKKOS_INLINE_FUNCTION inline
95 #endif
96 
97 #ifndef KOKKOS_FORCEINLINE_FUNCTION
98 #define KOKKOS_FORCEINLINE_FUNCTION inline
99 #endif
100 
101 /* Determine if the new fad design is supported. Requies C++11,
102  and if gcc, version 4.8 or greater.
103 */
104 #if defined(HAVE_SACADO_CXX11)
105 # if defined(__GNUC__) && !defined(__clang__)
106 # if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 8) )
107 # define SACADO_ENABLE_NEW_DESIGN 1
108 # endif
109 # else
110 # define SACADO_ENABLE_NEW_DESIGN 1
111 # endif
112 #endif
113 
114 #endif /* SACADO_CONFIGDEFS_H */