Skip to content

Commit 7d7d907

Browse files
committed
Merge pull request opencv#18228 from joy2myself:rvv
2 parents ef0eed8 + 673e4e2 commit 7d7d907

File tree

4 files changed

+2532
-1290
lines changed

4 files changed

+2532
-1290
lines changed

modules/core/include/opencv2/core/cv_cpu_dispatch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@
170170

171171
#if defined CV_CPU_COMPILE_RVV
172172
# define CV_RVV 1
173+
# include <riscv_vector.h>
173174
#endif
174175

175176
#endif // CV_ENABLE_INTRINSICS && !CV_DISABLE_OPTIMIZATION && !__CUDACC__

modules/core/include/opencv2/core/hal/intrin.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ using namespace CV_CPU_OPTIMIZATION_HAL_NAMESPACE;
202202
# undef CV_RVV
203203
#endif
204204

205-
#if (CV_SSE2 || CV_NEON || CV_VSX || CV_MSA || CV_WASM_SIMD) && !defined(CV_FORCE_SIMD128_CPP)
205+
#if (CV_SSE2 || CV_NEON || CV_VSX || CV_MSA || CV_WASM_SIMD || CV_RVV) && !defined(CV_FORCE_SIMD128_CPP)
206206
#define CV__SIMD_FORWARD 128
207207
#include "opencv2/core/hal/intrin_forward.hpp"
208208
#endif

0 commit comments

Comments
 (0)