From 868c2ed454bc08f7b1205fab1698da5c6d4a8d5f Mon Sep 17 00:00:00 2001 From: Gregory Comer Date: Mon, 14 Oct 2024 14:05:39 -0700 Subject: [PATCH] Disable XNNPACK workspace sharing by default Summary: Disable workspace sharing by default. There is currently a crash that occurs when workspace sharing is enabled when freeing the delegate. This change will increase ET memory usage, but needs to be done until we address the root cause. After we are confident that it is fixed, we will revert this change. Differential Revision: D64352037 --- backends/xnnpack/targets.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/xnnpack/targets.bzl b/backends/xnnpack/targets.bzl index 1d959048032..b89a999bc3d 100644 --- a/backends/xnnpack/targets.bzl +++ b/backends/xnnpack/targets.bzl @@ -6,7 +6,7 @@ def _get_preprocessor_flags(): Disable if someone explictly specified a config option, else Enable otherwise """ - if native.read_config("executorch", "xnnpack_workspace_sharing", "1") == "0": + if native.read_config("executorch", "xnnpack_workspace_sharing", "0") == "0": return [] # Enable if not disabled through config