-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Closed
Description
System Information
OpenCV version: latest
OS: macOS 14.4
Compiler: Apple clang version 15.0.0 (clang-1500.3.9.4)
Detailed description
Most probably relates: #24660. It fails with CMAKE_BUILD_TYPE=Release but passes with CMAKE_BUILD_TYPE=Debug.
Tested with another machine with macOS 14.4 (thanks to @WanliZhong !) and the same problem occured. Also tested with another machine with macOS 12.2.1 (thanks to @kaingwade !) and it all passed no matter it is debug or release. Looks like this issue may relate to the update of BLAS on recent macOS.
Log (added code to print index and size):
diff --git a/modules/core/test/test_math.cpp b/modules/core/test/test_math.cpp
index cffe1bb537..941b5be5f0 100644
--- a/modules/core/test/test_math.cpp
+++ b/modules/core/test/test_math.cpp
@@ -674,6 +674,11 @@ void Core_GEMMTest::get_test_array_types_and_sizes( int test_case_idx, vector<ve
sizes[INPUT][4].width = sizes[OUTPUT][0].height;
sizes[INPUT][4].height = sizes[OUTPUT][0].width;
}
+
+ std::cout << "test case " << test_case_idx
+ << ", A.size=" << sizes[INPUT][0]
+ << ", B.size=" << sizes[INPUT][1]
+ << ", C.size=" << sizes[OUTPUT][0] << std::endl;
}[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from Core_GEMM
[ RUN ] Core_GEMM.accuracy
test case 0, A.size=[221 x 282], B.size=[74 x 221], C.size=[74 x 282]
test case 1, A.size=[3 x 638], B.size=[638 x 18], C.size=[18 x 3]
test case 2, A.size=[36 x 1], B.size=[1 x 6], C.size=[6 x 36]
test case 3, A.size=[467 x 3], B.size=[467 x 2], C.size=[2 x 3]
test case 4, A.size=[6 x 7], B.size=[6 x 735], C.size=[735 x 7]
test case 5, A.size=[76 x 16], B.size=[184 x 16], C.size=[184 x 76]
test case 6, A.size=[989 x 37], B.size=[220 x 37], C.size=[220 x 989]
test case 7, A.size=[13 x 84], B.size=[264 x 13], C.size=[264 x 84]
test case 8, A.size=[162 x 190], B.size=[316 x 162], C.size=[316 x 190]
test case 9, A.size=[2 x 430], B.size=[379 x 2], C.size=[379 x 430]
test case 10, A.size=[26 x 974], B.size=[974 x 1], C.size=[1 x 26]
test case 11, A.size=[343 x 2], B.size=[2 x 412], C.size=[412 x 343]
test case 12, A.size=[4 x 5], B.size=[4 x 141], C.size=[141 x 5]
test case 13, A.size=[56 x 11], B.size=[56 x 48], C.size=[48 x 11]
test case 14, A.size=[725 x 25], B.size=[936 x 25], C.size=[936 x 725]
/Workspace/fytao/opencv/modules/ts/src/ts.cpp:618: Failure
Failed
failure reason: Arithmetic exception
test case #14
seed: 00000000000c5a6a
-----------------------------------
LOG:
General failure:
Arithmetic exception (-6)
-----------------------------------
CONSOLE: ........
-----------------------------------
[ FAILED ] Core_GEMM.accuracy (848 ms)
[----------] 1 test from Core_GEMM (848 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (849 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] Core_GEMM.accuracy
Steps to reproduce
git clone https://github.com/opencv/opencv
cd opencv
cmake -B build .
cmake --build build --target opencv_test_core -j4
./build/bin/opencv_test_core --gtest_filter="Core_GEMM.accuracy"
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