Skip to content

cudalegacy: Use safe block scan function - #13810

Merged
opencv-pushbot merged 1 commit into
opencv:3.4from
nglee:dev_CudaSafeBlockScan
Feb 12, 2019
Merged

opencv-pushbot merged 1 commit into
opencv:3.4from
nglee:dev_CudaSafeBlockScan

Conversation

@nglee

@nglee nglee commented Feb 12, 2019 •

Copy link
Copy Markdown
Contributor

resolves #13761

Without this PR, following tests hang on 2080 Ti (and possibly on other Volta and Turing cards).

opencv_test_cudalegacy --gtest_filter=*NPPST.Integral*
opencv_test_cudalegacy --gtest_filter=*NPPST.SquaredIntegral*
opencv_test_cudalegacy --gtest_filter=*NPPST.RectStdDev*
opencv_test_cudalegacy --gtest_filter=*NPPST.Integral*
opencv_test_cudalegacy --gtest_filter=*NPPST.VectorOperations*
opencv_test_cudalegacy --gtest_filter=*NCV.HaarCascadeApplication*

The hanging behavior of the last test case (NCV.HaarCascadeApplication) is identical issue to #13761, which this PR resolves.

Using "safe" version of block scan function (in cudev module) added by #13658 fixes these hanging issues.

Verified on following test environments:

CUDA 10.0 on 2080 Ti
CUDA 9.2 on 1080
CUDA 8.0 on 1080
force_builders=Custom
buildworker:Custom=linux-1,linux-2,linux-4
docker_image:Custom=ubuntu-cuda:16.04

@alalek

alalek commented Feb 12, 2019

Copy link
Copy Markdown
Member

Thank you!

Please take a look on this build error (with CUDA 8.0).

@nglee
nglee force-pushed the dev_CudaSafeBlockScan branch from ff9ae6e to 9c7cd86 Compare February 12, 2019 15:40
@nglee
nglee force-pushed the dev_CudaSafeBlockScan branch from 9c7cd86 to 21eb60f Compare February 12, 2019 16:56
@logidelic

Copy link
Copy Markdown

Thank you! I just want to confirm that this fix works for me in my (very limited) testing. I see that merging is blocked currently... Who can approve the merge into the 3.4 branch?

@nglee

nglee commented Feb 12, 2019

Copy link
Copy Markdown
Contributor Author

After the maintainers confirm this PR, they will merge it into the 3.4 branch.

Meanwhile, you can use this patch to test your code. The patch contains the changes made by this PR.
0001-cudalegacy-Use-safe-block-scan-function.patch.gz

@alalek alalek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nglee Well done! Thank you for contribution 👍

@opencv-pushbot
opencv-pushbot merged commit 21eb60f into opencv:3.4 Feb 12, 2019
@nglee
nglee deleted the dev_CudaSafeBlockScan branch February 13, 2019 01:05
This was referenced Feb 19, 2019
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug category: gpu/cuda (contrib) OpenCV 4.0+: moved to opencv_contrib

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants