-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Accuracy cudaarithm test fails after CUDA/GpuMat_SetTo.Zero test case #3361
Comments
It looks like a device error cause by CUDA_Event/AsyncEvent.Timing/1, which comes before CUDA/GpuMat_SetTo.Zero. The call to It doesn't fail if I disable it (--gtest_filter=-CUDA_Event/AsyncEvent.W*) does on your end if you disable it? |
The next CUDA call in the sequence should ignore the last error code and set it's own status. If I understand correctly, there is some |
There are two cases:
In case 1 there is no problem, if In case 2 Therefore the next CUDA call can't ignore the last error code if it calls Shouldn't OpenCV be responsible for clearing this internally if it throws an exeption? The alternative would be for OpenCV to expose |
@cudawarped, if I run tests with |
@asenyaev sorry wrong flag that was to run only |
It means that we have sequence like this: |
Adding more detail the sequence is
Anything else, such as clearing the error before CUDA api calls will most likely fail because the runtime calls can be asynchronous with respect to the host.
I agree but if we don't expose a way to clear it through OpenCV users who don't link agains the cuda toolkit could face exceptions in If we clear the error when an exception is thrown then shouldn't the error code always be reported to the user in the exception message. |
Accuracy:cudaarithm
fails always on a next test afterCUDA/GpuMat_SetTo.Zero
test case(not the first next, but one from the next test case). I tried to filter tests, but it's a never-ending process.By default, it fails here:
Details about the never-ending process
If to disable
CUDA/GpuMat_SetTo.SameVal
test case, then the next test case will fail:If to disable
CUDA/GpuMat_SetTo.DifferentVal
test case, then the next test case will fail:System Information
The text was updated successfully, but these errors were encountered: