-
-
Notifications
You must be signed in to change notification settings - Fork 56.4k
fix for IPP 2021.10 with OneAPI 2024 #25317
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
Conversation
|
|
Sorry, But opencv is use the min 3.5.1:
Will try to get new method. |
Signed-off-by: junxnone <[email protected]>
- cmake_path is new in cmake 3.20 Signed-off-by: junxnone <[email protected]>
|
Looks like the same changes are required for IPP IW in cmake/OpenCVFindIPPIW.cmake. |
not found
opencv/cmake/OpenCVFindIPP.cmake Lines 90 to 92 in b0d9058
opencv/cmake/OpenCVFindIPPIW.cmake Lines 172 to 174 in d0ec392
|
|
AFAIK, OpenCV uses "own" IW wrapper due to API from "iw/iw_ll.h" file which is not available in common IPP releases. |
|
@opencv-alalek Does it mean, that the PR may be merged? |
| # TODO Cleanup code after ICV package stabilization | ||
| macro(ipp_detect_version) | ||
| set(IPP_INCLUDE_DIRS ${IPP_ROOT_DIR}/include) | ||
| get_filename_component(IPP_INCLUDE_DIRS ${IPP_VERSION_FILE} PATH) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check on the line 93 may fail and fail IPP detection completelly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opencv/cmake/OpenCVFindIPP.cmake
Lines 90 to 97 in c577b24
| if(EXISTS ${IPP_ROOT_DIR}/include/ippicv_redefs.h) | |
| set(__msg " (ICV version)") | |
| set(HAVE_IPP_ICV 1) | |
| elseif(EXISTS ${IPP_ROOT_DIR}/include/ipp.h) | |
| # nothing | |
| else() | |
| _ipp_not_supported("Can't resolve Intel IPP directory: ${IPP_ROOT_DIR}") | |
| endif() |
In OneAPI 2024,
inlcude/ipp.his the only one that has not moved to the directoryinclude/ipp/.
$ tree /opt/intel/oneapi/ipp/2021.11/include/ -L 2
/opt/intel/oneapi/ipp/2021.11/include/
├── ipp
│ ├── ippbase.h
...
│ ├── ippvm.h
│ ├── iw
│ └── iw++
└── ipp.h
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the information!
Perhaps we should not change IPP_INCLUDE_DIRS to the nested directory. Or add both locations.
I see these IPP includes in OpenCV:
./modules/core/include/opencv2/core/private.hpp:220:#include "ippversion.h"
./modules/core/include/opencv2/core/private.hpp:230:#include "ippicv.h"
./modules/core/include/opencv2/core/private.hpp:232:#include "ipp.h"
/cc @eplankin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, top-level ipp.h is just a shim:
#include <ipp/ipp.h>
opencv-alalek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Validated with
l_ipp_oneapi_p_2021.11.0.532_offline.sh
Fix for IPP 2021.10 with OneAPI 2024 opencv#25317 fixes opencv#25270 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [x] The feature is well documented and sample code can be built with the project CMake
fixes #25270
Pull 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.