Open Kumataro opened 8 months ago
In release build (no errors).
kmtr@kmtr-None:~/work/build5-main_debug$ ./bin/opencv_test_core --gtest_filter="Core_Xor/E*"
CTEST_FULL_OUTPUT
OpenCV version: 5.0.0-pre
OpenCV VCS version: 4.8.0-578-g788c7252dc
Build type: release
WARNING: build value differs from runtime: Release
Compiler: /usr/bin/c++ (ver 13.2.0)
Parallel framework: pthreads (nthreads=8)
CPU features: SSE SSE2 SSE3 *SSE4.1 *SSE4.2 *FP16 *AVX *AVX2 *AVX512-SKX?
Intel(R) IPP version: ippIP AVX2 (l9) 2021.10.0 (-) Sep 18 2023
Intel(R) IPP features code: 0x8000
OpenCL is disabled
TEST: Skip tests with tags: 'mem_6gb', 'verylong'
Note: Google Test filter = Core_Xor/E*
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from Core_Xor/ElemWiseTest
[ RUN ] Core_Xor/ElemWiseTest.accuracy/0, where GetParam() = 16-byte object <F0-73 70-6C C4-55 00-00 A0-DE 73-6C C4-55 00-00>
[ OK ] Core_Xor/ElemWiseTest.accuracy/0 (1014 ms)
[----------] 1 test from Core_Xor/ElemWiseTest (1014 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (1015 ms total)
[ PASSED ] 1 test.
kmtr@kmtr-None:~/work/build5-main_debug$
I think testing mat types are defined with following code.
DEPTH_MASK_ALL_BUT_8S
seems to contain DEPTH_MASK_16F
after OpenCV5.
So some matrix with CV_16F is tested for Xor/XorS operations.
System Information
OpenCV version: 5.x Operating System / Platform: Ubuntu 23.10 (x86-64) Compiler & compiler version: GCC 13.2.0 (This problem occurs in debug build only)
cmake -S opencv5 -B build5-main_debug -GNinja -DCMAKE_BUILD_TYPE=debug
Detailed description
opencv_test_core
is failed atCore_Xor
andCore_XorS
withCV_16F
. It causes only debug build, not release build. To remove bitwise operations for CV_16F are one of solutions, but to decide it is need to more comment.Steps to reproduce
cmake -S opencv5 -B build5-main_debug -GNinja -DCMAKE_BUILD_TYPE=debug
cmake --build build5-main_debug
cd build5-main_debug
./bin/opencv_test_core --gtest_filter="Core_Xor/E*"
This
nan
values indst0
anddst
are not same.Issue submission checklist