Added AlignedAllocator class
[gromacs/AngularHB.git] / src / config.h.cmakein
blobbc646afcb69d00038e2e3120640d08a857d91fab
1 /*
2  * This file is part of the GROMACS molecular simulation package.
3  *
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.
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
47 /* TODO: For now, disable Doxygen warnings from here */
48 /*! \cond */
50 /* Work around broken calloc() */
51 #cmakedefine GMX_BROKEN_CALLOC
53 /* Do not optimize FFTW setups (not needed with SSE FFT kernels) */
54 #cmakedefine01 GMX_DISABLE_FFTW_MEASURE
56 /* Use FFTW3 FFT library */
57 #cmakedefine01 GMX_FFT_FFTW3
59 /* Target platform is x86 or x86_64 */
60 #cmakedefine GMX_TARGET_X86
62 /* Target platform is BlueGene/Q */
63 #cmakedefine GMX_TARGET_BGQ
65 /** Define if we are building natively on Windows */
66 #cmakedefine GMX_NATIVE_WINDOWS
68 /** Define if we are building for Cygwin */
69 #cmakedefine GMX_CYGWIN
71 /* GCC bug in AVX maskload/maskstore arguments - worked around internally */
72 #cmakedefine GMX_SIMD_X86_AVX_GCC_MASKLOAD_BUG
74 /* SSE2 was selected for SIMD instruction set level */
75 #cmakedefine GMX_SIMD_X86_SSE2
77 /* SSE4.1 was selected as SIMD instructions */
78 #cmakedefine GMX_SIMD_X86_SSE4_1
80 /* AVX 128-bit FMA was selected as SIMD instructions */
81 #cmakedefine GMX_SIMD_X86_AVX_128_FMA
83 /* AVX 256-bit was selected as SIMD instructions */
84 #cmakedefine GMX_SIMD_X86_AVX_256
86 /* AVX2 256-bit SIMD instruction set level was selected */
87 #cmakedefine GMX_SIMD_X86_AVX2_256
89 /* MIC (Xeon Phi) SIMD instruction set level was selected */
90 #cmakedefine GMX_SIMD_X86_MIC
92 /* AVX-512F foundation level instruction SIMD */
93 #cmakedefine GMX_SIMD_X86_AVX_512F
95 /* AVX-512ER foundation level instruction SIMD */
96 #cmakedefine GMX_SIMD_X86_AVX_512ER
98 /* 32-bit ARM NEON SIMD instruction set level was selected */
99 #cmakedefine GMX_SIMD_ARM_NEON
101 /* ARM (AArch64) NEON Advanced SIMD instruction set level was selected */
102 #cmakedefine GMX_SIMD_ARM_NEON_ASIMD
104 /* IBM QPX was selected as SIMD instructions (e.g. BlueGene/Q) */
105 #cmakedefine GMX_SIMD_IBM_QPX
107 /* IBM VMX was selected as SIMD instructions (Power 6 and later) */
108 #cmakedefine GMX_SIMD_IBM_VMX
110 /* IBM VSX was selected as SIMD instructions (Power 7 and later) */
111 #cmakedefine GMX_SIMD_IBM_VSX
113 /* Fujitsu Sparc64 HPC-ACE SIMD acceleration */
114 #cmakedefine GMX_SIMD_SPARC64_HPC_ACE
116 /* Reference SIMD implementation for testing */
117 #cmakedefine GMX_SIMD_REFERENCE
119 /* String for SIMD instruction choice (for writing to log files and stdout) */
120 #define GMX_SIMD_STRING "@GMX_SIMD@"
122 /* Calling convention string (if any) for routines with SIMD variable args */
123 #define gmx_simdcall @GMX_SIMD_CALLING_CONVENTION@
125 /* Target mantissa accuracy for SIMD single precision math */
126 #define GMX_SIMD_ACCURACY_BITS_SINGLE @GMX_SIMD_ACCURACY_BITS_SINGLE@
128 /* Target mantissa accuracy for SIMD double precision math */
129 #define GMX_SIMD_ACCURACY_BITS_DOUBLE @GMX_SIMD_ACCURACY_BITS_DOUBLE@
131 /* Integer byte order is big endian. */
132 #cmakedefine01 GMX_INTEGER_BIG_ENDIAN
134 /* Use our own instead of system XDR libraries */
135 #cmakedefine01 GMX_INTERNAL_XDR
137 /* Compile to use TNG library */
138 #cmakedefine GMX_USE_TNG
140 /* Add support for tracing using Extrae */
141 #cmakedefine01 HAVE_EXTRAE
143 /* Use MPI (with mpicc) for parallelization */
144 #cmakedefine GMX_LIB_MPI
146 /* Use threads_mpi for parallelization */
147 #cmakedefine GMX_THREAD_MPI
149 #if defined GMX_LIB_MPI || defined GMX_THREAD_MPI
150 /* Make a parallel version of GROMACS using message passing
151    (MPI or thread_mpi) */
152 #define GMX_MPI
153 #endif
155 /* MPI_IN_PLACE exists for collective operations */
156 #cmakedefine MPI_IN_PLACE_EXISTS
158 /* Use OpenMP multithreading */
159 #cmakedefine GMX_OPENMP
161 /* Can and should use nice(3) to set priority */
162 #cmakedefine GMX_USE_NICE
164 /* Maximum number of OpenMP threads supported */
165 #define GMX_OPENMP_MAX_THREADS @GMX_OPENMP_MAX_THREADS@
167 /* Use if we cannot rename checkpoints */
168 #cmakedefine01 GMX_NO_RENAME
170 /* Use (modified) Gamess-UK for QM-MM calculations */
171 #cmakedefine01 GMX_QMMM_GAMESS
173 /* Use (modified) Gaussian0x for QM-MM calculations */
174 #cmakedefine01 GMX_QMMM_GAUSSIAN
176 /* Use (modified) Mopac 7 for QM-MM calculations */
177 #cmakedefine01 GMX_QMMM_MOPAC
179 /* Use ORCA for QM-MM calculations */
180 #cmakedefine01 GMX_QMMM_ORCA
182 /* Use the GROMACS software 1/sqrt(x) */
183 #cmakedefine GMX_SOFTWARE_INVSQRT
185 /* Use sub-counters */
186 #cmakedefine GMX_CYCLE_SUBCOUNTERS
188 /* Compile with plugin support */
189 #cmakedefine GMX_USE_PLUGINS
191 /* Fallback path for VMD plug-ins */
192 #define GMX_VMD_PLUGIN_PATH "@GMX_VMD_PLUGIN_PATH@"
194 /* Define when pthreads are used */
195 #cmakedefine THREAD_PTHREADS
197 /* Define when Windows threads are used */
198 #cmakedefine THREAD_WINDOWS
200 /* Define native atomic operations are found */
201 #cmakedefine TMPI_ATOMICS
203 /* Define for busy wait option  */
204 /* See gmxpre-config.h.cmakein for explanation for the #ifdef */
205 #ifndef TMPI_WAIT_FOR_NO_ONE
206 #cmakedefine TMPI_WAIT_FOR_NO_ONE
207 #endif
209 /* Define for copy buffer option */
210 #cmakedefine TMPI_COPY_BUFFER
212 /* Define for tmpi warnings option */
213 #cmakedefine TMPI_WARNINGS
215 /* Define for profiling option */
216 #cmakedefine TMPI_PROFILE
218 /* Define for Linux pthread_setaffinity_np */
219 #cmakedefine HAVE_PTHREAD_SETAFFINITY
221 /* Define for X-Windows */
222 #cmakedefine01 GMX_X11
224 /* Enable x86 gcc inline assembly */
225 #cmakedefine GMX_X86_GCC_INLINE_ASM
227 /* Use GPU native acceleration */
228 #cmakedefine GMX_GPU
230 /* CUDA runtime API version (identical to CUDART_VERSION from cuda_runtime_api.h) */
231 #cmakedefine GMX_CUDA_VERSION @GMX_CUDA_VERSION@
233 /* Use NVML */
234 #cmakedefine HAVE_NVML
236 /* Use OpenCL acceleators */
237 #cmakedefine GMX_USE_OPENCL
239 /* Define relative path to OpenCL kernels */
240 #define OCL_INSTALL_DIR "@OCL_INSTALL_DIR@"
242 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
243 #cmakedefine HAVE_FSEEKO
245 /* Define to 1 if _fseeki64 (and presumably _fseeki64) exists and is declared. */
246 #cmakedefine HAVE__FSEEKI64
248 /* Have io.h (windows)*/
249 #cmakedefine HAVE_IO_H
251 /* Define to 1 if you have the posix_memalign() function. */
252 #cmakedefine01 HAVE_POSIX_MEMALIGN
254 /* Define to 1 if you have the memalign() function. */
255 #cmakedefine01 HAVE_MEMALIGN
257 /* Define to 1 if you have the MSVC _aligned_malloc() function. */
258 #cmakedefine01 HAVE__ALIGNED_MALLOC
260 /* Define to 1 if you have the clock_gettime() function. */
261 #cmakedefine HAVE_CLOCK_GETTIME
263 /* Define to 1 if you have the gettimeofday() function. */
264 #cmakedefine HAVE_GETTIMEOFDAY
266 /* Define to 1 if you have the rdtscp instruction. */
267 #cmakedefine HAVE_RDTSCP
269 /* Define to 1 if you have the isfinite() function. */
270 #cmakedefine HAVE_ISFINITE
272 /* Define to 1 if you have the _isfinite() function. */
273 #cmakedefine HAVE__ISFINITE
275 /* Define to 1 if you have the _finite() function. */
276 #cmakedefine HAVE__FINITE
278 /* Define to 1 if you have the fsync() function. */
279 #cmakedefine HAVE_FSYNC
281 /* Define to 1 if you have the Windows _commit() function. */
282 #cmakedefine HAVE__COMMIT
284 /* Define to 1 if you have the fileno() function. */
285 #cmakedefine HAVE_FILENO
287 /* Define to 1 if you have the _fileno() function. */
288 #cmakedefine HAVE__FILENO
290 /* Define to 1 if you have the sigaction() function. */
291 #cmakedefine HAVE_SIGACTION
293 /* Define to 1 if you have the rsqrt() function. */
294 #cmakedefine HAVE_RSQRT
296 /* Define to 1 if you have the rsqrtf() function. */
297 #cmakedefine HAVE_RSQRTF
299 /* Define to 1 if you have the sqrtf() function. */
300 #cmakedefine HAVE_SQRTF
302 /* Define to 1 if yo have the <unistd.h> header file. */
303 #cmakedefine HAVE_UNISTD_H
305 /* Define to 1 if yo have the <pwd.h> header file. */
306 #cmakedefine HAVE_PWD_H
308 /* Define to 1 if yo have the <dirent.h> header file. */
309 #cmakedefine HAVE_DIRENT_H
311 /* Define to 1 if you have the <sys/time.h> header file. */
312 #cmakedefine HAVE_SYS_TIME_H
314 /* Define to 1 if you have the <x86intrin.h> header file */
315 #cmakedefine HAVE_X86INTRIN_H
317 /* Define to 1 if you have the <intrin.h> header file */
318 #cmakedefine HAVE_INTRIN_H
320 /* Define to 1 if you have the <sched.h> header */
321 #cmakedefine HAVE_SCHED_H
323 /* Define to 1 if mm_malloc.h is present, otherwise 0 */
324 #cmakedefine01 HAVE_MM_MALLOC_H
326 /* Define to 1 if malloc.h is present, otherwise 0 */
327 #cmakedefine01 HAVE_MALLOC_H
329 /* Define to 1 if xmmintrin.h is present, otherwise 0 */
330 #cmakedefine01 HAVE_XMMINTRIN_H
332 /* Define to 1 if you have the POSIX <regex.h> header file. */
333 #cmakedefine01 HAVE_POSIX_REGEX
335 /* Define to 1 if you have the C++11 <regex> header file. */
336 #cmakedefine01 HAVE_CXX11_REGEX
338 /* Define to 1 if you have the sysconf() function */
339 #cmakedefine HAVE_SYSCONF
341 /* Define to 1 if you have the all the affinity functions in sched.h */
342 #cmakedefine HAVE_SCHED_AFFINITY
344 /* Define to 1 if _mm_malloc() is present in either mm_malloc.h,
345  * malloc.h or xmmintrin.h, and 0 otherwise. Note that you need to
346  * conditionally include the three headers too before using _mm_malloc().
347  */
348 #cmakedefine01 HAVE__MM_MALLOC
350 /* Define if SIGUSR1 is present */
351 #cmakedefine01 HAVE_SIGUSR1
353 /* Enable gromacs quotes */
354 #cmakedefine01 GMX_COOL_QUOTES
356 /* default name mangling maybe wrong on exotic plattforms */
357 #define F77_FUNC(name,NAME) name ## _
359 /* Define if we have pipes */
360 #cmakedefine01 HAVE_PIPES
362 /* Define if we have feenableexcept */
363 #cmakedefine01 HAVE_FEENABLEEXCEPT
365 /* Define if we have zlib */
366 #cmakedefine01 HAVE_ZLIB
368 /*! \endcond */
370 #endif