Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable avx instructions for OneDNN #1884

Draft
wants to merge 1 commit into
base: r/ics3a/main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
From c15ff778173887d981af133083e8eafcf3f10e45 Mon Sep 17 00:00:00 2001
From e53918ccbc5435ea6466cbe2439a5a792d160f33 Mon Sep 17 00:00:00 2001
From: Ratnesh Kumar Rai <[email protected]>
Date: Mon, 20 Feb 2023 22:40:36 +0530
Subject: [PATCH] Changes to add oneDNN for OpenVINO 2022.3.0

- Added Android.bp file to generate libdnnl
- Added files that are generated during cmake
- Changes to enable avx instructions

Tracked-On: OAM-106595
Change-Id: I78d149079ea5658230ebb4ef46dc0651fba33556
Signed-off-by: Nagamani Chennuboina <[email protected]>
Signed-off-by: Ratnesh Kumar Rai <[email protected]>
---
Android.bp | 497 +++++++++++++++++++++++++++++
Android.bp | 508 +++++++++++++++++++++++++++++
include/oneapi/dnnl/dnnl_config.h | 157 +++++++++
include/oneapi/dnnl/dnnl_version.h | 36 +++
3 files changed, 690 insertions(+)
include/oneapi/dnnl/dnnl_version.h | 36 ++
3 files changed, 701 insertions(+)
create mode 100644 Android.bp
create mode 100644 include/oneapi/dnnl/dnnl_config.h
create mode 100644 include/oneapi/dnnl/dnnl_version.h

diff --git a/Android.bp b/Android.bp
new file mode 100644
index 000000000..5fbace792
index 000000000..e71bf6af4
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,497 @@
@@ -0,0 +1,508 @@
+//#################################################
+cc_library_headers {
+ name: "libdnnl_headers",
Expand Down Expand Up @@ -512,6 +512,17 @@ index 000000000..5fbace792
+ "-D__STDC_LIMIT_MACROS"
+ ],
+
+ cppflags: [
+ "-DDNNL_DISABLE_PRIMITIVE_CACHE",
+ "-DDNNL_ENABLE_CONCURRENT_EXEC",
+ "-DDNNL_ENABLE_CPU_ISA_HINTS",
+ "-DDNNL_ENABLE_MAX_CPU_ISA",
+ "-DDNNL_X64=1",
+ "-DDNNL_XBYAK_NO_EXCEPTION",
+ "-DENABLE_INTEL_CPU=1",
+ "-DIE_BUILD_POSTFIX=\"\"",
+ ],
+
+ shared_libs: [
+ "liblog"
+ ],
Expand Down Expand Up @@ -728,5 +739,5 @@ index 000000000..41eac2b09
+
+#endif
--
2.17.1
2.39.2

Loading