4fdf9d7369a3755e0fa73ef3a751dd3a2590dc6b
[alexxy/gromacs.git] / src / config.h.cmakein
1 /*
2  * This file is part of the GROMACS molecular simulation package.
3  *
4  * Copyright (c) 2009,2010,2011,2012,2013,2014, by the GROMACS development team, led by
5  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
6  * and including many others, as listed in the AUTHORS file in the
7  * top-level source directory and at http://www.gromacs.org.
8  *
9  * GROMACS is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * as published by the Free Software Foundation; either version 2.1
12  * of the License, or (at your option) any later version.
13  *
14  * GROMACS is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with GROMACS; if not, see
21  * http://www.gnu.org/licenses, or write to the Free Software Foundation,
22  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
23  *
24  * If you want to redistribute modifications to GROMACS, please
25  * consider that scientific software is very special. Version
26  * control is crucial - bugs must be traceable. We will be happy to
27  * consider code for inclusion in the official distribution, but
28  * derived work must not be called official GROMACS. Details are found
29  * in the README & COPYING files - if they are missing, get the
30  * official version at http://www.gromacs.org.
31  *
32  * To help us fund GROMACS development, we humbly ask that you cite
33  * the research papers on the package. Check out http://www.gromacs.org.
34  */
35 /*! \libinternal \file
36  * \brief
37  * Include file for configuration macros from the build system.
38  *
39  * This header is not installed, so headers must not reference macros defined
40  * here.
41  *
42  * \inlibraryapi
43  */
44 #ifndef GMX_CONFIG_H
45 #define GMX_CONFIG_H
46 #include "gromacs/utility/gmx_header_config.h"
47
48 /* TODO: For now, disable Doxygen warnings from here */
49 /*! \cond */
50
51 /* Default location of data files */
52 #define GMXLIB_SEARCH_DIR "@GMXLIB_SEARCH_DIR@"
53
54 /* Default location of data files */
55 #define GMXLIB_FALLBACK "@GMXLIB_FALLBACK@"
56
57 /* Binary suffix for the created binaries */
58 #define GMX_BINARY_SUFFIX "@GMX_BINARY_SUFFIX@"
59
60 /* Source directory for the build */
61 #cmakedefine CMAKE_SOURCE_DIR "@CMAKE_SOURCE_DIR@"
62
63 /* Binary directory for the build */
64 #cmakedefine CMAKE_BINARY_DIR "@CMAKE_BINARY_DIR@"
65
66 /* IEEE754 floating-point format. Memory layout is defined by macros
67  * GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER and GMX_IEEE754_BIG_ENDIAN_WORD_ORDER. 
68  */
69 #cmakedefine GMX_FLOAT_FORMAT_IEEE754
70
71 /* Work around broken calloc() */
72 #cmakedefine GMX_BROKEN_CALLOC
73
74 /* Do not optimize FFTW setups (not needed with SSE FFT kernels) */
75 #cmakedefine GMX_DISABLE_FFTW_MEASURE
76
77 /* Use Built-in FFTPACK FFT library */
78 #cmakedefine GMX_FFT_FFTPACK
79
80 /* Use FFTW3 FFT library */
81 #cmakedefine GMX_FFT_FFTW3
82
83 /* Use Intel MKL FFT library */
84 #cmakedefine GMX_FFT_MKL
85
86 /* Target platform is x86 or x86_64 */
87 #cmakedefine GMX_TARGET_X86
88
89 /* Target platform is BlueGene/Q */
90 #cmakedefine GMX_TARGET_BGQ
91
92 /** Define if we are building for Cygwin */
93 #cmakedefine GMX_CYGWIN
94
95 /** Define if we have sufficient C++11 support */
96 #cmakedefine GMX_CXX11
97
98 /* GCC bug in AVX maskload/maskstore arguments - worked around internally */
99 #cmakedefine GMX_SIMD_X86_AVX_GCC_MASKLOAD_BUG
100
101 /* SSE2 was selected for SIMD instruction set level */
102 #cmakedefine GMX_SIMD_X86_SSE2
103
104 /* SSE4.1 was selected as SIMD instructions */
105 #cmakedefine GMX_SIMD_X86_SSE4_1
106
107 /* AVX 128-bit FMA was selected as SIMD instructions */
108 #cmakedefine GMX_SIMD_X86_AVX_128_FMA
109
110 /* AVX 256-bit was selected as SIMD instructions */
111 #cmakedefine GMX_SIMD_X86_AVX_256
112
113 /* AVX2 256-bit SIMD instruction set level was selected */
114 #cmakedefine GMX_SIMD_X86_AVX2_256
115
116 /* IBM QPX was selected as SIMD instructions (e.g. BlueGene/Q) */
117 #cmakedefine GMX_SIMD_IBM_QPX
118
119 /* Fujitsu Sparc64 HPC-ACE SIMD acceleration */
120 #cmakedefine GMX_SIMD_SPARC64_HPC_ACE
121
122 /* Reference SIMD implementation for testing */
123 #cmakedefine GMX_SIMD_REFERENCE
124
125 /* String for SIMD instruction choice (for writing to log files and stdout) */
126 #define GMX_SIMD_STRING "@GMX_SIMD@"
127
128 /* Calling convention string (if any) for routines with SIMD variable args */
129 #define gmx_simdcall @GMX_SIMD_CALLING_CONVENTION@
130
131 /* Integer byte order is big endian. */
132 #cmakedefine GMX_INTEGER_BIG_ENDIAN
133
134 /* Use our own instead of system XDR libraries */
135 #cmakedefine GMX_INTERNAL_XDR
136
137 /* Compile to use TNG library */
138 #cmakedefine GMX_USE_TNG
139
140 /* Add support for tracing using Extrae */
141 #cmakedefine HAVE_EXTRAE
142
143 /* Use MPI (with mpicc) for parallelization */
144 #cmakedefine GMX_LIB_MPI
145
146 /* MPI_IN_PLACE exists for collective operations */
147 #cmakedefine MPI_IN_PLACE_EXISTS
148
149 /* Make a parallel version of GROMACS using message passing
150    (MPI or thread_mpi) */
151 #cmakedefine GMX_MPI
152
153 /* Use threads_mpi for parallelization */
154 #cmakedefine GMX_THREAD_MPI
155
156 /* Use OpenMP multithreading */
157 #cmakedefine GMX_OPENMP
158
159 /* Ignore calls to nice(3) */
160 #cmakedefine GMX_NO_NICE
161
162 /* Use if can't rename checkpoints */
163 #cmakedefine GMX_NO_RENAME
164
165 /* Ignore calls to system(3) */
166 #cmakedefine GMX_NO_SYSTEM
167
168 /* Use (modified) Gamess-UK for QM-MM calculations */
169 #cmakedefine GMX_QMMM_GAMESS
170
171 /* Use (modified) Gaussian0x for QM-MM calculations */
172 #cmakedefine GMX_QMMM_GAUSSIAN
173
174 /* Use (modified) Mopac 7 for QM-MM calculations */
175 #cmakedefine GMX_QMMM_MOPAC
176
177 /* Use ORCA for QM-MM calculations */
178 #cmakedefine GMX_QMMM_ORCA
179
180 /* Use the GROMACS software 1/sqrt(x) */
181 #cmakedefine GMX_SOFTWARE_INVSQRT
182
183 /* Use sub-counters */
184 #cmakedefine GMX_CYCLE_SUBCOUNTERS
185
186 /* Compile with plugin support */
187 #cmakedefine GMX_USE_PLUGINS
188
189 /* Fallback path for VMD plug-ins */
190 #define GMX_VMD_PLUGIN_PATH "@GMX_VMD_PLUGIN_PATH@"
191
192 /* Define when pthreads are used */
193 #cmakedefine THREAD_PTHREADS
194
195 /* Define when Windows threads are used */
196 #cmakedefine THREAD_WINDOWS
197
198 /* Define native atomic operations are found */
199 #cmakedefine TMPI_ATOMICS
200
201 /* Define for busy wait option  */
202 #cmakedefine TMPI_WAIT_FOR_NO_ONE
203
204 /* Define for copy buffer option */
205 #cmakedefine TMPI_COPY_BUFFER
206
207 /* Define for tmpi warnings option */
208 #cmakedefine TMPI_WARNINGS
209
210 /* Define for profiling option */
211 #cmakedefine TMPI_PROFILE
212
213 /* Define for Linux pthread_setaffinity_np */
214 #cmakedefine HAVE_PTHREAD_SETAFFINITY
215
216 /* Define for X-Windows */
217 #cmakedefine GMX_X11
218
219 /* Enable x86 gcc inline assembly */
220 #cmakedefine GMX_X86_GCC_INLINE_ASM
221
222 /* Use GPU native acceleration */
223 #cmakedefine GMX_GPU
224
225 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
226 #cmakedefine HAVE_FSEEKO
227
228 /* Define to 1 if _fseeki64 (and presumably _fseeki64) exists and is declared. */
229 #cmakedefine HAVE__FSEEKI64
230
231 /* Have io.h (windows)*/
232 #cmakedefine HAVE_IO_H
233
234 /* Define to 1 if you have the posix_memalign() function. */
235 #cmakedefine HAVE_POSIX_MEMALIGN
236
237 /* Define to 1 if you have the memalign() function. */
238 #cmakedefine HAVE_MEMALIGN
239
240 /* Define to 1 if you have the MSVC _aligned_malloc() function. */
241 #cmakedefine HAVE__ALIGNED_MALLOC
242
243 /* Define to 1 if you have the clock_gettime() function. */
244 #cmakedefine HAVE_CLOCK_GETTIME
245
246 /* Define to 1 if you have the gettimeofday() function. */
247 #cmakedefine HAVE_GETTIMEOFDAY
248
249 /* Define to 1 if you have the rdtscp instruction. */
250 #cmakedefine HAVE_RDTSCP
251
252 /* Define to 1 if you have the isfinite() function. */
253 #cmakedefine HAVE_ISFINITE
254
255 /* Define to 1 if you have the _isfinite() function. */
256 #cmakedefine HAVE__ISFINITE
257
258 /* Define to 1 if you have the _finite() function. */
259 #cmakedefine HAVE__FINITE
260
261 /* Define to 1 if you have the fsync() function. */
262 #cmakedefine HAVE_FSYNC
263
264 /* Define to 1 if you have the Windows _commit() function. */
265 #cmakedefine HAVE__COMMIT
266
267 /* Define to 1 if you have the fileno() function. */
268 #cmakedefine HAVE_FILENO
269
270 /* Define to 1 if you have the _fileno() function. */
271 #cmakedefine HAVE__FILENO
272
273 /* Define to 1 if you have the sigaction() function. */
274 #cmakedefine HAVE_SIGACTION
275
276 /* Define to 1 if you have the rsqrt() function. */
277 #cmakedefine HAVE_RSQRT
278
279 /* Define to 1 if you have the rsqrtf() function. */
280 #cmakedefine HAVE_RSQRTF
281
282 /* Define to 1 if you have the sqrtf() function. */
283 #cmakedefine HAVE_SQRTF
284
285 /* Define to 1 if yo have the <unistd.h> header file. */
286 #cmakedefine HAVE_UNISTD_H
287
288 /* Define to 1 if yo have the <pwd.h> header file. */
289 #cmakedefine HAVE_PWD_H
290
291 /* Define to 1 if yo have the <dirent.h> header file. */
292 #cmakedefine HAVE_DIRENT_H
293
294 /* Define to 1 if you have the <sys/time.h> header file. */
295 #cmakedefine HAVE_SYS_TIME_H
296
297 /* Define to 1 if you have the <x86intrin.h> header file */
298 #cmakedefine HAVE_X86INTRIN_H
299
300 /* Define to 1 if you have the <intrin.h> header file */
301 #cmakedefine HAVE_INTRIN_H
302
303 /* Define to 1 if you have the <sched.h> header */
304 #cmakedefine HAVE_SCHED_H
305
306 /* Define to 1 if you have the POSIX <regex.h> header file. */
307 #cmakedefine HAVE_POSIX_REGEX
308
309 /* Define to 1 if you have the C++11 <regex> header file. */
310 #cmakedefine HAVE_CXX11_REGEX
311
312 /* Define to 1 if you have the sysconf() function */
313 #cmakedefine HAVE_SYSCONF
314
315 /* Define to 1 if you have the all the affinity functions in sched.h */
316 #cmakedefine HAVE_SCHED_AFFINITY
317
318 /* Bytes in IEEE fp word are in big-endian order if set, little-endian if not.
319    Only relevant when FLOAT_FORMAT_IEEE754 is defined. */
320 #cmakedefine GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER
321
322 /* The two words in a double precision variable are in b ig-endian order if
323    set, little-endian if not. Do NOT assume this is the same as the byte
324    order! Only relevant when FLOAT_FORMAT_IEEE754 is defined. */
325 #cmakedefine GMX_IEEE754_BIG_ENDIAN_WORD_ORDER
326
327 /* Define if SIGUSR1 is present */
328 #cmakedefine HAVE_SIGUSR1
329
330 /* Enable gromacs quotes */
331 #cmakedefine GMX_COOL_QUOTES
332
333 /* default name mangling maybe wrong on exotic plattforms */
334 #define F77_FUNC(name,NAME) name ## _
335
336 /* Define if we have pipes */
337 #cmakedefine HAVE_PIPES
338
339 /* Define if we have zlib */
340 #cmakedefine HAVE_ZLIB
341
342 #endif
343
344 /*! \endcond */