hal/riscv-rvv: refactor the building process#27301
Conversation
|
There is some strange test failure with RISC-V Clang: |
|
By the way, I tried to put in |
hal/riscv-rvv/src/imgproc/common.hpp
Outdated
| { | ||
| if ((unsigned)p < (unsigned)len) | ||
| ; | ||
| else if (borderType == BORDER_REPLICATE) |
There was a problem hiding this comment.
Please use CV_HAL_BORDER_XXX constants from modules/core/include/opencv2/core/hal/interface.h
The HAL header is used in several places: HAL build itself and all modules, where it's injected. For the first case you have There is no interface include for imgproc, and the block will be skipped in other modules than imgproc. The |
|
@asmorkalov Thank you for the explanation! I kind of understand the problem now but just had a failed try on moving the include back to DetailsIt seems that HAL is built before opencv modules? |
Yes, it should. The library for linkage should be ready for module build. |
I guess, I will leave it as-is for now for the problem. |
|
Found regressions in Confirmed that they are introduced from the previous optimization of integral: #27060 (comment). @asmorkalov I believe they should be fixed in a separate PR. |
Current hal/riscv-rvv is built with all headers without building an object. This slows down the compilation progress, especially when re-compiling for minor changes in those headers (~170 files need to be re-compiled). This patch solves the problem.
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.