2 * This file is part of the GROMACS molecular simulation package.
4 * Copyright (c) 2009,2010,2011,2012,2013,2014,2015, 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.
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.
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.
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.
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.
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.
35 /*! \libinternal \file
37 * Include file for configuration macros from the build system.
39 * This header is not installed, so headers must not reference macros defined
47 /* TODO: For now, disable Doxygen warnings from here */
50 /* IEEE754 floating-point format. Memory layout is defined by macros
51 * GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER and GMX_IEEE754_BIG_ENDIAN_WORD_ORDER.
53 #cmakedefine01 GMX_FLOAT_FORMAT_IEEE754
55 /* Work around broken calloc() */
56 #cmakedefine GMX_BROKEN_CALLOC
58 /* Do not optimize FFTW setups (not needed with SSE FFT kernels) */
59 #cmakedefine01 GMX_DISABLE_FFTW_MEASURE
61 /* Use FFTW3 FFT library */
62 #cmakedefine01 GMX_FFT_FFTW3
64 /* Target platform is x86 or x86_64 */
65 #cmakedefine GMX_TARGET_X86
67 /* Target platform is BlueGene/Q */
68 #cmakedefine GMX_TARGET_BGQ
70 /** Define if we are building natively on Windows */
71 #cmakedefine GMX_NATIVE_WINDOWS
73 /** Define if we are building for Cygwin */
74 #cmakedefine GMX_CYGWIN
76 /** Define if we have sufficient C++11 support */
77 #cmakedefine GMX_CXX11
79 /* GCC bug in AVX maskload/maskstore arguments - worked around internally */
80 #cmakedefine GMX_SIMD_X86_AVX_GCC_MASKLOAD_BUG
82 /* SSE2 was selected for SIMD instruction set level */
83 #cmakedefine GMX_SIMD_X86_SSE2
85 /* SSE4.1 was selected as SIMD instructions */
86 #cmakedefine GMX_SIMD_X86_SSE4_1
88 /* AVX 128-bit FMA was selected as SIMD instructions */
89 #cmakedefine GMX_SIMD_X86_AVX_128_FMA
91 /* AVX 256-bit was selected as SIMD instructions */
92 #cmakedefine GMX_SIMD_X86_AVX_256
94 /* AVX2 256-bit SIMD instruction set level was selected */
95 #cmakedefine GMX_SIMD_X86_AVX2_256
97 /* MIC (Xeon Phi) SIMD instruction set level was selected */
98 #cmakedefine GMX_SIMD_X86_MIC
100 /* AVX-512F foundation level instruction SIMD */
101 #cmakedefine GMX_SIMD_X86_AVX_512F
103 /* AVX-512ER foundation level instruction SIMD */
104 #cmakedefine GMX_SIMD_X86_AVX_512ER
106 /* 32-bit ARM NEON SIMD instruction set level was selected */
107 #cmakedefine GMX_SIMD_ARM_NEON
109 /* ARM (AArch64) NEON Advanced SIMD instruction set level was selected */
110 #cmakedefine GMX_SIMD_ARM_NEON_ASIMD
112 /* IBM QPX was selected as SIMD instructions (e.g. BlueGene/Q) */
113 #cmakedefine GMX_SIMD_IBM_QPX
115 /* IBM VMX was selected as SIMD instructions (Power 6 and later) */
116 #cmakedefine GMX_SIMD_IBM_VMX
118 /* IBM VSX was selected as SIMD instructions (Power 7 and later) */
119 #cmakedefine GMX_SIMD_IBM_VSX
121 /* Fujitsu Sparc64 HPC-ACE SIMD acceleration */
122 #cmakedefine GMX_SIMD_SPARC64_HPC_ACE
124 /* Reference SIMD implementation for testing */
125 #cmakedefine GMX_SIMD_REFERENCE
127 /* String for SIMD instruction choice (for writing to log files and stdout) */
128 #define GMX_SIMD_STRING "@GMX_SIMD@"
130 /* Calling convention string (if any) for routines with SIMD variable args */
131 #define gmx_simdcall @GMX_SIMD_CALLING_CONVENTION@
133 /* Target mantissa accuracy for SIMD single precision math */
134 #define GMX_SIMD_ACCURACY_BITS_SINGLE @GMX_SIMD_ACCURACY_BITS_SINGLE@
136 /* Target mantissa accuracy for SIMD double precision math */
137 #define GMX_SIMD_ACCURACY_BITS_DOUBLE @GMX_SIMD_ACCURACY_BITS_DOUBLE@
139 /* Integer byte order is big endian. */
140 #cmakedefine01 GMX_INTEGER_BIG_ENDIAN
142 /* Use our own instead of system XDR libraries */
143 #cmakedefine01 GMX_INTERNAL_XDR
145 /* Compile to use TNG library */
146 #cmakedefine GMX_USE_TNG
148 /* Add support for tracing using Extrae */
149 #cmakedefine HAVE_EXTRAE
151 /* Use MPI (with mpicc) for parallelization */
152 #cmakedefine GMX_LIB_MPI
154 /* Use threads_mpi for parallelization */
155 #cmakedefine GMX_THREAD_MPI
157 #if defined GMX_LIB_MPI || defined GMX_THREAD_MPI
158 /* Make a parallel version of GROMACS using message passing
159 (MPI or thread_mpi) */
163 /* MPI_IN_PLACE exists for collective operations */
164 #cmakedefine MPI_IN_PLACE_EXISTS
166 /* Use OpenMP multithreading */
167 #cmakedefine GMX_OPENMP
169 /* Can and should use nice(3) to set priority */
170 #cmakedefine GMX_USE_NICE
172 /* Maximum number of OpenMP threads supported */
173 #define GMX_OPENMP_MAX_THREADS @GMX_OPENMP_MAX_THREADS@
175 /* Use if can't rename checkpoints */
176 #cmakedefine GMX_NO_RENAME
178 /* Use (modified) Gamess-UK for QM-MM calculations */
179 #cmakedefine GMX_QMMM_GAMESS
181 /* Use (modified) Gaussian0x for QM-MM calculations */
182 #cmakedefine GMX_QMMM_GAUSSIAN
184 /* Use (modified) Mopac 7 for QM-MM calculations */
185 #cmakedefine GMX_QMMM_MOPAC
187 /* Use ORCA for QM-MM calculations */
188 #cmakedefine GMX_QMMM_ORCA
190 /* Use the GROMACS software 1/sqrt(x) */
191 #cmakedefine GMX_SOFTWARE_INVSQRT
193 /* Use sub-counters */
194 #cmakedefine GMX_CYCLE_SUBCOUNTERS
196 /* Compile with plugin support */
197 #cmakedefine GMX_USE_PLUGINS
199 /* Fallback path for VMD plug-ins */
200 #define GMX_VMD_PLUGIN_PATH "@GMX_VMD_PLUGIN_PATH@"
202 /* Define when pthreads are used */
203 #cmakedefine THREAD_PTHREADS
205 /* Define when Windows threads are used */
206 #cmakedefine THREAD_WINDOWS
208 /* Define native atomic operations are found */
209 #cmakedefine TMPI_ATOMICS
211 /* Define for busy wait option */
212 /* See gmxpre-config.h.cmakein for explanation for the #ifdef */
213 #ifndef TMPI_WAIT_FOR_NO_ONE
214 #cmakedefine TMPI_WAIT_FOR_NO_ONE
217 /* Define for copy buffer option */
218 #cmakedefine TMPI_COPY_BUFFER
220 /* Define for tmpi warnings option */
221 #cmakedefine TMPI_WARNINGS
223 /* Define for profiling option */
224 #cmakedefine TMPI_PROFILE
226 /* Define for Linux pthread_setaffinity_np */
227 #cmakedefine HAVE_PTHREAD_SETAFFINITY
229 /* Define for X-Windows */
232 /* Enable x86 gcc inline assembly */
233 #cmakedefine GMX_X86_GCC_INLINE_ASM
235 /* Use GPU native acceleration */
238 /* CUDA runtime API version (identical to CUDART_VERSION from cuda_runtime_api.h) */
239 #cmakedefine GMX_CUDA_VERSION @GMX_CUDA_VERSION@
241 /* Defined if texture objects are supported by CUDA */
242 #cmakedefine HAVE_CUDA_TEXOBJ_SUPPORT
245 #cmakedefine HAVE_NVML
247 /* Use OpenCL acceleators */
248 #cmakedefine GMX_USE_OPENCL
250 /* Define relative path to OpenCL kernels */
251 #define OCL_INSTALL_DIR "@OCL_INSTALL_DIR@"
253 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
254 #cmakedefine HAVE_FSEEKO
256 /* Define to 1 if _fseeki64 (and presumably _fseeki64) exists and is declared. */
257 #cmakedefine HAVE__FSEEKI64
259 /* Have io.h (windows)*/
260 #cmakedefine HAVE_IO_H
262 /* Define to 1 if you have the posix_memalign() function. */
263 #cmakedefine HAVE_POSIX_MEMALIGN
265 /* Define to 1 if you have the memalign() function. */
266 #cmakedefine HAVE_MEMALIGN
268 /* Define to 1 if you have the MSVC _aligned_malloc() function. */
269 #cmakedefine HAVE__ALIGNED_MALLOC
271 /* Define to 1 if you have the clock_gettime() function. */
272 #cmakedefine HAVE_CLOCK_GETTIME
274 /* Define to 1 if you have the gettimeofday() function. */
275 #cmakedefine HAVE_GETTIMEOFDAY
277 /* Define to 1 if you have the rdtscp instruction. */
278 #cmakedefine HAVE_RDTSCP
280 /* Define to 1 if you have the isfinite() function. */
281 #cmakedefine HAVE_ISFINITE
283 /* Define to 1 if you have the _isfinite() function. */
284 #cmakedefine HAVE__ISFINITE
286 /* Define to 1 if you have the _finite() function. */
287 #cmakedefine HAVE__FINITE
289 /* Define to 1 if you have the fsync() function. */
290 #cmakedefine HAVE_FSYNC
292 /* Define to 1 if you have the Windows _commit() function. */
293 #cmakedefine HAVE__COMMIT
295 /* Define to 1 if you have the fileno() function. */
296 #cmakedefine HAVE_FILENO
298 /* Define to 1 if you have the _fileno() function. */
299 #cmakedefine HAVE__FILENO
301 /* Define to 1 if you have the sigaction() function. */
302 #cmakedefine HAVE_SIGACTION
304 /* Define to 1 if you have the rsqrt() function. */
305 #cmakedefine HAVE_RSQRT
307 /* Define to 1 if you have the rsqrtf() function. */
308 #cmakedefine HAVE_RSQRTF
310 /* Define to 1 if you have the sqrtf() function. */
311 #cmakedefine HAVE_SQRTF
313 /* Define to 1 if yo have the <unistd.h> header file. */
314 #cmakedefine HAVE_UNISTD_H
316 /* Define to 1 if yo have the <pwd.h> header file. */
317 #cmakedefine HAVE_PWD_H
319 /* Define to 1 if yo have the <dirent.h> header file. */
320 #cmakedefine HAVE_DIRENT_H
322 /* Define to 1 if you have the <sys/time.h> header file. */
323 #cmakedefine HAVE_SYS_TIME_H
325 /* Define to 1 if you have the <x86intrin.h> header file */
326 #cmakedefine HAVE_X86INTRIN_H
328 /* Define to 1 if you have the <intrin.h> header file */
329 #cmakedefine HAVE_INTRIN_H
331 /* Define to 1 if you have the <sched.h> header */
332 #cmakedefine HAVE_SCHED_H
334 /* Define to 1 if you have the POSIX <regex.h> header file. */
335 #cmakedefine HAVE_POSIX_REGEX
337 /* Define to 1 if you have the C++11 <regex> header file. */
338 #cmakedefine HAVE_CXX11_REGEX
340 /* Define to 1 if you have the sysconf() function */
341 #cmakedefine HAVE_SYSCONF
343 /* Define to 1 if you have the all the affinity functions in sched.h */
344 #cmakedefine HAVE_SCHED_AFFINITY
346 /* Bytes in IEEE fp word are in big-endian order if set, little-endian if not.
347 Only relevant when FLOAT_FORMAT_IEEE754 is defined. */
348 #cmakedefine01 GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER
350 /* The two words in a double precision variable are in b ig-endian order if
351 set, little-endian if not. Do NOT assume this is the same as the byte
352 order! Only relevant when FLOAT_FORMAT_IEEE754 is defined. */
353 #cmakedefine01 GMX_IEEE754_BIG_ENDIAN_WORD_ORDER
355 /* Define if SIGUSR1 is present */
356 #cmakedefine HAVE_SIGUSR1
358 /* Enable gromacs quotes */
359 #cmakedefine GMX_COOL_QUOTES
361 /* default name mangling maybe wrong on exotic plattforms */
362 #define F77_FUNC(name,NAME) name ## _
364 /* Define if we have pipes */
365 #cmakedefine HAVE_PIPES
367 /* Define if we have feenableexcept */
368 #cmakedefine HAVE_FEENABLEEXCEPT
370 /* Define if we have zlib */
371 #cmakedefine HAVE_ZLIB