fix for IPP 2021.10 with OneAPI 2024#25317
Conversation
|
|
Sorry, But opencv is use the min 3.5.1: Will try to get new method. |
Signed-off-by: junxnone <junchen0102@gmail.com>
- cmake_path is new in cmake 3.20 Signed-off-by: junxnone <junchen0102@gmail.com>
|
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.
Check on the line 93 may fail and fail IPP detection completelly.
There was a problem hiding this comment.
opencv/cmake/OpenCVFindIPP.cmake
Lines 90 to 97 in c577b24
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.
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.
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.
- 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.