From: Mark Abraham Date: Tue, 16 Oct 2018 07:08:34 +0000 (+0200) Subject: Fix compiler issues X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=ca6ba370ce8725fdbfb9bbd1da645b39a297cfb3;p=alexxy%2Fgromacs.git Fix compiler issues We recently added some extern template declarations to a function whose argument list was then modified, but gerrit didn't flag the change as requiring a rebase. Also fixed mdrun-only build Change-Id: Ib7aa0d685e881faa2abce628f06aef3d666d260c --- diff --git a/src/gromacs/gpu_utils/cudautils.cuh b/src/gromacs/gpu_utils/cudautils.cuh index df319ae051..1116d66674 100644 --- a/src/gromacs/gpu_utils/cudautils.cuh +++ b/src/gromacs/gpu_utils/cudautils.cuh @@ -188,8 +188,8 @@ void initParamLookupTable(T * &d_ptr, // Add extern declarations so each translation unit understands that // there will be a definition provided. -extern template void initParamLookupTable(int * &, cudaTextureObject_t &, const int *, int, const gmx_device_info_t *); -extern template void initParamLookupTable(float * &, cudaTextureObject_t &, const float *, int, const gmx_device_info_t *); +extern template void initParamLookupTable(int * &, cudaTextureObject_t &, const int *, int); +extern template void initParamLookupTable(float * &, cudaTextureObject_t &, const float *, int); /*! \brief Destroy parameter lookup table. * @@ -205,8 +205,8 @@ void destroyParamLookupTable(T *d_ptr, // Add extern declarations so each translation unit understands that // there will be a definition provided. -extern template void destroyParamLookupTable(int *, cudaTextureObject_t, const gmx_device_info_t *); -extern template void destroyParamLookupTable(float *, cudaTextureObject_t, const gmx_device_info_t *); +extern template void destroyParamLookupTable(int *, cudaTextureObject_t); +extern template void destroyParamLookupTable(float *, cudaTextureObject_t); /*! \brief Add a triplets stored in a float3 to an rvec variable. * diff --git a/src/programs/mdrun_main.cpp b/src/programs/mdrun_main.cpp index c2bdb70b3d..660e16c898 100644 --- a/src/programs/mdrun_main.cpp +++ b/src/programs/mdrun_main.cpp @@ -1,7 +1,7 @@ /* * This file is part of the GROMACS molecular simulation package. * - * Copyright (c) 2013,2014,2016, by the GROMACS development team, led by + * Copyright (c) 2013,2014,2016,2018, 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. @@ -53,5 +53,5 @@ void initSettingsNoNice(gmx::CommandLineModuleSettings *settings) int main(int argc, char *argv[]) { return gmx::CommandLineModuleManager::runAsMainCMainWithSettings( - argc, argv, &gmx_mdrun, &initSettingsNoNice); + argc, argv, &gmx::gmx_mdrun, &initSettingsNoNice); }