You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I know, there are many SIMD guards, but not all SIMD.
I honestly like to know which module/function was causing the trouble by SIMD that you experienced.
I know there are still some unguarded SIMD part, but it's difficult to search for me, since my laptop supports AVX and SSE4.2.
The first problem I have encountered (I did not check further due to my application throwing a SIGILL) was in cv::initInterTab2D. Here is the disassembly dump of the function (sorry for the "press enter to continue" lines). If you check around line 203 you can see a vmovss operation, which should be AVX2 or AVX-512.
Looks like this instruction is generated by compiler.
Current guard pattern for optimization blocks doesn't work. Using of SIMD instructions should be disabled outside of optimization blocks.
The proper way of doing things is to split optimizations into several source files:
AVX - compiled with AVX flags
SSE - compiled with SSE flags
Common implementation - compiled with "default" flags. This translation unit checks whether the processor has AVX, SSE support and invokes functions from AVX / SSE sources accordingly.
Activity
tomoaki0705 commentedon Jul 26, 2016
As far as I know, there are many SIMD guards, but not all SIMD.
I honestly like to know which module/function was causing the trouble by SIMD that you experienced.
I know there are still some unguarded SIMD part, but it's difficult to search for me, since my laptop supports AVX and SSE4.2.
Jazzinghen commentedon Jul 26, 2016
The first problem I have encountered (I did not check further due to my application throwing a
SIGILL) was in cv::initInterTab2D. Here is the disassembly dump of the function (sorry for the "press enter to continue" lines). If you check around line 203 you can see avmovssoperation, which should be AVX2 or AVX-512.alalek commentedon Aug 2, 2016
Looks like this instruction is generated by compiler.
Current guard pattern for optimization blocks doesn't work. Using of SIMD instructions should be disabled outside of optimization blocks.
Related #6466
ilya-lavrenov commentedon Aug 11, 2016
The proper way of doing things is to split optimizations into several source files:
vladimir-dudnik commentedon Sep 26, 2019
is that still actual?
alalek commentedon Sep 26, 2019
resolved by #7462 and corresponding patches (OpenCV 3.2+)
Wiki page: https://github.com/opencv/opencv/wiki/CPU-optimizations-build-options