| 1 |
#if 0 |
| 2 |
/* |
| 3 |
* (C) Copyright 2013 ECMWF. |
| 4 |
* |
| 5 |
* This software is licensed under the terms of the Apache Licence Version 2.0 |
| 6 |
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. |
| 7 |
* In applying this licence, ECMWF does not waive the privileges and immunities |
| 8 |
* granted to it by virtue of its status as an intergovernmental organisation |
| 9 |
* nor does it submit to any jurisdiction. |
| 10 |
*/ |
| 11 |
// clang-format off |
| 12 |
#endif |
| 13 |
|
| 14 |
#ifndef atlas_library_defines_h |
| 15 |
#define atlas_library_defines_h |
| 16 |
|
| 17 |
#define ATLAS_HAVE_OMP @atlas_HAVE_OMP_CXX@ |
| 18 |
#define ATLAS_OMP_TASK_SUPPORTED @ATLAS_OMP_TASK_SUPPORTED@ |
| 19 |
#define ATLAS_OMP_TASK_UNTIED_SUPPORTED @ATLAS_OMP_TASK_UNTIED_SUPPORTED@ |
| 20 |
#define ATLAS_HAVE_GPU @atlas_HAVE_GPU@ |
| 21 |
#define ATLAS_HAVE_GPU_AWARE_MPI @atlas_HAVE_GPU_AWARE_MPI@ |
| 22 |
#define ATLAS_HAVE_ACC @atlas_HAVE_ACC@ |
| 23 |
#define ATLAS_HAVE_QHULL @atlas_HAVE_QHULL@ |
| 24 |
#define ATLAS_HAVE_CGAL @atlas_HAVE_CGAL@ |
| 25 |
#define ATLAS_HAVE_TESSELATION @atlas_HAVE_TESSELATION@ |
| 26 |
#define ATLAS_HAVE_FORTRAN @atlas_HAVE_FORTRAN@ |
| 27 |
#define ATLAS_HAVE_EIGEN @atlas_HAVE_EIGEN@ |
| 28 |
#define ATLAS_HAVE_FFTW @atlas_HAVE_FFTW@ |
| 29 |
#define ATLAS_HAVE_POCKETFFT @atlas_HAVE_POCKETFFT@ |
| 30 |
#define ATLAS_HAVE_MPI @atlas_HAVE_MPI@ |
| 31 |
#define ATLAS_HAVE_PROJ @atlas_HAVE_PROJ@ |
| 32 |
#define ATLAS_BITS_GLOBAL @ATLAS_BITS_GLOBAL@ |
| 33 |
#define ATLAS_ARRAYVIEW_BOUNDS_CHECKING @atlas_HAVE_BOUNDSCHECKING@ |
| 34 |
#define ATLAS_INDEXVIEW_BOUNDS_CHECKING @atlas_HAVE_BOUNDSCHECKING@ |
| 35 |
#define ATLAS_VECTOR_BOUNDS_CHECKING @atlas_HAVE_BOUNDSCHECKING@ |
| 36 |
#define ATLAS_INIT_SNAN @atlas_HAVE_INIT_SNAN@ |
| 37 |
#define ATLAS_HAVE_GRIDTOOLS_STORAGE @atlas_HAVE_GRIDTOOLS_STORAGE@ |
| 38 |
#define ATLAS_GRIDTOOLS_STORAGE_BACKEND_HOST @ATLAS_GRIDTOOLS_STORAGE_BACKEND_HOST@ |
| 39 |
#define ATLAS_GRIDTOOLS_STORAGE_BACKEND_CUDA @ATLAS_GRIDTOOLS_STORAGE_BACKEND_CUDA@ |
| 40 |
#define ATLAS_HAVE_TRANS @atlas_HAVE_ECTRANS@ |
| 41 |
#define ATLAS_HAVE_ECTRANS @atlas_HAVE_PACKAGE_ECTRANS@ |
| 42 |
#define ATLAS_HAVE_FEENABLEEXCEPT @atlas_HAVE_FEENABLEEXCEPT@ |
| 43 |
#define ATLAS_HAVE_FEDISABLEEXCEPT @atlas_HAVE_FEDISABLEEXCEPT@ |
| 44 |
#define ATLAS_BUILD_TYPE_DEBUG @atlas_BUILD_TYPE_DEBUG@ |
| 45 |
#define ATLAS_BUILD_TYPE_RELEASE @atlas_BUILD_TYPE_RELEASE@ |
| 46 |
#define ATLAS_ECKIT_VERSION_INT @ATLAS_ECKIT_VERSION_INT@ |
| 47 |
#define ATLAS_ECTRANS_VERSION_INT @ATLAS_ECTRANS_VERSION_INT@ |
| 48 |
#define ATLAS_ECKIT_DEVELOP @ATLAS_ECKIT_DEVELOP@ |
| 49 |
#define ATLAS_HAVE_FUNCTIONSPACE @atlas_HAVE_ATLAS_FUNCTIONSPACE@ |
| 50 |
|
| 51 |
#define ATLAS_BITS_LOCAL @ATLAS_BITS_LOCAL@ |
| 52 |
|
| 53 |
#if defined( __GNUC__ ) || defined( __clang__ ) |
| 54 |
#define ATLAS_MAYBE_UNUSED __attribute__( ( unused ) ) |
| 55 |
#define ATLAS_ALWAYS_INLINE __attribute__( ( always_inline ) ) inline |
| 56 |
#else |
| 57 |
#define ATLAS_MAYBE_UNUSED |
| 58 |
#define ATLAS_ALWAYS_INLINE inline |
| 59 |
#endif |
| 60 |
|
| 61 |
#define ATLAS_UNREACHABLE() __builtin_unreachable() |
| 62 |
|
| 63 |
#if defined(__NVCOMPILER) |
| 64 |
# define ATLAS_SUPPRESS_WARNINGS_PUSH _Pragma( "diag push" ) |
| 65 |
# define ATLAS_SUPPRESS_WARNINGS_POP _Pragma( "diag pop" ) |
| 66 |
# define ATLAS_SUPPRESS_WARNINGS_INTEGER_SIGN_CHANGE _Pragma( "diag_suppress integer_sign_change" ) |
| 67 |
# define ATLAS_SUPPRESS_WARNINGS_CODE_IS_UNREACHABLE _Pragma( "diag_suppress code_is_unreachable" ) |
| 68 |
#elif defined(__INTEL_LLVM_COMPILER) |
| 69 |
# define ATLAS_SUPPRESS_WARNINGS_PUSH _Pragma( "clang diagnostic push") |
| 70 |
# define ATLAS_SUPPRESS_WARNINGS_POP _Pragma( "clang diagnostic pop" ) |
| 71 |
# define ATLAS_SUPPRESS_WARNINGS_UNUSED_BUT_SET_VARIABLE _Pragma( "clang diagnostic ignored \"-Wunused-but-set-variable\"") |
| 72 |
#elif defined(__INTEL_COMPILER) |
| 73 |
# define ATLAS_SUPPRESS_WARNINGS_PUSH _Pragma( "warning push" ) |
| 74 |
# define ATLAS_SUPPRESS_WARNINGS_POP _Pragma( "warning pop" ) |
| 75 |
# define ATLAS_SUPPRESS_WARNINGS_INTEGER_SIGN_CHANGE _Pragma( "warning disable 68" ) |
| 76 |
# define ATLAS_SUPPRESS_WARNINGS_BOTH_INLINE_NOINLINE _Pragma( "warning disable 2196" ) |
| 77 |
#elif defined(__clang__) |
| 78 |
# define ATLAS_SUPPRESS_WARNINGS_PUSH _Pragma( "clang diagnostic push") |
| 79 |
# define ATLAS_SUPPRESS_WARNINGS_POP _Pragma( "clang diagnostic pop" ) |
| 80 |
# define ATLAS_SUPPRESS_WARNINGS_UNUSED_BUT_SET_VARIABLE _Pragma( "clang diagnostic ignored \"-Wunused-but-set-variable\"") |
| 81 |
#elif defined(__GNUC__) |
| 82 |
# define ATLAS_SUPPRESS_WARNINGS_PUSH _Pragma( "GCC diagnostic push" ) \ |
| 83 |
_Pragma( "GCC diagnostic ignored \"-Wpragmas\"" ) \ |
| 84 |
_Pragma( "GCC diagnostic ignored \"-Wunknown-warning-option\"" ) |
| 85 |
# define ATLAS_SUPPRESS_WARNINGS_POP _Pragma( "GCC diagnostic pop" ) |
| 86 |
# define ATLAS_SUPPRESS_WARNINGS_TEMPLATE_ID_CDTOR _Pragma( "GCC diagnostic ignored \"-Wtemplate-id-cdtor\"" ) |
| 87 |
#endif |
| 88 |
|
| 89 |
|
| 90 |
#if !defined(ATLAS_SUPPRESS_WARNINGS_PUSH) |
| 91 |
# define ATLAS_SUPPRESS_WARNINGS_PUSH |
| 92 |
#endif |
| 93 |
#if !defined(ATLAS_SUPPRESS_WARNINGS_POP) |
| 94 |
# define ATLAS_SUPPRESS_WARNINGS_POP |
| 95 |
#endif |
| 96 |
#if !defined(ATLAS_SUPPRESS_WARNINGS_INTEGER_SIGN_CHANGE) |
| 97 |
# define ATLAS_SUPPRESS_WARNINGS_INTEGER_SIGN_CHANGE |
| 98 |
#endif |
| 99 |
#if !defined(ATLAS_SUPPRESS_WARNINGS_CODE_IS_UNREACHABLE) |
| 100 |
# define ATLAS_SUPPRESS_WARNINGS_CODE_IS_UNREACHABLE |
| 101 |
#endif |
| 102 |
#if !defined(ATLAS_SUPPRESS_WARNINGS_TEMPLATE_ID_CDTOR) |
| 103 |
# define ATLAS_SUPPRESS_WARNINGS_TEMPLATE_ID_CDTOR |
| 104 |
#endif |
| 105 |
#if !defined(ATLAS_SUPPRESS_WARNINGS_UNUSED_BUT_SET_VARIABLE) |
| 106 |
# define ATLAS_SUPPRESS_WARNINGS_UNUSED_BUT_SET_VARIABLE |
| 107 |
#endif |
| 108 |
#if !defined(ATLAS_SUPPRESS_WARNINGS_BOTH_INLINE_NOINLINE) |
| 109 |
# define ATLAS_SUPPRESS_WARNINGS_BOTH_INLINE_NOINLINE |
| 110 |
#endif |
| 111 |
|
| 112 |
#endif |
| 113 |
|