Skip to content

Commit 4d721e3

Browse files
committed
Merge pull request opencv#10218 from catree:fix_cuda_integral
2 parents 552c3ba + 6d06fcb commit 4d721e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/cudaarithm/test/test_reductions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ CUDA_TEST_P(Integral, Accuracy)
10761076

10771077
INSTANTIATE_TEST_CASE_P(CUDA_Arithm, Integral, testing::Combine(
10781078
ALL_DEVICES,
1079-
testing::Values(cv::Size(128, 128), cv::Size(113, 113), cv::Size(768, 1066)),
1079+
testing::Values(cv::Size(16, 16), cv::Size(128, 128), cv::Size(113, 113), cv::Size(768, 1066)),
10801080
WHOLE_SUBMAT));
10811081

10821082
///////////////////////////////////////////////////////////////////////////////////////////////////////

modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ namespace integral_detail
598598
__host__ static void integral(const GlobPtr<uchar>& src, const GlobPtr<uint>& dst, int rows, int cols, cudaStream_t stream)
599599
{
600600
if (deviceSupports(FEATURE_SET_COMPUTE_30)
601-
&& (cols % 16 == 0)
601+
&& (cols % 64 == 0)
602602
&& reinterpret_cast<intptr_t>(src.data) % 32 == 0
603603
&& reinterpret_cast<intptr_t>(dst.data) % 32 == 0)
604604
{

0 commit comments

Comments
 (0)