Remove useless extern CUDA texture reference declarations from PME
authorAleksei Iupinov <a.yupinov@gmail.com>
Thu, 12 Oct 2017 11:00:59 +0000 (13:00 +0200)
committerAleksei Iupinov <a.yupinov@gmail.com>
Thu, 12 Oct 2017 13:05:40 +0000 (15:05 +0200)
These are only accessed from the same compilation unit (pme-spread.cu)
on the device side, and the host side is only using nearby getters.

Change-Id: Ie846193c71142ff5e519e990ef1155b534546a9b

src/gromacs/ewald/pme.cuh

index bed5feb4923a64a4c0c1bab45a9d6ce70739a8da..4584b7b98f917cc3ff3a13c273cbbc6fff328943 100644 (file)
@@ -45,8 +45,6 @@
 #ifndef GMX_EWALD_PME_CUH
 #define GMX_EWALD_PME_CUH
 
-#include "config.h"
-
 #include <cassert>
 
 #include <array>
@@ -234,10 +232,6 @@ struct pme_gpu_cuda_kernel_params_t : pme_gpu_kernel_params_base_t
 /* CUDA texture reference functions which reside in respective kernel files
  * (due to texture references having scope of a translation unit).
  */
-#if !GMX_CUDA_NB_SINGLE_COMPILATION_UNIT
-extern texture<int, 1, cudaReadModeElementType>   gridlineIndicesTableTextureRef;
-extern texture<float, 1, cudaReadModeElementType> fractShiftsTableTextureRef;
-#endif
 /*! Returns the reference to the gridlineIndices texture. */
 texture<int, 1, cudaReadModeElementType>   &pme_gpu_get_gridline_texref();
 /*! Returns the reference to the fractShifts texture. */