Include config.h directly in files that use definitions from there.
Only gmx_blas/gmx_lapack are exceptions, where the header does the
inclusion for simplicity. There is also one of the kernel inner loop
files in nbnxn kernels that relies on the source file including
config.h.
Change-Id: Ibea7d3fafb0e7de5ee3d40e52c68fef5646edf37
#include "gromacs/utility/programcontext.h"
#include "gromacs/utility/smalloc.h"
+#include "config.h"
+
namespace gmx
{
#include "gromacs/utility/fatalerror.h"
+#include "config.h"
+
/* We use the same defines as in mvdata.c here */
#define block_bc(cr, d) gmx_bcast( sizeof(d), &(d), (cr))
#define nblock_bc(cr, nr, d) gmx_bcast((nr)*sizeof((d)[0]), (d), (cr))
#ifndef _kernelutil_x86_avx_128_fma_single_h_
#define _kernelutil_x86_avx_128_fma_single_h_
+#include "config.h"
#include <math.h>
#include <immintrin.h>
#ifndef _kernelutil_x86_avx_256_single_h_
#define _kernelutil_x86_avx_256_single_h_
+#include "config.h"
+
#define gmx_mm_castsi128_ps(a) _mm_castsi128_ps(a)
static gmx_inline __m256 gmx_simdcall
#include "../fileio/filenm.h"
#include "../timing/wallcycle.h"
+#include "config.h"
+
#ifdef GMX_NATIVE_WINDOWS
#include <Windows.h>
#define NOFLAGS 0
#ifndef GMX_IMD_IMDSOCKET_H
#define GMX_IMD_IMDSOCKET_H
+#include "config.h"
+
/* Check if we can/should use winsock or standard UNIX sockets. */
#ifdef GMX_NATIVE_WINDOWS
#ifdef GMX_HAVE_WINSOCK
#include "gromacs/legacyheaders/types/nbnxn_cuda_types_ext.h"
#include "gromacs/legacyheaders/types/hw_info.h"
+#include "config.h"
+
#ifdef GMX_GPU
#define FUNC_TERM ;
#define FUNC_QUALIFIER
#include "gromacs/legacyheaders/types/simple.h"
+#include "config.h"
+
/*! \brief Provides hardware-specific utility routines for the SIMD kernels.
*
* Defines all functions, typedefs, constants and macros that have
#include "gromacs/math/utilities.h"
#endif
+#include "config.h"
+
#ifndef GMX_SIMD_J_UNROLL_SIZE
#error "Need to define GMX_SIMD_J_UNROLL_SIZE before including the 4xn kernel common header file"
#endif
* the research papers on the package. Check out http://www.gromacs.org.
*/
+#include "config.h"
#if GMX_SIMD_REAL_WIDTH >= NBNXN_CPU_CLUSTER_I_SIZE
#define STRIDE_S (GMX_SIMD_REAL_WIDTH)
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2012, by the GROMACS development team, led by
+ * Copyright (c) 2012,2014, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
#include "scanner.h"
+#include "config.h"
+
//! Error handler needed by Bison.
static void
yyerror(yyscan_t scanner, char const *s)
#include "testutils/cmdlinetest.h"
+#include "config.h"
+
namespace
{