#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
#define UNROLLJ (GMX_SIMD_REAL_WIDTH/GMX_SIMD_J_UNROLL_SIZE)
/* The stride of all the atom data arrays is equal to half the SIMD width */
-#define STRIDE (GMX_SIMD_REAL_WIDTH/GMX_SIMD_J_UNROLL_SIZE)
+#define STRIDE UNROLLJ
#include "../nbnxn_kernel_simd_utils.h"
/* Atom indices (of the first atom in the cluster) */
aj = cj*UNROLLJ;
#if defined CALC_LJ && (defined LJ_COMB_GEOM || defined LJ_COMB_LB || defined LJ_EWALD_GEOM)
-#if UNROLLJ == STRIDE
aj2 = aj*2;
-#else
- aj2 = (cj>>1)*2*STRIDE + (cj & 1)*UNROLLJ;
-#endif
#endif
-#if UNROLLJ == STRIDE
ajx = aj*DIM;
-#else
- ajx = (cj>>1)*DIM*STRIDE + (cj & 1)*UNROLLJ;
-#endif
ajy = ajx + STRIDE;
ajz = ajy + STRIDE;
#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
{