Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7867267

Browse files
Merge pull requestopencv#25793 from MaximMilashchenko:hal_rvv
Fixed build error hal_rvv_071opencv#25793Fixed bug with enabling vector header when vector extension is disabled (RVV=OFF) in hal_rvv_071
1 parent284a794 commit7867267

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

‎3rdparty/hal_rvv/hal_rvv.hpp‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
#ifndef OPENCV_HAL_RVV_HPP_INCLUDED
66
#defineOPENCV_HAL_RVV_HPP_INCLUDED
77

8-
#include<riscv_vector.h>
9-
108
#include"opencv2/core/hal/interface.h"
119

1210
#ifndef CV_HAL_RVV_071_ENABLED

‎3rdparty/hal_rvv/version/hal_rvv_071.hpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#ifndef OPENCV_HAL_RVV_071_HPP_INCLUDED
66
#defineOPENCV_HAL_RVV_071_HPP_INCLUDED
77

8+
#include<riscv_vector.h>
9+
810
#include<limits>
911

1012
namespacecv {namespacecv_hal_rvv {

‎CMakeLists.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,9 +1037,13 @@ foreach(hal ${OpenCV_HAL})
10371037
message(STATUS"NDSRVP: Andes GNU Toolchain DSP extension is not open, disabling ndsrvp...")
10381038
endif()
10391039
elseif(halSTREQUAL"halrvv")
1040+
if(";${CPU_BASELINE_FINAL};"MATCHES";RVV;")
10401041
add_subdirectory(3rdparty/hal_rvv/)
10411042
ocv_hal_register(RVV_HAL_LIBRARIES RVV_HAL_HEADERS RVV_HAL_INCLUDE_DIRS)
10421043
list(APPEND OpenCV_USED_HAL"HAL RVV (ver${RVV_HAL_VERSION})")
1044+
else()
1045+
message(STATUS"HAL RVV: RVV is not available, disabling halrvv...")
1046+
endif()
10431047
elseif(halSTREQUAL"openvx")
10441048
add_subdirectory(3rdparty/openvx)
10451049
ocv_hal_register(OPENVX_HAL_LIBRARIES OPENVX_HAL_HEADERS OPENVX_HAL_INCLUDE_DIRS)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp