diff --git a/modules/gpu/src/opencv2/gpu/device/datamov_utils.hpp b/modules/gpu/src/opencv2/gpu/device/datamov_utils.hpp index aece53c06e..a705cb621e 100644 --- a/modules/gpu/src/opencv2/gpu/device/datamov_utils.hpp +++ b/modules/gpu/src/opencv2/gpu/device/datamov_utils.hpp @@ -52,7 +52,7 @@ namespace cv { namespace gpu { namespace device // for Fermi memory space is detected automatically template struct ForceGlob { - __device__ __forceinline__ static void Load(const T* ptr, int offset, T& val) { val = d_ptr[offset]; } + __device__ __forceinline__ static void Load(const T* ptr, int offset, T& val) { val = ptr[offset]; } }; #else // __CUDA_ARCH__ >= 200