35 lines
1.5 KiB
Diff
35 lines
1.5 KiB
Diff
|
|
From e7f11f7135104d1b05fb26637502ec3d19e4c2cd Mon Sep 17 00:00:00 2001
|
||
|
|
From: Michal Klocek <michal.klocek@qt.io>
|
||
|
|
Date: Wed, 14 Aug 2024 13:40:31 +0200
|
||
|
|
Subject: [PATCH] Do not build webnn with xnnpack for arm64
|
||
|
|
|
||
|
|
Upstream-Status: Pending
|
||
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||
|
|
Change-Id: Ib23b6da98eddc8319fa79e8c1365b4e67d21086d
|
||
|
|
---
|
||
|
|
.../third_party/blink/renderer/modules/ml/webnn/features.gni | 3 ++-
|
||
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/chromium/third_party/blink/renderer/modules/ml/webnn/features.gni b/chromium/third_party/blink/renderer/modules/ml/webnn/features.gni
|
||
|
|
index 941740db3e3..50e139dc1af 100644
|
||
|
|
--- a/chromium/third_party/blink/renderer/modules/ml/webnn/features.gni
|
||
|
|
+++ b/chromium/third_party/blink/renderer/modules/ml/webnn/features.gni
|
||
|
|
@@ -3,12 +3,13 @@
|
||
|
|
# found in the LICENSE file.
|
||
|
|
|
||
|
|
import("//build/config/chrome_build.gni")
|
||
|
|
+import("//build/config/features.gni")
|
||
|
|
declare_args() {
|
||
|
|
# This enables building WebNN with XNNPACK. Currently only available for
|
||
|
|
# Windows, macOS and Linux on x64, x86 and arm64.
|
||
|
|
build_webnn_with_xnnpack = (is_linux || is_win || is_mac) &&
|
||
|
|
(current_cpu == "x64" || current_cpu == "x86" ||
|
||
|
|
- (current_cpu == "arm64" && !is_win))
|
||
|
|
+ (current_cpu == "arm64" && !is_win && !is_qtwebengine))
|
||
|
|
|
||
|
|
# This build flag enables WebNN to access hardware acceleration using TFLite
|
||
|
|
# via the ModelLoader mojo interface.
|
||
|
|
--
|
||
|
|
2.43.2
|
||
|
|
|