diff --git a/modules/core/include/opencv2/core/cuda/utility.hpp b/modules/core/include/opencv2/core/cuda/utility.hpp index 96616d67b..b93503737 100644 --- a/modules/core/include/opencv2/core/cuda/utility.hpp +++ b/modules/core/include/opencv2/core/cuda/utility.hpp @@ -59,7 +59,7 @@ namespace cv { namespace cuda { namespace device typedef uchar value_type; virtual __device__ __host__ uchar* allocate(size_t numBytes) = 0; - virtual __device__ __host__ void free(uchar* ptr) = 0; + virtual __device__ __host__ void deallocate(uchar* ptr, size_t numBytes) = 0; static ThrustAllocator& getAllocator(); static void setAllocator(ThrustAllocator* allocator); }; diff --git a/modules/core/src/cuda/gpu_mat.cu b/modules/core/src/cuda/gpu_mat.cu index a4e8ee730..e5a8facef 100644 --- a/modules/core/src/cuda/gpu_mat.cu +++ b/modules/core/src/cuda/gpu_mat.cu @@ -71,7 +71,7 @@ namespace return NULL; #endif } - __device__ __host__ void free(uchar* ptr) + __device__ __host__ void deallocate(uchar* ptr, size_t numBytes) { #ifndef __CUDA_ARCH__ CV_CUDEV_SAFE_CALL(cudaFree(ptr));