Skip to content
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

CPU dispatching: additional AVX-512 check for mingw-w64 #10936

Merged
merged 1 commit into from Mar 2, 2018

Conversation

mshabunin
Copy link
Contributor

@mshabunin mshabunin commented Feb 25, 2018

This pullrequest changes

Problem:

[ 58%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/layers/layers_common.avx512_skx.cpp.obj
%USERPROFILE%\AppData\Local\Temp\ccBSUeSO.s: Assembler messages:
%USERPROFILE%\AppData\Local\Temp\ccBSUeSO.s:21573: Error: invalid register for .seh_savexmm
%USERPROFILE%\AppData\Local\Temp\ccBSUeSO.s:21575: Error: invalid register for .seh_savexmm
%USERPROFILE%\AppData\Local\Temp\ccBSUeSO.s:21577: Error: invalid register for .seh_savexmm
<...>
mingw32-make[2]: * [modules\dnn\CMakeFiles\opencv_dnn.dir\build.make:1742: modules/dnn/CMakeFiles/opencv_dnn.dir/layers/layers_common.avx512_skx.cpp.obj] Error 1 
mingw32-make[1]: [CMakeFiles\Makefile2:4024: modules/dnn/CMakeFiles/opencv_dnn.dir/all] Error 2 
mingw32-make: ** [Makefile:162: all] Error 2

Proposed patch is a workaround based on this patch in GCC: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79127 - AVX-512 support will not be detected by cmake for mingw-w64, and will be disabled.

docker_image:Custom=ubuntu:17.10

@alalek
Copy link
Member

alalek commented Feb 26, 2018

Related: https://sourceforge.net/p/mingw-w64/bugs/681/
There is suggestion to use: "-fno-asynchronous-unwind-tables' compiler option

@opencv-pushbot opencv-pushbot merged commit f0c0e0c into opencv:master Mar 2, 2018
@mshabunin mshabunin deleted the fix-mingw-avx512 branch March 7, 2018 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants