Commit cdad4ac7 authored by Marina Kolpakova's avatar Marina Kolpakova

Merge branch 'home'

parent 6d3fecd4
...@@ -189,12 +189,12 @@ GpuMat cv::gpu::CudaMem::createGpuMatHeader () const { throw_nogpu(); return Gpu ...@@ -189,12 +189,12 @@ GpuMat cv::gpu::CudaMem::createGpuMatHeader () const { throw_nogpu(); return Gpu
#else /* !defined (HAVE_CUDA) */ #else /* !defined (HAVE_CUDA) */
void registerPageLocked(Mat& m) void cv::gpu::registerPageLocked(Mat& m)
{ {
cudaSafeCall( cudaHostRegister(m.ptr(), m.step * m.rows, cudaHostRegisterPortable) ); cudaSafeCall( cudaHostRegister(m.ptr(), m.step * m.rows, cudaHostRegisterPortable) );
} }
void unregisterPageLocked(Mat& m) void cv::gpu::unregisterPageLocked(Mat& m)
{ {
cudaSafeCall( cudaHostUnregister(m.ptr()) ); cudaSafeCall( cudaHostUnregister(m.ptr()) );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment