-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Closed
Description
System Information
OpenCV version: 4.8.0
Operating System / Platform: Ubuntu 22.04
Compiler & compiler version: Clang 16.0.6
QEMU: qemu-riscv64 version 8.0.3 (from RVV docker file: opencv-infrastructure/opencv-gha-dockerfile#20)
Detailed description
Test for Core_DotProduct.accuracy fails on RVV
If and only if this code block is enabled for RVV , unit test Core_DotProduct.accuracy fails due to too big difference (=1.20209e-08 > 1.11022e-12).
$ ~/sc-dt/tools/bin/qemu-riscv64 -cpu rv64,v=true,vlen=128,vext_spec=v1.0 -L ~/tool/rvbuild/sysroot/ ./bin/opencv_test_core --gtest_filter="Core_DotProduct.accuracy*"
/home/hanliutong/project/opencv/modules/ts/src/ts.cpp:618: Failure
Failed
failure reason: Bad accuracy
test case #4
seed: 00000000000c5a60
-----------------------------------
LOG:
output: Too big difference (=1.20209e-08 > 1.11022e-12) at element 0
input array 0 type=32sC1, size=(6, 5)
input array 1 type=32sC1, size=(6, 5)
ref output array 0 type=64fC1, size=(1, 4)
test_case_idx = 4
-----------------------------------
[ FAILED ] Core_DotProduct.accuracy (20 ms)
[----------] 1 test from Core_DotProduct (22 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (30 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] Core_DotProduct.accuracy
Steps to reproduce
- Enable the code block for RVV by adding
CV_SIMD_SCALABEon line 2551
--- #if CV_SIMD_64F
+++ #if CV_SIMD_64F || CV_SIMD_SCALABLE_64F - Rebuild and run the test
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- I updated to the latest OpenCV version and the issue is still there
- There is reproducer code and related data files (videos, images, onnx, etc)
Reactions are currently unavailable