From 92729b3c9eccc28b6f804f331383c7aafb86e4b6 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 8 Oct 2019 15:30:02 +0300 Subject: [PATCH] [moved from opencv] build: eliminate CUDA warnings original commit: https://github.com/opencv/opencv/commit/6efdfee3f00c0df8f4ab389da91d1d6d81375f53 --- modules/cudalegacy/src/cuda/NCVBroxOpticalFlow.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cudalegacy/src/cuda/NCVBroxOpticalFlow.cu b/modules/cudalegacy/src/cuda/NCVBroxOpticalFlow.cu index 690bf8e1c..019148802 100644 --- a/modules/cudalegacy/src/cuda/NCVBroxOpticalFlow.cu +++ b/modules/cudalegacy/src/cuda/NCVBroxOpticalFlow.cu @@ -955,7 +955,7 @@ NCVStatus NCVBroxOpticalFlow(const NCVBroxOpticalFlowDescriptor desc, //compute derivatives dim3 dBlocks(iDivUp(kLevelWidth, 32), iDivUp(kLevelHeight, 6)); - dim3 dThreads(32, 6); + //dim3 dThreads(32, 6); const int kPitchTex = kLevelStride * sizeof(float); @@ -1121,7 +1121,7 @@ NCVStatus NCVBroxOpticalFlow(const NCVBroxOpticalFlowDescriptor desc, Ncv32u ns = alignUp(nw, kStrideAlignmentFloat); dim3 p_blocks(iDivUp(nw, 32), iDivUp(nh, 8)); - dim3 p_threads(32, 8); + //dim3 p_threads(32, 8); NcvSize32u inner_srcSize (kLevelWidth, kLevelHeight); NcvSize32u dstSize (nw, nh);