From 863a67fea941c0e611fcf0f105f7c1b8ec909464 Mon Sep 17 00:00:00 2001 From: Roland Schulz Date: Wed, 11 Jun 2014 02:02:13 -0400 Subject: [PATCH] Make nbnxn template and generated files match Change-Id: I80b80e242d920862a64db22ae2321dcdb532faa1 --- .../make_verlet_simd_kernel_files.py | 4 +--- .../nbnxn_kernel_simd_template.c.pre | 7 ++++--- .../nbnxn_kernel_simd_template.h.pre | 4 +++- .../mdlib/nbnxn_kernels/simd_4xn/nbnxn_kernel_simd_4xn.c | 1 + 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/make_verlet_simd_kernel_files.py b/src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/make_verlet_simd_kernel_files.py index 76a1c5d4ab..b3fdecc014 100755 --- a/src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/make_verlet_simd_kernel_files.py +++ b/src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/make_verlet_simd_kernel_files.py @@ -142,9 +142,7 @@ VerletKernelTypeDict = { }, '4xn' : { 'Define' : 'GMX_NBNXN_SIMD_4XN', - 'WidthSetup' : ('#ifdef GMX_NBNXN_HALF_WIDTH_SIMD\n' \ - '#define GMX_USE_HALF_WIDTH_SIMD_HERE\n' \ - '#endif\n'), + 'WidthSetup' : (''), 'WidthCheck' : ('#if !(GMX_SIMD_REAL_WIDTH == 2 || GMX_SIMD_REAL_WIDTH == 4 || GMX_SIMD_REAL_WIDTH == 8)\n' \ '#error "unsupported SIMD width"\n' \ '#endif\n'), diff --git a/src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/nbnxn_kernel_simd_template.c.pre b/src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/nbnxn_kernel_simd_template.c.pre index 1ac1bf5419..a3ede7190f 100644 --- a/src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/nbnxn_kernel_simd_template.c.pre +++ b/src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/nbnxn_kernel_simd_template.c.pre @@ -38,11 +38,12 @@ #include "typedefs.h" +#include "gromacs/mdlib/nbnxn_simd.h" + #ifdef {0} -{1} -#include "gromacs/simd/macros.h" -#include "gromacs/simd/vector_operations.h" +{1}#include "gromacs/simd/vector_operations.h" + {2} #define GMX_SIMD_J_UNROLL_SIZE {3} #include "{4}" diff --git a/src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/nbnxn_kernel_simd_template.h.pre b/src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/nbnxn_kernel_simd_template.h.pre index 61e3155fa5..e3fa05fb8f 100644 --- a/src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/nbnxn_kernel_simd_template.h.pre +++ b/src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/nbnxn_kernel_simd_template.h.pre @@ -1,7 +1,7 @@ /* * This file is part of the GROMACS molecular simulation package. * - * Copyright (c) 2012,2013, by the GROMACS development team, led by + * Copyright (c) 2012,2013,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. @@ -34,6 +34,8 @@ */ #include "typedefs.h" +#include "gromacs/mdlib/nbnxn_simd.h" + #ifdef __cplusplus extern "C" {{ #endif diff --git a/src/gromacs/mdlib/nbnxn_kernels/simd_4xn/nbnxn_kernel_simd_4xn.c b/src/gromacs/mdlib/nbnxn_kernels/simd_4xn/nbnxn_kernel_simd_4xn.c index 17608af2e7..0684149bad 100644 --- a/src/gromacs/mdlib/nbnxn_kernels/simd_4xn/nbnxn_kernel_simd_4xn.c +++ b/src/gromacs/mdlib/nbnxn_kernels/simd_4xn/nbnxn_kernel_simd_4xn.c @@ -48,6 +48,7 @@ #ifdef GMX_NBNXN_SIMD_4XN #include "gromacs/simd/vector_operations.h" + #if !(GMX_SIMD_REAL_WIDTH == 2 || GMX_SIMD_REAL_WIDTH == 4 || GMX_SIMD_REAL_WIDTH == 8) #error "unsupported SIMD width" #endif -- 2.22.0