diff -Nru onednn-3.1.1/debian/changelog onednn-3.1.1/debian/changelog
--- onednn-3.1.1/debian/changelog	2024-01-01 02:12:13.000000000 +0100
+++ onednn-3.1.1/debian/changelog	2024-01-16 17:46:14.000000000 +0100
@@ -1,3 +1,10 @@
+onednn (3.1.1-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Build against Arm Compute Library. 
+
+ -- Emanuele Rocca <ema@debian.org>  Tue, 16 Jan 2024 17:46:14 +0100
+
 onednn (3.1.1-2) unstable; urgency=medium
 
   * Upload to unstable.
diff -Nru onednn-3.1.1/debian/control onednn-3.1.1/debian/control
--- onednn-3.1.1/debian/control	2023-12-29 19:11:31.000000000 +0100
+++ onednn-3.1.1/debian/control	2024-01-16 17:46:14.000000000 +0100
@@ -7,6 +7,7 @@
                debhelper-compat (= 13),
                libtbb-dev,
                ninja-build,
+               libarm-compute-dev,
                libsimde-dev (>= 0.7.0)
 Standards-Version: 4.6.0
 Homepage: https://github.com/oneapi-src/oneDNN
diff -Nru onednn-3.1.1/debian/patches/acl-no-core.diff onednn-3.1.1/debian/patches/acl-no-core.diff
--- onednn-3.1.1/debian/patches/acl-no-core.diff	1970-01-01 01:00:00.000000000 +0100
+++ onednn-3.1.1/debian/patches/acl-no-core.diff	2024-01-16 17:46:05.000000000 +0100
@@ -0,0 +1,22 @@
+Index: onednn-3.1.1/cmake/FindACL.cmake
+===================================================================
+--- onednn-3.1.1.orig/cmake/FindACL.cmake
++++ onednn-3.1.1/cmake/FindACL.cmake
+@@ -59,16 +59,10 @@ if(ACL_FOUND)
+     PATH_SUFFIXES build
+     )
+ 
+-  find_library(ACL_CORE_LIBRARY
+-    NAMES arm_compute_core
+-    PATHS ENV ACL_ROOT_DIR
+-    PATH_SUFFIXES build
+-    )
+-
+   list(APPEND ACL_INCLUDE_DIRS
+     ${ACL_INCLUDE_DIR} ${ACL_EXTRA_INCLUDE_DIR})
+   list(APPEND ACL_LIBRARIES
+-    ${ACL_LIBRARY} ${ACL_GRAPH_LIBRARY} ${ACL_CORE_LIBRARY})
++    ${ACL_LIBRARY} ${ACL_GRAPH_LIBRARY})
+ endif()
+ 
+ 
diff -Nru onednn-3.1.1/debian/patches/acl-no-private-files.diff onednn-3.1.1/debian/patches/acl-no-private-files.diff
--- onednn-3.1.1/debian/patches/acl-no-private-files.diff	1970-01-01 01:00:00.000000000 +0100
+++ onednn-3.1.1/debian/patches/acl-no-private-files.diff	2024-01-16 17:46:05.000000000 +0100
@@ -0,0 +1,22 @@
+Index: onednn-3.1.1/src/cpu/platform.cpp
+===================================================================
+--- onednn-3.1.1.orig/src/cpu/platform.cpp
++++ onednn-3.1.1/src/cpu/platform.cpp
+@@ -37,8 +37,6 @@
+ #if DNNL_AARCH64_USE_ACL
+ // For checking if fp16 isa is supported on the platform
+ #include "arm_compute/core/CPP/CPPTypes.h"
+-// For setting the number of threads for ACL
+-#include "src/common/cpuinfo/CpuInfo.h"
+ #endif
+ #endif
+ 
+@@ -197,7 +195,7 @@ unsigned get_num_cores() {
+ #if DNNL_X64
+     return x64::cpu().getNumCores(Xbyak::util::CoreLevel);
+ #elif DNNL_AARCH64_USE_ACL
+-    return arm_compute::cpuinfo::num_threads_hint();
++    return aarch64::cpu().getNumCores(Xbyak_aarch64::util::CoreLevel);
+ #else
+     return 1;
+ #endif
diff -Nru onednn-3.1.1/debian/patches/series onednn-3.1.1/debian/patches/series
--- onednn-3.1.1/debian/patches/series	2023-09-12 02:18:02.000000000 +0200
+++ onednn-3.1.1/debian/patches/series	2024-01-16 17:46:12.000000000 +0100
@@ -1 +1,3 @@
 fix-gcc13-ftbfs.patch
+acl-no-private-files.diff
+acl-no-core.diff
diff -Nru onednn-3.1.1/debian/rules onednn-3.1.1/debian/rules
--- onednn-3.1.1/debian/rules	2023-12-29 19:11:03.000000000 +0100
+++ onednn-3.1.1/debian/rules	2024-01-16 17:46:05.000000000 +0100
@@ -10,8 +10,12 @@
 
 # https://oneapi-src.github.io/oneDNN/dev_guide_build.html
 override_dh_auto_configure:
-	dh_auto_configure -- \
+	ACL_ROOT_DIR=/usr/lib/aarch64-linux-gnu dh_auto_configure -- \
 		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
+		-DDNNL_AARCH64_USE_ACL=ON \
+		-DACL_INCLUDE_DIR=/usr/include/aarch64-linux-gnu \
+		-DACL_LIBRARY=/usr/lib/aarch64-linux-gnu/libarm_compute.so \
+		-DACL_GRAPH_LIBRARY=/usr/lib/aarch64-linux-gnu/libarm_compute_graph.so \
 		-DONEDNN_ARCH_OPT_FLAGS=""
 
 override_dh_auto_test:
