Move CUDA texture setup code from NB CUDA module to cudautils.cu
[alexxy/gromacs.git] / src / gromacs / gpu_utils / cuda_arch_utils.cuh
index 7cceb1a04d96e5286fed9b796fa90ae2e3d68867..4639acdd2344db50b7858680349950a0185e0827 100644 (file)
@@ -150,6 +150,10 @@ T gmx_shfl_down_sync(const unsigned int activeMask,
 #define DISABLE_CUDA_TEXTURES 0
 #endif
 
+/*! \brief True if the use of texture fetch in the CUDA kernels is disabled. */
+static const bool c_disableCudaTextures = DISABLE_CUDA_TEXTURES;
+
+
 /* CUDA architecture technical characteristics. Needs macros because it is used
  * in the __launch_bounds__ function qualifiers and might need it in preprocessor
  * conditionals.