free -> deallocate

This commit is contained in:
Dan 2016-02-18 15:05:13 -05:00
parent c0e34934c8
commit 95608b1b84
2 changed files with 2 additions and 2 deletions

View File

@ -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);
};

View File

@ -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));