BlueGene/Q Verlet cut-off scheme kernels
[gromacs.git] / src / config.h.cmakein
blob4c49a0e311596e2e56a95fca608ddccfc93c7c32
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 */
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
47 #include "gmx_header_config.h"
49 /* Name of package (translate from cmake to autoconf macro name) */
50 #define PACKAGE  "@PROJECT_NAME@"
52 /* Version number of package (translate from cmake to autoconf macro name) */
53 #define VERSION  "@PROJECT_VERSION@"
55 /* Use the version string from generated version.h */
56 #cmakedefine USE_VERSION_H
58 /* Default location of data files */
59 #define GMXLIBDIR "@GMXLIBDIR@"
61 /* Turn off water-water neighborlist optimization only - not used right now */
62 #cmakedefine DISABLE_WATERWATER_NLIST
64 /* Turn off all water neighborlist optimization - not used right now */
65 #cmakedefine DISABLE_WATER_NLIST
67 /* IEEE754 floating-point format. Memory layout is defined by macros
68  * GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER and GMX_IEEE754_BIG_ENDIAN_WORD_ORDER. 
69  */
70 #cmakedefine GMX_FLOAT_FORMAT_IEEE754
72 /* Work around broken calloc() */
73 #cmakedefine GMX_BROKEN_CALLOC
75 /* Enable special hacks for Cray XT3 */
76 #cmakedefine GMX_CRAY_XT3
78 /* Do not optimize FFTW setups (not needed with SSE FFT kernels) */
79 #cmakedefine GMX_DISABLE_FFTW_MEASURE
81 /* Compile in double precision */
82 #cmakedefine GMX_DOUBLE
84 /* Use Built-in FFTPACK FFT library */
85 #cmakedefine GMX_FFT_FFTPACK
87 /* Use FFTW3 FFT library */
88 #cmakedefine GMX_FFT_FFTW3
90 /* Use Intel MKL FFT library */
91 #cmakedefine GMX_FFT_MKL
93 /* Use AMD core math library */
94 #cmakedefine GMX_FFT_ACML
96 /* Target platform is x86 or x86_64 */
97 #cmakedefine GMX_IS_X86
99 /* Target platform is BlueGene/Q */
100 #cmakedefine GMX_IS_BGQ
102 /* SSE2 instructions available */
103 #cmakedefine GMX_X86_SSE2
105 /* SSE4.1 instructions available */
106 #cmakedefine GMX_X86_SSE4_1
108 /* AVX 128-bit FMA instructions available */
109 #cmakedefine GMX_X86_AVX_128_FMA
111 /* AVX 256-bit instructions available */
112 #cmakedefine GMX_X86_AVX_256
114 /* GCC bug in AVX maskload/maskstore arguments - worked around internally */
115 #cmakedefine GMX_X86_AVX_GCC_MASKLOAD_BUG
117 /* SSE2 was selected as CPU acceleration level */
118 #cmakedefine GMX_CPU_ACCELERATION_X86_SSE2
120 /* SSE4.1 was selected as CPU acceleration level */
121 #cmakedefine GMX_CPU_ACCELERATION_X86_SSE4_1
123 /* AVX 128-bit FMA was selected as CPU acceleration level */
124 #cmakedefine GMX_CPU_ACCELERATION_X86_AVX_128_FMA
126 /* AVX 256-bit was selected as CPU acceleration level */
127 #cmakedefine GMX_CPU_ACCELERATION_X86_AVX_256
129 /* IBM QPX was selected as CPU acceleration type (e.g. BlueGene/Q) */
130 #cmakedefine GMX_CPU_ACCELERATION_IBM_QPX
132 /* Fujitsu Sparc64 HPC-ACE SIMD acceleration */
133 #cmakedefine GMX_CPU_ACCELERATION_SPARC64_HPC_ACE
135 /* String for CPU acceleration choice (for writing to log files and stdout) */
136 #define GMX_CPU_ACCELERATION_STRING "@GMX_CPU_ACCELERATION@"
138 /* Integer byte order is big endian. */
139 #cmakedefine GMX_INTEGER_BIG_ENDIAN 
141 /* Use our own instead of system XDR libraries */
142 #cmakedefine GMX_INTERNAL_XDR
144 /* Use MPI (with mpicc) for parallelization */
145 #cmakedefine GMX_LIB_MPI
147 /* MPI_IN_PLACE exists for collective operations */
148 #cmakedefine MPI_IN_PLACE_EXISTS
150 /* Make a parallel version of GROMACS using message passing 
151    (MPI or thread_mpi) */
152 #cmakedefine GMX_MPI
154 /* Use threads_mpi for parallelization */
155 #cmakedefine GMX_THREAD_MPI
157 /* Use OpenMP multithreading */
158 #cmakedefine GMX_OPENMP
160 /* Ignore calls to nice(3) */
161 #cmakedefine GMX_NO_NICE
163 /* Ignore calls to system(3) */
164 #cmakedefine GMX_NO_SYSTEM
166 /* Use (modified) Gamess-UK for QM-MM calculations */
167 #cmakedefine GMX_QMMM_GAMESS
169 /* Use (modified) Gaussian0x for QM-MM calculations */
170 #cmakedefine GMX_QMMM_GAUSSIAN
172 /* Use (modified) Mopac 7 for QM-MM calculations */
173 #cmakedefine GMX_QMMM_MOPAC
175 /* Use ORCA for QM-MM calculations */
176 #cmakedefine GMX_QMMM_ORCA
178 /* Use the GROMACS software 1/sqrt(x) */
179 #cmakedefine GMX_SOFTWARE_INVSQRT
181 /* Use sub-counters */
182 #cmakedefine GMX_CYCLE_SUBCOUNTERS
184 /* Compile with plugin support */
185 #cmakedefine GMX_USE_PLUGINS
187 /* Fallback path for VMD plug-ins */
188 #define GMX_VMD_PLUGIN_PATH "@GMX_VMD_PLUGIN_PATH@"
190 /* Define when pthreads are used */
191 #cmakedefine THREAD_PTHREADS
193 /* Define when Windows threads are used */
194 #cmakedefine THREAD_WINDOWS
196 /* Define when there is a pthread.h */
197 #cmakedefine HAVE_PTHREAD_H
199 /* Define native atomic operations are found */
200 #cmakedefine TMPI_ATOMICS
202 /* Define for busy wait option  */
203 #cmakedefine TMPI_WAIT_FOR_NO_ONE
205 /* Define for copy buffer option */
206 #cmakedefine TMPI_COPY_BUFFER
208 /* Define for tmpi warnings option */
209 #cmakedefine TMPI_WARNINGS
211 /* Define for profiling option */
212 #cmakedefine TMPI_PROFILE
214 /* Define for Linux pthread_setaffinity_np */
215 #cmakedefine HAVE_PTHREAD_SETAFFINITY
217 /* Define for Windows NUMA-aware allocator functions*/
218 #cmakedefine TMPI_WINDOWS_NUMA_API
220 /* Define for GetSystemInfo() */
221 #cmakedefine HAVE_SYSTEM_INFO
223 /* Enable x86 gcc inline assembly */
224 #cmakedefine GMX_X86_GCC_INLINE_ASM
226 /* Use GPU native acceleration */
227 #cmakedefine GMX_GPU
229 /* Define to 1 if the system has the type gmx_bool. */
230 #cmakedefine HAVE_BOOL
232 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
233 #cmakedefine HAVE_FSEEKO
235 /* Define to 1 if _fseeki64 (and presumably _fseeki64) exists and is declared. */
236 #cmakedefine HAVE__FSEEKI64
238 /* Define to 1 if you have the m library (-lm). */
239 #cmakedefine HAVE_LIBM
241 /* Define to 1 if you have the mkl library (-lmkl). */
242 #cmakedefine HAVE_LIBMKL
244 /* Define to 1 if you have the gsl library (-lgsl). */
245 #cmakedefine HAVE_LIBGSL
247 /* Define to 1 if you have the dl library (-ldl). */
248 #cmakedefine HAVE_LIBDL
250 /* Have io.h (windows)*/
251 #cmakedefine HAVE_IO_H
253 /* Define to 1 if you have the strcasecmp() function. */
254 #cmakedefine HAVE_STRCASECMP
256 /* Define to 1 if you have the strdup() function. */
257 #cmakedefine HAVE_STRDUP
259 /* Define to 1 if you have the vfprintf() function. */
260 #cmakedefine HAVE_VFPRINTF
262 /* Define to 1 if you have the memcmp() function. */
263 #cmakedefine HAVE_MEMCMP
265 /* Define to 1 if you have the posix_memalign() function. */
266 #cmakedefine HAVE_POSIX_MEMALIGN
268 /* Define to 1 if you have the memalign() function. */
269 #cmakedefine HAVE_MEMALIGN
271 /* Define to 1 if you have the MSVC _aligned_malloc() function. */
272 #cmakedefine HAVE__ALIGNED_MALLOC
274 /* Define to 1 if you have the gettimeofday() function. */
275 #cmakedefine HAVE_GETTIMEOFDAY
277 /* Define to 1 if you have the cbrt() function. */
278 #cmakedefine HAVE_CBRT
280 /* Define to 1 if you have the isnan() function. */
281 #cmakedefine HAVE_ISNAN
283 /* Define to 1 if you have the _isnan() function. */
284 #cmakedefine HAVE__ISNAN
286 /* Define to 1 if you have the isfinite() function. */
287 #cmakedefine HAVE_ISFINITE
289 /* Define to 1 if you have the _isfinite() function. */
290 #cmakedefine HAVE__ISFINITE
292 /* Define to 1 if you have the _finite() function. */
293 #cmakedefine HAVE__FINITE
295 /* Define to 1 if you have the fsync() function. */
296 #cmakedefine HAVE_FSYNC
298 /* Define to 1 if you have the Windows _commit() function. */
299 #cmakedefine HAVE__COMMIT
301 /* Define to 1 if you have the fileno() function. */
302 #cmakedefine HAVE_FILENO
304 /* Define to 1 if you have the _fileno() function. */
305 #cmakedefine HAVE__FILENO
307 /* Define to 1 if you have the sigaction() function. */
308 #cmakedefine HAVE_SIGACTION
310 /* Define to 1 if you have the rsqrt() function. */
311 #cmakedefine HAVE_RSQRT
313 /* Define to 1 if you have the rsqrtf() function. */
314 #cmakedefine HAVE_RSQRTF
316 /* Define to 1 if you have the sqrtf() function. */
317 #cmakedefine HAVE_SQRTF
319 /* Define to 1 if you have the <string.h> header file. */
320 #cmakedefine HAVE_STRING_H
322 /* Define to 1 if yo have the <math.h> header file. */
323 #cmakedefine HAVE_MATH_H
325 /* Define to 1 if yo have the <limits.h> header file. */
326 #cmakedefine HAVE_LIMITS_H
328 /* Define to 1 if yo have the <memory.h> header file. */
329 #cmakedefine HAVE_MEMORY_H
331 /* Define to 1 if yo have the <unistd.h> header file. */
332 #cmakedefine HAVE_UNISTD_H
334 /* Define to 1 if yo have the <direct.h> header file. */
335 #cmakedefine HAVE_DIRECT_H
337 /* Define to 1 if yo have the <pwd.h> header file. */
338 #cmakedefine HAVE_PWD_H
340 /* Define to 1 if yo have the <stdint.h> header file. */
341 #cmakedefine HAVE_STDINT_H
343 /* Define to 1 if yo have the <stdlib.h> header file. */
344 #cmakedefine HAVE_STDLIB_H
346 /* Define to 1 if yo have the <dirent.h> header file. */
347 #cmakedefine HAVE_DIRENT_H
349 /* Define to 1 if yo have the <inttypes.h> header file. */
350 #cmakedefine HAVE_INTTYPES_H
352 /* Define to 1 if yo have the <regex.h> header file. */
353 #cmakedefine HAVE_REGEX_H
355 /* Define to 1 if you have the <sys/types.h> header file. */
356 #cmakedefine HAVE_SYS_TYPES_H
358 /* Define to 1 if you have the <sys/stat.h> header file. */
359 #cmakedefine HAVE_SYS_STAT_H
361 /* Define to 1 if you have the <sys/time.h> header file. */
362 #cmakedefine HAVE_SYS_TIME_H
364 /* Define to 1 if you have the <rpc/rpc.h> header file. */
365 #cmakedefine HAVE_RPC_RPC_H
367 /* Define to 1 if you have the <rpc/xdr.h> header file. */
368 #cmakedefine HAVE_RPC_XDR_H
370 /* Define to 1 if you have the <x86intrin.h> header file */
371 #cmakedefine HAVE_X86INTRIN_H
373 /* Define to 1 if you have the <intrin.h> header file */
374 #cmakedefine HAVE_INTRIN_H
376 /* Define to 1 if you have the <sched.h> header */
377 #cmakedefine HAVE_SCHED_H
379 /* Define to 1 if you have the vprintf() function. */
380 #cmakedefine HAVE_VPRINTF
382 /* Define to 1 if you have the sysconf() function */
383 #cmakedefine HAVE_SYSCONF
385 /* Define to 1 if you have the sched_getaffinity() function */
386 #cmakedefine HAVE_SCHED_GETAFFINITY
388 /* Define to 1 if you have the sched_setaffinity() function */
389 #cmakedefine HAVE_SCHED_SETAFFINITY
391 /* Bytes in IEEE fp word are in big-endian order if set, little-endian if not.
392    Only relevant when FLOAT_FORMAT_IEEE754 is defined. */
393 #cmakedefine GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER
395 /* The two words in a double precision variable are in b ig-endian order if
396    set, little-endian if not. Do NOT assume this is the same as the byte
397    order! Only relevant when FLOAT_FORMAT_IEEE754 is defined. */
398 #cmakedefine GMX_IEEE754_BIG_ENDIAN_WORD_ORDER
400 /* Define if SIGUSR1 is present */
401 #cmakedefine HAVE_SIGUSR1
403 /* The size of int, as computed by sizeof. */
404 #cmakedefine SIZEOF_INT @SIZEOF_INT@
406 /* The size of long int, as computed by sizeof. */
407 #cmakedefine SIZEOF_LONG_INT @SIZEOF_LONG_INT@
409 /* The size of long long int, as computed by sizeof. */
410 #cmakedefine SIZEOF_LONG_LONG_INT @SIZEOF_LONG_LONG_INT@
412 /* The size of off_t, as computed by sizeof. */
413 #cmakedefine SIZEOF_OFF_T @SIZEOF_OFF_T@
415 /* The size of void*, as computed by sizeof. */
416 #cmakedefine SIZEOF_VOIDP @SIZEOF_VOIDP@
418 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
419 #cmakedefine _LARGEFILE_SOURCE
421 /* Define for large files, on AIX-style hosts. */
422 #cmakedefine _LARGE_FILES
424 /* Some systems requires this to be set to 64 for large file support */
425 #cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
427 /* Gromacs shortcut define for fseeko & ftello being present with 64-bit support */
428 #cmakedefine GMX_LARGEFILES
430 /* Define to int if <sys/types.h> does not define. */
431 #cmakedefine gid_t int
433 /* Define to __inline__ or __inline if that is what the C compiler
434    calls it, or to nothing if inline is not supported under any name.
435    Please do NOT remove the gmx_inline keyword from here. The classical
436    C++ inline keyword is merely a recommendation to the compiler, and
437    many compilers support stronger alternatives (e.g. __forceinline)
438    that we might want to use. */
439 #define gmx_inline ${INLINE_KEYWORD}
440 #ifndef __cplusplus
441 #define inline ${INLINE_KEYWORD}
442 #endif
444 /* Define to __restrict__ or __restrict if that is what the C compiler
445    calls it, unless we are on C99 when it is simply called restrict.
446    Since restrict is a reserved key word in C99 we are not allowed to
447    redefine the word itself, so call this gmx_restrict to avoid having
448    to identify the language standard level. If it is not supported, it
449    is still defined to an empty string here. */
450 #define gmx_restrict ${RESTRICT_KEYWORD}
452 #ifndef CPLUSPLUS
453 #ifdef __cplusplus
454 #define CPLUSPLUS
455 #endif
456 #endif  
458 /* Define to long int if <sys/types.h> does not define. */                    
459 #cmakedefine off_t int
461 /* Define to unsigned int if <sys/types.h> does not define. */
462 #cmakedefine size_t int
464 /* Define to int if <sys/types.h> does not define. */
465 #cmakedefine uid_t int
467 /* Build special-purpose mdrun library */
468 #cmakedefine GMX_FAHCORE   
470 /* Enable gromacs quotes */
471 #cmakedefine GMX_COOL_QUOTES
473 #ifdef GMX_FAHCORE
474 #define FULLINDIRECT 1
475 #define USE_FAH_XDR  1
476 #include "swindirect.h"
477 #endif
479 /* default name mangling maybe wrong on exotic plattforms */
480 #define F77_FUNC(name,NAME) name ## _
482 /* Define if we have pipes */
483 #cmakedefine HAVE_PIPES
486 /* Catch stupid CMake problems on OS X */
487 #ifdef __APPLE__
488 #  if ((defined(__LP64__) && __LP64__ && defined(SIZEOF_VOIDP) && SIZEOF_VOIDP<8) || ( (!defined(__LP64__) || __LP64__==0) && (defined(SIZEOF_VOIDP) && SIZEOF_VOIDP>4)))
489 #    error "Inconsistency between current OS X architecture and the one used to generate original" 
490 #    error "CMake configuration. This is probably caused by starting CMake with the default value"
491 #    error "for CMAKE_OSX_ARCHITECTURES (blank), and then changing it. In this case all the tests"
492 #    error "will have been performed with the original (now incorrect) architecture."
493 #    error "To fix this, set CMAKE_OSX_ARCHITECTURES on the _command_line_ before starting CMake,"
494 #    error "or create a new such entry with your choice in the GUI _before_ hitting 'configure'."
495 #  endif
496 #endif