Merge "Continuation of documentation for expanded ensemble." into release-4-6
[alexxy/gromacs.git] / src / config.h.cmakein
1 /*
2  * This file is part of the GROMACS molecular simulation package.
3  *
4  * Copyright (c) 2012, by the GROMACS development team, led by
5  * David van der Spoel, Berk Hess, Erik Lindahl, and including many
6  * others, as listed in the AUTHORS file in the top-level source
7  * 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 /* Manually created from config.h.in to work with cmake */
36
37 /* Disable warnings about double-to-float conversion accuracy loss on MSVC */
38 #ifdef _MSC_VER
39 #pragma warning (disable : 4305)
40 #pragma warning (disable : 4244)
41 #pragma warning (disable : 4101)
42 #pragma warning (disable : 4996)
43 #pragma warning (disable : 4267)
44 #pragma warning (disable : 4090)
45 #endif
46
47 /* Name of package (translate from cmake to autoconf macro name) */
48 #define PACKAGE  "@PROJECT_NAME@"
49
50 /* Version number of package (translate from cmake to autoconf macro name) */
51 #define VERSION  "@PROJECT_VERSION@"
52
53 /* Use the version string from generated version.h */
54 #cmakedefine USE_VERSION_H
55
56 /* Default location of data files */
57 #define GMXLIBDIR "@GMXLIBDIR@"
58
59 /* Turn off water-water neighborlist optimization only - not used right now */
60 #cmakedefine DISABLE_WATERWATER_NLIST
61
62 /* Turn off all water neighborlist optimization - not used right now */
63 #cmakedefine DISABLE_WATER_NLIST
64
65 /* IEEE754 floating-point format. Memory layout is defined by macros
66  * GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER and GMX_IEEE754_BIG_ENDIAN_WORD_ORDER. 
67  */
68 #cmakedefine GMX_FLOAT_FORMAT_IEEE754
69
70 /* Work around broken calloc() */
71 #cmakedefine GMX_BROKEN_CALLOC
72
73 /* Enable special hacks for Cray XT3 */
74 #cmakedefine GMX_CRAY_XT3
75
76 /* Do not optimize FFTW setups (not needed with SSE FFT kernels) */
77 #cmakedefine GMX_DISABLE_FFTW_MEASURE
78
79 /* Compile in double precision */
80 #cmakedefine GMX_DOUBLE
81
82 /* Use Built-in FFTPACK FFT library */
83 #cmakedefine GMX_FFT_FFTPACK
84
85 /* Use FFTW3 FFT library */
86 #cmakedefine GMX_FFT_FFTW3
87
88 /* Use Intel MKL FFT library */
89 #cmakedefine GMX_FFT_MKL
90
91 /* Use AMD core math library */
92 #cmakedefine GMX_FFT_ACML
93
94 /* SSE2 instructions available */
95 #cmakedefine GMX_X86_SSE2
96
97 /* SSE4.1 instructions available */
98 #cmakedefine GMX_X86_SSE4_1
99
100 /* AVX 128-bit FMA instructions available */
101 #cmakedefine GMX_X86_AVX_128_FMA
102
103 /* AVX 256-bit instructions available */
104 #cmakedefine GMX_X86_AVX_256
105
106 /* GCC bug in AVX maskload/maskstore arguments - worked around internally */
107 #cmakedefine GMX_X86_AVX_GCC_MASKLOAD_BUG
108
109 /* SSE2 was selected as CPU acceleration level */
110 #cmakedefine GMX_CPU_ACCELERATION_X86_SSE2
111
112 /* SSE4.1 was selected as CPU acceleration level */
113 #cmakedefine GMX_CPU_ACCELERATION_X86_SSE4_1
114
115 /* AVX 128-bit FMA was selected as CPU acceleration level */
116 #cmakedefine GMX_CPU_ACCELERATION_X86_AVX_128_FMA
117
118 /* AVX 256-bit was selected as CPU acceleration level */
119 #cmakedefine GMX_CPU_ACCELERATION_X86_AVX_256
120
121 /* IBM QPX was selected as CPU acceleration type (e.g. BlueGene/Q) */
122 #cmakedefine GMX_CPU_ACCELERATION_IBM_QPX
123
124 /* String for CPU acceleration choice (for writing to log files and stdout) */
125 #define GMX_CPU_ACCELERATION_STRING "@GMX_CPU_ACCELERATION@"
126
127 /* Integer byte order is big endian. */
128 #cmakedefine GMX_INTEGER_BIG_ENDIAN 
129
130 /* Use our own instead of system XDR libraries */
131 #cmakedefine GMX_INTERNAL_XDR
132
133 /* Use MPI (with mpicc) for parallelization */
134 #cmakedefine GMX_LIB_MPI
135
136 /* MPI_IN_PLACE exists for collective operations */
137 #cmakedefine MPI_IN_PLACE_EXISTS
138
139 /* Make a parallel version of GROMACS using message passing 
140    (MPI or thread_mpi) */
141 #cmakedefine GMX_MPI
142
143 /* Use threads_mpi for parallelization */
144 #cmakedefine GMX_THREAD_MPI
145
146 /* Use OpenMP multithreading */
147 #cmakedefine GMX_OPENMP
148
149 /* Ignore calls to nice(3) */
150 #cmakedefine GMX_NO_NICE
151
152 /* Ignore calls to system(3) */
153 #cmakedefine GMX_NO_SYSTEM
154
155 /* Use (modified) Gamess-UK for QM-MM calculations */
156 #cmakedefine GMX_QMMM_GAMESS
157
158 /* Use (modified) Gaussian0x for QM-MM calculations */
159 #cmakedefine GMX_QMMM_GAUSSIAN
160
161 /* Use (modified) Mopac 7 for QM-MM calculations */
162 #cmakedefine GMX_QMMM_MOPAC
163
164 /* Use the GROMACS software 1/sqrt(x) */
165 #cmakedefine GMX_SOFTWARE_INVSQRT
166
167 /* Use sub-counters */
168 #cmakedefine GMX_CYCLE_SUBCOUNTERS
169
170 /* Compile with plugin support */
171 #cmakedefine GMX_USE_PLUGINS
172
173 /* Fallback path for VMD plug-ins */
174 #define GMX_VMD_PLUGIN_PATH "@GMX_VMD_PLUGIN_PATH@"
175
176 /* Define when pthreads are used */
177 #cmakedefine THREAD_PTHREADS
178
179 /* Define when Windows threads are used */
180 #cmakedefine THREAD_WINDOWS
181
182 /* Define when thread-MPI atomic operations are available */
183 #cmakedefine TMPI_ATOMICS
184
185 /* Define for busy wait option  */
186 #cmakedefine TMPI_WAIT_FOR_NO_ONE
187
188 /* Define for copy buffer option */
189 #cmakedefine TMPI_COPY_BUFFER
190
191 /* Define for profiling option */
192 #cmakedefine TMPI_PROFILE
193
194 /* Define for Linux pthread_setaffinity */
195 #cmakedefine HAVE_PTHREAD_SETAFFINITY
196
197 /* Define for Windows NUMA-aware allocator functions*/
198 #cmakedefine TMPI_WINDOWS_NUMA_API
199
200 /* Define for sysconf() */
201 #cmakedefine HAVE_SYSCONF
202
203 /* Define for GetSystemInfo() */
204 #cmakedefine HAVE_SYSTEM_INFO
205
206 /* Enable x86 gcc inline assembly */
207 #cmakedefine GMX_X86_GCC_INLINE_ASM
208
209 /* Use GPU native acceleration */
210 #cmakedefine GMX_GPU
211
212 /* Define to 1 if the system has the type gmx_bool. */
213 #cmakedefine HAVE_BOOL
214
215 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
216 #cmakedefine HAVE_FSEEKO
217
218 /* Define to 1 if _fseeki64 (and presumably _fseeki64) exists and is declared. */
219 #cmakedefine HAVE__FSEEKI64
220
221 /* Define to 1 if you have the m library (-lm). */
222 #cmakedefine HAVE_LIBM
223
224 /* Define to 1 if you have the mkl library (-lmkl). */
225 #cmakedefine HAVE_LIBMKL
226
227 /* Define to 1 if you have the gsl library (-lgsl). */
228 #cmakedefine HAVE_LIBGSL
229
230 /* Define to 1 if you have the dl library (-ldl). */
231 #cmakedefine HAVE_LIBDL
232
233 /* Have io.h (windows)*/
234 #cmakedefine HAVE_IO_H
235
236 /* Define to 1 if you have the strcasecmp() function. */
237 #cmakedefine HAVE_STRCASECMP
238
239 /* Define to 1 if you have the strdup() function. */
240 #cmakedefine HAVE_STRDUP
241
242 /* Define to 1 if you have the vfprintf() function. */
243 #cmakedefine HAVE_VFPRINTF
244
245 /* Define to 1 if you have the memcmp() function. */
246 #cmakedefine HAVE_MEMCMP
247
248 /* Define to 1 if you have the posix_memalign() function. */
249 #cmakedefine HAVE_POSIX_MEMALIGN
250
251 /* Define to 1 if you have the memalign() function. */
252 #cmakedefine HAVE_MEMALIGN
253
254 /* Define to 1 if you have the MSVC _aligned_malloc() function. */
255 #cmakedefine HAVE__ALIGNED_MALLOC
256
257 /* Define to 1 if you have the gettimeofday() function. */
258 #cmakedefine HAVE_GETTIMEOFDAY
259
260 /* Define to 1 if you have the cbrt() function. */
261 #cmakedefine HAVE_CBRT
262
263 /* Define to 1 if you have the isnan() function. */
264 #cmakedefine HAVE_ISNAN
265
266 /* Define to 1 if you have the _isnan() function. */
267 #cmakedefine HAVE__ISNAN
268
269 /* Define to 1 if you have the isfinite() function. */
270 #cmakedefine HAVE_ISFINITE
271
272 /* Define to 1 if you have the _isfinite() function. */
273 #cmakedefine HAVE__ISFINITE
274
275 /* Define to 1 if you have the _finite() function. */
276 #cmakedefine HAVE__FINITE
277
278 /* Define to 1 if you have the fsync() function. */
279 #cmakedefine HAVE_FSYNC
280
281 /* Define to 1 if you have the Windows _commit() function. */
282 #cmakedefine HAVE__COMMIT
283
284 /* Define to 1 if you have the fileno() function. */
285 #cmakedefine HAVE_FILENO
286
287 /* Define to 1 if you have the _fileno() function. */
288 #cmakedefine HAVE__FILENO
289
290 /* Define to 1 if you have the sigaction() function. */
291 #cmakedefine HAVE_SIGACTION
292
293 /* Define to 1 if you have the rsqrt() function. */
294 #cmakedefine HAVE_RSQRT
295
296 /* Define to 1 if you have the rsqrtf() function. */
297 #cmakedefine HAVE_RSQRTF
298
299 /* Define to 1 if you have the sqrtf() function. */
300 #cmakedefine HAVE_SQRTF
301
302 /* Define to 1 if you have the <string.h> header file. */
303 #cmakedefine HAVE_STRING_H
304
305 /* Define to 1 if yo have the <math.h> header file. */
306 #cmakedefine HAVE_MATH_H
307
308 /* Define to 1 if yo have the <limits.h> header file. */
309 #cmakedefine HAVE_LIMITS_H
310
311 /* Define to 1 if yo have the <memory.h> header file. */
312 #cmakedefine HAVE_MEMORY_H
313
314 /* Define to 1 if yo have the <unistd.h> header file. */
315 #cmakedefine HAVE_UNISTD_H
316
317 /* Define to 1 if yo have the <direct.h> header file. */
318 #cmakedefine HAVE_DIRECT_H
319
320 /* Define to 1 if yo have the <pwd.h> header file. */
321 #cmakedefine HAVE_PWD_H
322
323 /* Define to 1 if yo have the <stdint.h> header file. */
324 #cmakedefine HAVE_STDINT_H
325
326 /* Define to 1 if yo have the <stdlib.h> header file. */
327 #cmakedefine HAVE_STDLIB_H
328
329 /* Define to 1 if yo have the <pthread.h> header file. */
330 #cmakedefine HAVE_PTHREAD_H
331
332 /* Define to 1 if yo have the <dirent.h> header file. */
333 #cmakedefine HAVE_DIRENT_H
334
335 /* Define to 1 if yo have the <inttypes.h> header file. */
336 #cmakedefine HAVE_INTTYPES_H
337
338 /* Define to 1 if yo have the <regex.h> header file. */
339 #cmakedefine HAVE_REGEX_H
340
341 /* Define to 1 if you have the <sys/types.h> header file. */
342 #cmakedefine HAVE_SYS_TYPES_H
343
344 /* Define to 1 if you have the <sys/stat.h> header file. */
345 #cmakedefine HAVE_SYS_STAT_H
346
347 /* Define to 1 if you have the <sys/time.h> header file. */
348 #cmakedefine HAVE_SYS_TIME_H
349
350 /* Define to 1 if you have the <rpc/rpc.h> header file. */
351 #cmakedefine HAVE_RPC_RPC_H
352
353 /* Define to 1 if you have the <rpc/xdr.h> header file. */
354 #cmakedefine HAVE_RPC_XDR_H
355
356 /* Define to 1 if you have the <x86intrin.h> header file */
357 #cmakedefine HAVE_X86INTRIN_H
358
359 /* Define to 1 if you have the <intrin.h> header file */
360 #cmakedefine HAVE_INTRIN_H
361
362 /* Define to 1 if you have the <sched.h> header */
363 #cmakedefine HAVE_SCHED_H
364
365 /* Define to 1 if you have the vprintf() function. */
366 #cmakedefine HAVE_VPRINTF
367
368 /* Define to 1 if you have the sysconf() function */
369 #cmakedefine HAVE_SYSCONF
370
371 /* Define to 1 if you have the sched_getaffinity() function */
372 #cmakedefine HAVE_SCHED_GETAFFINITY
373
374 /* Define to 1 if you have the sched_setaffinity() function */
375 #cmakedefine HAVE_SCHED_SETAFFINITY
376
377 /* Bytes in IEEE fp word are in big-endian order if set, little-endian if not.
378    Only relevant when FLOAT_FORMAT_IEEE754 is defined. */
379 #cmakedefine GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER
380
381 /* The two words in a double precision variable are in b ig-endian order if
382    set, little-endian if not. Do NOT assume this is the same as the byte
383    order! Only relevant when FLOAT_FORMAT_IEEE754 is defined. */
384 #cmakedefine GMX_IEEE754_BIG_ENDIAN_WORD_ORDER
385
386 /* Define if SIGUSR1 is present */
387 #cmakedefine HAVE_SIGUSR1
388
389 /* The size of int, as computed by sizeof. */
390 #cmakedefine SIZEOF_INT @SIZEOF_INT@
391
392 /* The size of long int, as computed by sizeof. */
393 #cmakedefine SIZEOF_LONG_INT @SIZEOF_LONG_INT@
394
395 /* The size of long long int, as computed by sizeof. */
396 #cmakedefine SIZEOF_LONG_LONG_INT @SIZEOF_LONG_LONG_INT@
397
398 /* The size of off_t, as computed by sizeof. */
399 #cmakedefine SIZEOF_OFF_T @SIZEOF_OFF_T@
400
401 /* The size of void*, as computed by sizeof. */
402 #cmakedefine SIZEOF_VOIDP @SIZEOF_VOIDP@
403
404 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
405 #cmakedefine _LARGEFILE_SOURCE
406
407 /* Define for large files, on AIX-style hosts. */
408 #cmakedefine _LARGE_FILES
409
410 /* Some systems requires this to be set to 64 for large file support */
411 #cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
412
413 /* Gromacs shortcut define for fseeko & ftello being present with 64-bit support */
414 #cmakedefine GMX_LARGEFILES
415
416 /* Define to int if <sys/types.h> does not define. */
417 #cmakedefine gid_t int
418
419 /* Define to __inline__ or __inline if that is what the C compiler
420    calls it, or to nothing if inline is not supported under any name.
421    Please do NOT remove the gmx_inline keyword from here. The classical
422    C++ inline keyword is merely a recommendation to the compiler, and
423    many compilers support stronger alternatives (e.g. __forceinline)
424    that we might want to use. */
425 #define gmx_inline ${INLINE_KEYWORD}
426 #ifndef __cplusplus
427 #define inline ${INLINE_KEYWORD}
428 #endif
429
430 /* Define to __restrict__ or __restrict if that is what the C compiler
431    calls it, unless we are on C99 when it is simply called restrict.
432    Since restrict is a reserved key word in C99 we are not allowed to
433    redefine the word itself, so call this gmx_restrict to avoid having
434    to identify the language standard level. If it is not supported, it
435    is still defined to an empty string here. */
436 #define gmx_restrict ${RESTRICT_KEYWORD}
437
438 #ifndef CPLUSPLUS
439 #ifdef __cplusplus
440 #define CPLUSPLUS
441 #endif
442 #endif  
443
444 /* Define to long int if <sys/types.h> does not define. */                    
445 #cmakedefine off_t int
446
447 /* Define to unsigned int if <sys/types.h> does not define. */
448 #cmakedefine size_t int
449
450 /* Define to int if <sys/types.h> does not define. */
451 #cmakedefine uid_t int
452
453 /* Build special-purpose mdrun library */
454 #cmakedefine GMX_FAHCORE   
455
456 /* Enable gromacs quotes */
457 #cmakedefine GMX_COOL_QUOTES
458
459 #ifdef GMX_FAHCORE
460 #define FULLINDIRECT 1
461 #define USE_FAH_XDR  1
462 #include "swindirect.h"
463 #endif
464
465 /* Define if we have pipes */
466 #cmakedefine HAVE_PIPES
467
468
469 /* Catch stupid CMake problems on OS X */
470 #ifdef __APPLE__
471 #  if ((defined(__LP64__) && __LP64__ && defined(SIZEOF_VOIDP) && SIZEOF_VOIDP<8) || ( (!defined(__LP64__) || __LP64__==0) && (defined(SIZEOF_VOIDP) && SIZEOF_VOIDP>4)))
472 #    error "Inconsistency between current OS X architecture and the one used to generate original" 
473 #    error "CMake configuration. This is probably caused by starting CMake with the default value"
474 #    error "for CMAKE_OSX_ARCHITECTURES (blank), and then changing it. In this case all the tests"
475 #    error "will have been performed with the original (now incorrect) architecture."
476 #    error "To fix this, set CMAKE_OSX_ARCHITECTURES on the _command_line_ before starting CMake,"
477 #    error "or create a new such entry with your choice in the GUI _before_ hitting 'configure'."
478 #  endif
479 #endif