Added NEON support in builds for Windows on ARM#21630
Merged
alalek merged 3 commits intoopencv:4.xfrom Feb 26, 2022
Merged
Conversation
Contributor
Author
|
Fixed --- Performing Test HAVE_CXX_D__ARM64_DISTINCT_NEON_TYPES (check file: cmake/checks/cpu_neon.cpp)
--- Performing Test HAVE_CXX_D__ARM64_DISTINCT_NEON_TYPES - Success
+-- Performing Test HAVE_CPU_NEON_SUPPORT (check file: cmake/checks/cpu_neon.cpp)
+-- Performing Test HAVE_CPU_NEON_SUPPORT - Success |
Contributor
|
Potentially related: #8429 |
Contributor
Author
|
Apparently, the ARM64 compiler in VC++ 2019 still has a bug, so it is failing to build. VC++ 2022 fixes all of the problems, so I was able to build successfully, and the built binaries were confirmed to work on a Windows on ARM machine. Build CMake command CMake stdout log (Build log is trimmed) |
alalek
approved these changes
Feb 26, 2022
Member
alalek
left a comment
There was a problem hiding this comment.
Well done! Thank you for contribution 👍
Merged
a-sajjad72
pushed a commit
to a-sajjad72/opencv
that referenced
this pull request
Mar 30, 2023
* Added NEON support in builds for Windows on ARM * Fixed `HAVE_CPU_NEON_SUPPORT` display broken during compiler test * Fixed a build error prior to Visual Studio 2022
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since
Visual Studio 16.11Visual Studio 2022 (17.0), the data types (e.g.int32x4_t) used by ARM NEON instructions are now defined, so the blocking of NEON support in builds for Windows on ARM has been resolved._ARM64_DISTINCT_NEON_TYPESpreprocessorTODO:
BUILD_SAMPLES=ONmodefind_package(OpenCL)founds OpenCL from CUDA SDK which can't work with ARM64 cross-compialtion-DWITH_OPENCL=OFF -DCMAKE_DISABLE_FIND_PACKAGE_OpenCL=ONPull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.