-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rgbd: get rid of kernel build failure #2831
Conversation
Please hold to merge this PR.
Even adding |
7fda4cb
to
d76d8d6
Compare
Sorry for late update.
After
Now, for ex.) on Firefly-RK3399
|
d76d8d6
to
c2d5ed2
Compare
I want to emphasize that test of
They are from
So, the failure is not caused by this PR |
Please take a look on "OpenCL Linux" builder failure: |
I confirmed. Forgive me, this I don't want to fix entire problem (it's triggering another test one after another), so I''ll look for some meaningful portion of fix in a single PR. Please hold this PR until I dig out the exact cause of this test failure. |
c2d5ed2
to
09b03a1
Compare
* prevent out-of-bounds access * prevent deallocate before return * fix build warning
09b03a1
to
241579a
Compare
@@ -859,14 +859,13 @@ static cv::UMat preCalculationPixNormGPU(int depth_rows, int depth_cols, Vec2f f | |||
throw std::runtime_error("Failed to create kernel: " + errorStr); | |||
|
|||
AccessFlag af = ACCESS_READ; | |||
UMat pixNorm = _pixNorm.getUMat(af); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, getUMat()
is local only wrapper - it should not be "returned" or stored somewhere.
Appreciate. Mainly 3 points to fix.
|
Anything else to be done before this PR gets merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Closes #2830
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.