First part of commit for redesigned SIMD module - namechanges.
[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 #include "gromacs/utility/gmx_header_config.h"
45
46 /* TODO: For now, disable Doxygen warnings from here */
47 /*! \cond */
48
49 /* Disable warnings about double-to-float conversion accuracy loss on MSVC */
50 #ifdef _MSC_VER
51 #pragma warning (disable : 4305)
52 #pragma warning (disable : 4244)
53 #pragma warning (disable : 4101)
54 #pragma warning (disable : 4996)
55 #pragma warning (disable : 4267)
56 #pragma warning (disable : 4090)
57 #endif
58
59 /* Version number of package (translate from cmake to autoconf macro name) */
60 #define VERSION  "@PROJECT_VERSION@"
61
62 /* Use extra version information generated with git */
63 #cmakedefine GMX_GIT_VERSION_INFO
64
65 /* Default location of data files */
66 #define GMXLIB_SEARCH_DIR "@GMXLIB_SEARCH_DIR@"
67
68 /* Default location of data files */
69 #define GMXLIB_FALLBACK "@GMXLIB_FALLBACK@"
70
71 /* Binary suffix for the created binaries */
72 #define GMX_BINARY_SUFFIX "@GMX_BINARY_SUFFIX@"
73
74 /* Source directory for the build */
75 #cmakedefine CMAKE_SOURCE_DIR "@CMAKE_SOURCE_DIR@"
76
77 /* Binary directory for the build */
78 #cmakedefine CMAKE_BINARY_DIR "@CMAKE_BINARY_DIR@"
79
80 /* Turn off water-water neighborlist optimization only - not used right now */
81 #cmakedefine DISABLE_WATERWATER_NLIST
82
83 /* Turn off all water neighborlist optimization - not used right now */
84 #cmakedefine DISABLE_WATER_NLIST
85
86 /* IEEE754 floating-point format. Memory layout is defined by macros
87  * GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER and GMX_IEEE754_BIG_ENDIAN_WORD_ORDER. 
88  */
89 #cmakedefine GMX_FLOAT_FORMAT_IEEE754
90
91 /* Work around broken calloc() */
92 #cmakedefine GMX_BROKEN_CALLOC
93
94 /* Do not optimize FFTW setups (not needed with SSE FFT kernels) */
95 #cmakedefine GMX_DISABLE_FFTW_MEASURE
96
97 /* Use Built-in FFTPACK FFT library */
98 #cmakedefine GMX_FFT_FFTPACK
99
100 /* Use FFTW3 FFT library */
101 #cmakedefine GMX_FFT_FFTW3
102
103 /* Use Intel MKL FFT library */
104 #cmakedefine GMX_FFT_MKL
105
106 /* Target platform is x86 or x86_64 */
107 #cmakedefine GMX_TARGET_X86
108
109 /* Target platform is BlueGene/Q */
110 #cmakedefine GMX_TARGET_BGQ
111
112 /* SSE2 instructions available */
113 #cmakedefine GMX_SIMD_X86_SSE2_OR_HIGHER
114
115 /* SSE4.1 instructions available */
116 #cmakedefine GMX_SIMD_X86_SSE4_1_OR_HIGHER
117
118 /* AVX 128-bit FMA instructions available (AMD side of the AVX world) */
119 #cmakedefine GMX_SIMD_X86_AVX_128_FMA_OR_HIGHER
120
121 /* AVX 256-bit instructions available (Intel side of the AVX world) */
122 #cmakedefine GMX_SIMD_X86_AVX_256_OR_HIGHER
123
124 /* GCC bug in AVX maskload/maskstore arguments - worked around internally */
125 #cmakedefine GMX_SIMD_X86_AVX_GCC_MASKLOAD_BUG
126
127 /* SSE2 was selected for SIMD instruction set level */
128 #cmakedefine GMX_SIMD_X86_SSE2
129
130 /* SSE4.1 was selected as SIMD instructions */
131 #cmakedefine GMX_SIMD_X86_SSE4_1
132
133 /* AVX 128-bit FMA was selected as SIMD instructions */
134 #cmakedefine GMX_SIMD_X86_AVX_128_FMA
135
136 /* AVX 256-bit was selected as SIMD instructions */
137 #cmakedefine GMX_SIMD_X86_AVX_256
138
139 /* IBM QPX was selected as SIMD instructions (e.g. BlueGene/Q) */
140 #cmakedefine GMX_SIMD_IBM_QPX
141
142 /* Fujitsu Sparc64 HPC-ACE SIMD acceleration */
143 #cmakedefine GMX_SIMD_SPARC64_HPC_ACE
144
145 /* String for SIMD instruction choice (for writing to log files and stdout) */
146 #define GMX_SIMD_STRING "@GMX_SIMD@"
147
148 /* Integer byte order is big endian. */
149 #cmakedefine GMX_INTEGER_BIG_ENDIAN
150
151 /* Use our own instead of system XDR libraries */
152 #cmakedefine GMX_INTERNAL_XDR
153
154 /* Compile to use TNG library */
155 #cmakedefine GMX_USE_TNG
156
157 /* Use MPI (with mpicc) for parallelization */
158 #cmakedefine GMX_LIB_MPI
159
160 /* MPI_IN_PLACE exists for collective operations */
161 #cmakedefine MPI_IN_PLACE_EXISTS
162
163 /* Make a parallel version of GROMACS using message passing
164    (MPI or thread_mpi) */
165 #cmakedefine GMX_MPI
166
167 /* Use threads_mpi for parallelization */
168 #cmakedefine GMX_THREAD_MPI
169
170 /* Use OpenMP multithreading */
171 #cmakedefine GMX_OPENMP
172
173 /* Ignore calls to nice(3) */
174 #cmakedefine GMX_NO_NICE
175
176 /* Use if can't rename checkpoints */
177 #cmakedefine GMX_NO_RENAME
178
179 /* Ignore calls to system(3) */
180 #cmakedefine GMX_NO_SYSTEM
181
182 /* Use (modified) Gamess-UK for QM-MM calculations */
183 #cmakedefine GMX_QMMM_GAMESS
184
185 /* Use (modified) Gaussian0x for QM-MM calculations */
186 #cmakedefine GMX_QMMM_GAUSSIAN
187
188 /* Use (modified) Mopac 7 for QM-MM calculations */
189 #cmakedefine GMX_QMMM_MOPAC
190
191 /* Use ORCA for QM-MM calculations */
192 #cmakedefine GMX_QMMM_ORCA
193
194 /* Use the GROMACS software 1/sqrt(x) */
195 #cmakedefine GMX_SOFTWARE_INVSQRT
196
197 /* Use sub-counters */
198 #cmakedefine GMX_CYCLE_SUBCOUNTERS
199
200 /* Compile with plugin support */
201 #cmakedefine GMX_USE_PLUGINS
202
203 /* Fallback path for VMD plug-ins */
204 #define GMX_VMD_PLUGIN_PATH "@GMX_VMD_PLUGIN_PATH@"
205
206 /* Define when pthreads are used */
207 #cmakedefine THREAD_PTHREADS
208
209 /* Define when Windows threads are used */
210 #cmakedefine THREAD_WINDOWS
211
212 /* Define native atomic operations are found */
213 #cmakedefine TMPI_ATOMICS
214
215 /* Define for busy wait option  */
216 #cmakedefine TMPI_WAIT_FOR_NO_ONE
217
218 /* Define for copy buffer option */
219 #cmakedefine TMPI_COPY_BUFFER
220
221 /* Define for tmpi warnings option */
222 #cmakedefine TMPI_WARNINGS
223
224 /* Define for profiling option */
225 #cmakedefine TMPI_PROFILE
226
227 /* Define for Linux pthread_setaffinity_np */
228 #cmakedefine HAVE_PTHREAD_SETAFFINITY
229
230 /* Define for X-Windows */
231 #cmakedefine GMX_X11
232
233 /* Enable x86 gcc inline assembly */
234 #cmakedefine GMX_X86_GCC_INLINE_ASM
235
236 /* Use GPU native acceleration */
237 #cmakedefine GMX_GPU
238
239 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
240 #cmakedefine HAVE_FSEEKO
241
242 /* Define to 1 if _fseeki64 (and presumably _fseeki64) exists and is declared. */
243 #cmakedefine HAVE__FSEEKI64
244
245 /* Define to 1 if you have the gsl library (-lgsl). */
246 #cmakedefine HAVE_LIBGSL
247
248 /* Have io.h (windows)*/
249 #cmakedefine HAVE_IO_H
250
251 /* Define to 1 if you have the posix_memalign() function. */
252 #cmakedefine HAVE_POSIX_MEMALIGN
253
254 /* Define to 1 if you have the memalign() function. */
255 #cmakedefine HAVE_MEMALIGN
256
257 /* Define to 1 if you have the MSVC _aligned_malloc() function. */
258 #cmakedefine HAVE__ALIGNED_MALLOC
259
260 /* Define to 1 if you have the clock_gettime() function. */
261 #cmakedefine HAVE_CLOCK_GETTIME
262
263 /* Define to 1 if you have the gettimeofday() function. */
264 #cmakedefine HAVE_GETTIMEOFDAY
265
266 /* Define to 1 if you have the rdtscp instruction. */
267 #cmakedefine HAVE_RDTSCP
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 yo have the <unistd.h> header file. */
303 #cmakedefine HAVE_UNISTD_H
304
305 /* Define to 1 if yo have the <pwd.h> header file. */
306 #cmakedefine HAVE_PWD_H
307
308 /* Define to 1 if yo have the <dirent.h> header file. */
309 #cmakedefine HAVE_DIRENT_H
310
311 /* Define to 1 if you have the <sys/time.h> header file. */
312 #cmakedefine HAVE_SYS_TIME_H
313
314 /* Define to 1 if you have the <x86intrin.h> header file */
315 #cmakedefine HAVE_X86INTRIN_H
316
317 /* Define to 1 if you have the <intrin.h> header file */
318 #cmakedefine HAVE_INTRIN_H
319
320 /* Define to 1 if you have the <sched.h> header */
321 #cmakedefine HAVE_SCHED_H
322
323 /* Define to 1 if you have the POSIX <regex.h> header file. */
324 #cmakedefine HAVE_POSIX_REGEX
325
326 /* Define to 1 if you have the C++11 <regex> header file. */
327 #cmakedefine HAVE_CXX11_REGEX
328
329 /* Define to 1 if you have the sysconf() function */
330 #cmakedefine HAVE_SYSCONF
331
332 /* Define to 1 if you have the sched_getaffinity() function */
333 #cmakedefine HAVE_SCHED_GETAFFINITY
334
335 /* Define to 1 if you have the sched_setaffinity() function */
336 #cmakedefine HAVE_SCHED_SETAFFINITY
337
338 /* Bytes in IEEE fp word are in big-endian order if set, little-endian if not.
339    Only relevant when FLOAT_FORMAT_IEEE754 is defined. */
340 #cmakedefine GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER
341
342 /* The two words in a double precision variable are in b ig-endian order if
343    set, little-endian if not. Do NOT assume this is the same as the byte
344    order! Only relevant when FLOAT_FORMAT_IEEE754 is defined. */
345 #cmakedefine GMX_IEEE754_BIG_ENDIAN_WORD_ORDER
346
347 /* Define if SIGUSR1 is present */
348 #cmakedefine HAVE_SIGUSR1
349
350 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
351 #cmakedefine _LARGEFILE_SOURCE
352
353 /* Define for large files, on AIX-style hosts. */
354 #cmakedefine _LARGE_FILES
355
356 /* Some systems requires this to be set to 64 for large file support */
357 #cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
358
359 /* Define to __inline__ or __inline if that is what the C compiler
360    calls it, or to nothing if inline is not supported under any name.
361    Please do NOT remove the gmx_inline keyword from here. The classical
362    C++ inline keyword is merely a recommendation to the compiler, and
363    many compilers support stronger alternatives (e.g. __forceinline)
364    that we might want to use. */
365 #define gmx_inline ${INLINE_KEYWORD}
366 #ifndef __cplusplus
367 #define inline ${INLINE_KEYWORD}
368 #endif
369
370 /* Define to __restrict__ or __restrict if that is what the C compiler
371    calls it, unless we are on C99 when it is simply called restrict.
372    Since restrict is a reserved key word in C99 we are not allowed to
373    redefine the word itself, so call this gmx_restrict to avoid having
374    to identify the language standard level. If it is not supported, it
375    is still defined to an empty string here. */
376 #define gmx_restrict ${RESTRICT_KEYWORD}
377 /* Build special-purpose mdrun library */
378 #cmakedefine GMX_FAHCORE   
379
380 /* Enable gromacs quotes */
381 #cmakedefine GMX_COOL_QUOTES
382
383 #ifdef GMX_FAHCORE
384 #define FULLINDIRECT 1
385 #define USE_FAH_XDR  1
386 #include "swindirect.h"
387 #endif
388
389 /* default name mangling maybe wrong on exotic plattforms */
390 #define F77_FUNC(name,NAME) name ## _
391
392 /* Define if we have pipes */
393 #cmakedefine HAVE_PIPES
394
395 /*! \endcond */