forked from opencv/opencv-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix-cpu-detect.patch
More file actions
26 lines (23 loc) · 806 Bytes
/
fix-cpu-detect.patch
File metadata and controls
26 lines (23 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From f35955a93e9f342eb4cb1b1fd17cc13d298df56f Mon Sep 17 00:00:00 2001
From: RS-Gits <harish14rs@gmail.com>
Date: Wed, 16 Jul 2025 16:36:54 +0530
Subject: [PATCH] [Windows/ARM64] Force feature detection for NEON, NEON_FP16,
and NEON_DOTPROD
---
modules/core/src/system.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp
index 3531678f92..237bd25069 100644
--- a/modules/core/src/system.cpp
+++ b/modules/core/src/system.cpp
@@ -678,6 +678,8 @@ struct HWFeatures
#endif
#if defined _M_ARM64 || defined _M_ARM64EC
have[CV_CPU_NEON] = true;
+ have[CV_CPU_NEON_FP16] = true;
+ have[CV_CPU_NEON_DOTPROD] = true;
#endif
#ifdef __riscv_vector
have[CV_CPU_RISCVV] = true;
--
2.41.0.windows.3