From ad3123adfdaec8dd1cb95a0d84a3f729d767a201 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Fri, 6 Mar 2015 13:58:35 +0300 Subject: [PATCH] turn on some instantiates that required for other primitives --- modules/gpu/src/cuda/copy_make_border.cu | 2 -- modules/gpu/src/cuda/element_operations.cu | 8 +++++--- modules/gpu/src/cuda/matrix_reductions.cu | 2 +- modules/gpu/src/element_operations.cpp | 4 ++-- modules/gpu/src/imgproc.cpp | 4 ++-- modules/gpu/src/matrix_reductions.cpp | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/gpu/src/cuda/copy_make_border.cu b/modules/gpu/src/cuda/copy_make_border.cu index 3ae29a38a1..ca5a4f779e 100644 --- a/modules/gpu/src/cuda/copy_make_border.cu +++ b/modules/gpu/src/cuda/copy_make_border.cu @@ -105,9 +105,7 @@ namespace cv { namespace gpu { namespace device } template void copyMakeBorder_gpu(const PtrStepSzb& src, const PtrStepSzb& dst, int top, int left, int borderMode, const uchar* borderValue, cudaStream_t stream); -#ifndef OPENCV_TINY_GPU_MODULE template void copyMakeBorder_gpu(const PtrStepSzb& src, const PtrStepSzb& dst, int top, int left, int borderMode, const uchar* borderValue, cudaStream_t stream); -#endif template void copyMakeBorder_gpu(const PtrStepSzb& src, const PtrStepSzb& dst, int top, int left, int borderMode, const uchar* borderValue, cudaStream_t stream); template void copyMakeBorder_gpu(const PtrStepSzb& src, const PtrStepSzb& dst, int top, int left, int borderMode, const uchar* borderValue, cudaStream_t stream); diff --git a/modules/gpu/src/cuda/element_operations.cu b/modules/gpu/src/cuda/element_operations.cu index 1f94f6a5c3..bca89ad643 100644 --- a/modules/gpu/src/cuda/element_operations.cu +++ b/modules/gpu/src/cuda/element_operations.cu @@ -2193,15 +2193,17 @@ namespace arithm transform((PtrStepSz) src1, (PtrStepSz) dst, cv::gpu::device::bind2nd(minimum(), src2), WithOutMask(), stream); } +#ifdef OPENCV_TINY_GPU_MODULE + template void minScalar(PtrStepSzb src1, double src2, PtrStepSzb dst, cudaStream_t stream); + template void minScalar(PtrStepSzb src1, double src2, PtrStepSzb dst, cudaStream_t stream); + template void minScalar(PtrStepSzb src1, double src2, PtrStepSzb dst, cudaStream_t stream); +#else template void minScalar(PtrStepSzb src1, double src2, PtrStepSzb dst, cudaStream_t stream); -#ifndef OPENCV_TINY_GPU_MODULE template void minScalar(PtrStepSzb src1, double src2, PtrStepSzb dst, cudaStream_t stream); template void minScalar(PtrStepSzb src1, double src2, PtrStepSzb dst, cudaStream_t stream); template void minScalar(PtrStepSzb src1, double src2, PtrStepSzb dst, cudaStream_t stream); template void minScalar(PtrStepSzb src1, double src2, PtrStepSzb dst, cudaStream_t stream); -#endif template void minScalar(PtrStepSzb src1, double src2, PtrStepSzb dst, cudaStream_t stream); -#ifndef OPENCV_TINY_GPU_MODULE template void minScalar(PtrStepSzb src1, double src2, PtrStepSzb dst, cudaStream_t stream); #endif } diff --git a/modules/gpu/src/cuda/matrix_reductions.cu b/modules/gpu/src/cuda/matrix_reductions.cu index 6048d41688..15d6612832 100644 --- a/modules/gpu/src/cuda/matrix_reductions.cu +++ b/modules/gpu/src/cuda/matrix_reductions.cu @@ -975,8 +975,8 @@ namespace minMaxLoc template void run(const PtrStepSzb src, const PtrStepb mask, double* minval, double* maxval, int* minloc, int* maxloc, PtrStepb valbuf, PtrStep locbuf); template void run(const PtrStepSzb src, const PtrStepb mask, double* minval, double* maxval, int* minloc, int* maxloc, PtrStepb valbuf, PtrStep locbuf); template void run(const PtrStepSzb src, const PtrStepb mask, double* minval, double* maxval, int* minloc, int* maxloc, PtrStepb valbuf, PtrStep locbuf); - template void run(const PtrStepSzb src, const PtrStepb mask, double* minval, double* maxval, int* minloc, int* maxloc, PtrStepb valbuf, PtrStep locbuf); #endif + template void run(const PtrStepSzb src, const PtrStepb mask, double* minval, double* maxval, int* minloc, int* maxloc, PtrStepb valbuf, PtrStep locbuf); template void run(const PtrStepSzb src, const PtrStepb mask, double* minval, double* maxval, int* minloc, int* maxloc, PtrStepb valbuf, PtrStep locbuf); #ifndef OPENCV_TINY_GPU_MODULE template void run(const PtrStepSzb src, const PtrStepb mask, double* minval, double* maxval, int* minloc, int* maxloc, PtrStepb valbuf, PtrStep locbuf); diff --git a/modules/gpu/src/element_operations.cpp b/modules/gpu/src/element_operations.cpp index bd8ca81bf1..780745d733 100644 --- a/modules/gpu/src/element_operations.cpp +++ b/modules/gpu/src/element_operations.cpp @@ -3717,7 +3717,7 @@ void cv::gpu::min(const GpuMat& src, double val, GpuMat& dst, Stream& stream) 0/*minScalar*/, 0/*minScalar*/, 0/*minScalar*/, - 0/*minScalar*/, + minScalar, minScalar, 0/*minScalar*/, }; @@ -3728,7 +3728,7 @@ void cv::gpu::min(const GpuMat& src, double val, GpuMat& dst, Stream& stream) 0/*castScalar*/, 0/*castScalar*/, 0/*castScalar*/, - 0/*castScalar*/, + castScalar, castScalar, 0/*castScalar*/, }; diff --git a/modules/gpu/src/imgproc.cpp b/modules/gpu/src/imgproc.cpp index a8f1864054..c0dfc44d13 100644 --- a/modules/gpu/src/imgproc.cpp +++ b/modules/gpu/src/imgproc.cpp @@ -339,12 +339,12 @@ void cv::gpu::copyMakeBorder(const GpuMat& src, GpuMat& dst, int top, int bottom #ifdef OPENCV_TINY_GPU_MODULE static const caller_t callers[6][4] = { - { copyMakeBorder_caller , 0/*copyMakeBorder_caller*/, copyMakeBorder_caller , copyMakeBorder_caller}, + { copyMakeBorder_caller , copyMakeBorder_caller , copyMakeBorder_caller , copyMakeBorder_caller}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, - { copyMakeBorder_caller , 0/*copyMakeBorder_caller*/ , copyMakeBorder_caller , copyMakeBorder_caller} + { copyMakeBorder_caller , 0/*copyMakeBorder_caller*/, copyMakeBorder_caller , copyMakeBorder_caller} }; #else static const caller_t callers[6][4] = diff --git a/modules/gpu/src/matrix_reductions.cpp b/modules/gpu/src/matrix_reductions.cpp index c7a760cf5e..c22790e35d 100644 --- a/modules/gpu/src/matrix_reductions.cpp +++ b/modules/gpu/src/matrix_reductions.cpp @@ -523,7 +523,7 @@ void cv::gpu::minMaxLoc(const GpuMat& src, double* minVal, double* maxVal, Point 0/*::minMaxLoc::run*/, 0/*::minMaxLoc::run*/, 0/*::minMaxLoc::run*/, - 0/*::minMaxLoc::run*/, + ::minMaxLoc::run, ::minMaxLoc::run, 0/*::minMaxLoc::run*/, };