-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.h.in
148 lines (123 loc) · 4.93 KB
/
config.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
// SPDX-License-Identifier: LGPL-3.0-or-later
/*
This file is part of FlexiBLAS, a BLAS/LAPACK interface wrapper library.
Copyright (C) 2013-2024 Martin Koehler
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License along
with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef FLEXIBLAS_CONFIG_H
#define FLEXIBLAS_CONFIG_H
#cmakedefine FLEXIBLAS_DEFAULT_LIB_PATH "@FLEXIBLAS_DEFAULT_LIB_PATH@"
#cmakedefine CMAKE_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
#cmakedefine CMAKE_INSTALL_FULL_LIBDIR "@CMAKE_INSTALL_FULL_LIBDIR@"
#cmakedefine CMAKE_INSTALL_FULL_INCLUDEDIR "@CMAKE_INSTALL_FULL_INCLUDEDIR@"
#cmakedefine FLEXIBLAS_LIBRARY_DIR "@FLEXIBLAS_LIBRARY_DIR@"
#cmakedefine FLEXIBLAS_LIBRARY_NAME "@FLEXIBLAS_LIBRARY_NAME@"
#cmakedefine CMAKE_INSTALL_FULL_SYSCONFDIR "@CMAKE_INSTALL_FULL_SYSCONFDIR@"
#cmakedefine FLEXIBLAS_FC_I8FLAG "@FLEXIBLAS_FC_I8FLAG@"
#cmakedefine FLEXIBLAS_INTEGER8
#cmakedefine EXTBLAS
#cmakedefine HAVE_ATTR_ALIAS
#cmakedefine HAVE_ATTR_CONSTRUCTOR
#cmakedefine HAVE_ATTR_HIDDEN
#cmakedefine HAVE_SYSMACRO_H
#cmakedefine HAVE_SYS_STAT_H
#cmakedefine FALLBACK_NAME
#cmakedefine FLEXIBLAS_LAPACK
#cmakedefine FLEXIBLAS_LAPACK_3_12_0
#cmakedefine FLEXIBLAS_LAPACK_3_12_0_WODPRC
#cmakedefine FLEXIBLAS_LAPACK_3_11_0
#cmakedefine FLEXIBLAS_LAPACK_3_11_0_WODPRC
#cmakedefine FLEXIBLAS_LAPACK_3_10_1
#cmakedefine FLEXIBLAS_LAPACK_3_10_1_WODPRC
#cmakedefine FLEXIBLAS_LAPACK_3_10_0
#cmakedefine FLEXIBLAS_LAPACK_3_10_0_WODPRC
#cmakedefine FLEXIBLAS_LAPACK_3_9_1
#cmakedefine FLEXIBLAS_LAPACK_3_9_1_WODPRC
#cmakedefine FLEXIBLAS_LAPACK_3_9_0
#cmakedefine FLEXIBLAS_LAPACK_3_9_0_WODPRC
#cmakedefine FLEXIBLAS_LAPACK_3_8_0
#cmakedefine FLEXIBLAS_LAPACK_3_8_0_WODPRC
#cmakedefine FLEXIBLAS_LAPACK_3_7_0
#cmakedefine FLEXIBLAS_LAPACK_3_7_0_WODPRC
#cmakedefine FLEXIBLAS_LAPACK_3_6_1
#cmakedefine FLEXIBLAS_LAPACK_3_6_1_WODPRC
#cmakedefine FLEXIBLAS_LAPACK_3_6_0
#cmakedefine FLEXIBLAS_LAPACK_3_6_0_WODPRC
#cmakedefine FLEXIBLAS_LAPACK_3_5_0
#cmakedefine FLEXIBLAS_LAPACK_3_4_2
#cmakedefine FLEXIBLAS_LAPACK_3_4_1
#cmakedefine FLEXIBLAS_LAPACK_3_4_0
#cmakedefine FLEXIBLAS_LAPACK_3_3_1
#cmakedefine FLEXIBLAS_LAPACK_3_3_0
#cmakedefine FLEXIBLAS_VERSION "@FlexiBLAS_VERSION@"
#cmakedefine FLEXIBLAS_VERSION_MAJOR @FlexiBLAS_VERSION_MAJOR@
#cmakedefine FLEXIBLAS_VERSION_MINOR @FlexiBLAS_VERSION_MINOR@
#cmakedefine FLEXIBLAS_VERSION_PATCH @FlexiBLAS_VERSION_PATCH@
#cmakedefine FLEXIBLAS_YEARS "@FLEXIBLAS_YEARS@"
#ifndef FLEXIBLAS_VERSION_MINOR
#define FLEXIBLAS_VERSION_MINOR 0
#endif
#ifndef FLEXIBLAS_VERSION_PATCH
#define FLEXIBLAS_VERSION_PATCH 0
#endif
#cmakedefine FLEXIBLAS_RC "@FLEXIBLAS_RC@"
#cmakedefine FLEXIBLAS_RC_DIR "@FLEXIBLAS_RC_DIR@"
#cmakedefine FLEXIBLAS_PREFIX "@FLEXIBLAS_PREFIX@"
#cmakedefine FLEXIBLAS_ABI_IBM
#cmakedefine FLEXIBLAS_ABI_INTEL
#cmakedefine FLEXIBLAS_ABI_GNU
#cmakedefine HAVE_THREAD_LOCAL
#cmakedefine HAVE__THREAD_LOCAL
#cmakedefine HAVE_GNU_THREAD_LOCAL
#cmakedefine HAVE_RTLD_GLOBAL
#cmakedefine HAVE_RTLD_DEEPBIND
#cmakedefine HAVE_RTLD_NOW
#cmakedefine HAVE_RTLD_NODELETE
#define FLEXIBLAS_DEFAULT_BLAS "NETLIB"
#if defined(HAVE_GNU_THREAD_LOCAL)
#define TLS_STORE __thread
#elif defined(HAVE__THREAD_LOCAL)
#define TLS_STORE _Thread_local
#elif defined(HAVE_THREAD_LOCAL)
#define TLS_STORE thread_local
#else
#define TLS_STORE
#warning Thread Local Storage not aviable. FlexiBLAS might cause problems in multithreaded applications.
#endif
#ifndef FALLBACK_NAME
#define FALLBACK_NAME "libflexiblas_netlib"
#endif
#ifndef LAPACK_FALLBACK_NAME
#define LAPACK_FALLBACK_NAME "libflexiblas_fallback_lapack"
#endif
// Hidden function
#ifdef HAVE_ATTR_HIDDEN
#define HIDDEN __attribute__((visibility ("hidden")))
#else
#define HIDDEN
#endif
#ifdef FLEXIBLAS_INTEGER8
#define ENV_FLEXIBLAS "FLEXIBLAS64"
#define ENV_FLEXIBLAS_VERBOSE "FLEXIBLAS64_VERBOSE"
#define ENV_FLEXIBLAS_COLOR_OUTPUT "FLEXIBLAS64_COLOR_OUTPUT"
#define ENV_FLEXIBLAS_HOOK "FLEXIBLAS64_HOOK"
#define ENV_FLEXIBLAS_LIBRARY_PATH "FLEXIBLAS64_LIBRARY_PATH"
#define ENV_FLEXIBLAS_NOLAPACK "FLEXIBLAS64_NOLAPACK"
#else
#define ENV_FLEXIBLAS "FLEXIBLAS"
#define ENV_FLEXIBLAS_VERBOSE "FLEXIBLAS_VERBOSE"
#define ENV_FLEXIBLAS_COLOR_OUTPUT "FLEXIBLAS_COLOR_OUTPUT"
#define ENV_FLEXIBLAS_HOOK "FLEXIBLAS_HOOK"
#define ENV_FLEXIBLAS_LIBRARY_PATH "FLEXIBLAS_LIBRARY_PATH"
#define ENV_FLEXIBLAS_NOLAPACK "FLEXIBLAS_NOLAPACK"
#endif
#endif // Include guard