Commit 4d721e36 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #10218 from catree:fix_cuda_integral

parents 552c3ba8 6d06fcb4
...@@ -1076,7 +1076,7 @@ CUDA_TEST_P(Integral, Accuracy) ...@@ -1076,7 +1076,7 @@ CUDA_TEST_P(Integral, Accuracy)
INSTANTIATE_TEST_CASE_P(CUDA_Arithm, Integral, testing::Combine( INSTANTIATE_TEST_CASE_P(CUDA_Arithm, Integral, testing::Combine(
ALL_DEVICES, ALL_DEVICES,
testing::Values(cv::Size(128, 128), cv::Size(113, 113), cv::Size(768, 1066)), testing::Values(cv::Size(16, 16), cv::Size(128, 128), cv::Size(113, 113), cv::Size(768, 1066)),
WHOLE_SUBMAT)); WHOLE_SUBMAT));
/////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////
......
...@@ -598,7 +598,7 @@ namespace integral_detail ...@@ -598,7 +598,7 @@ namespace integral_detail
__host__ static void integral(const GlobPtr<uchar>& src, const GlobPtr<uint>& dst, int rows, int cols, cudaStream_t stream) __host__ static void integral(const GlobPtr<uchar>& src, const GlobPtr<uint>& dst, int rows, int cols, cudaStream_t stream)
{ {
if (deviceSupports(FEATURE_SET_COMPUTE_30) if (deviceSupports(FEATURE_SET_COMPUTE_30)
&& (cols % 16 == 0) && (cols % 64 == 0)
&& reinterpret_cast<intptr_t>(src.data) % 32 == 0 && reinterpret_cast<intptr_t>(src.data) % 32 == 0
&& reinterpret_cast<intptr_t>(dst.data) % 32 == 0) && reinterpret_cast<intptr_t>(dst.data) % 32 == 0)
{ {
......
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