git: 7a3a0b683996 - main - math/onednn: update 3.4.3 → 3.5

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 12 Jun 2024 15:26:30 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7a3a0b683996d7de44ccff3314235332511ce54c

commit 7a3a0b683996d7de44ccff3314235332511ce54c
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-06-12 15:19:51 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-06-12 15:26:17 +0000

    math/onednn: update 3.4.3 → 3.5
    
    Reported by:    portscout
---
 math/onednn/Makefile                         |  2 +-
 math/onednn/distinfo                         |  6 +++---
 math/onednn/files/patch-cmake_platform.cmake | 18 +++++++-----------
 math/onednn/pkg-plist                        |  7 ++++++-
 4 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/math/onednn/Makefile b/math/onednn/Makefile
index 4c60eb74f971..a5e2179f6dec 100644
--- a/math/onednn/Makefile
+++ b/math/onednn/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	onednn
 DISTVERSIONPREFIX=	v
-DISTVERSION=	3.4.3
+DISTVERSION=	3.5
 CATEGORIES=	math # machine-learning
 
 MAINTAINER=	yuri@FreeBSD.org
diff --git a/math/onednn/distinfo b/math/onednn/distinfo
index e0397df3969e..133fcf649d18 100644
--- a/math/onednn/distinfo
+++ b/math/onednn/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1716956950
-SHA256 (oneapi-src-oneDNN-v3.4.3_GH0.tar.gz) = b795dc07d0d83aaec531081e77d5fb2e503a143f4330eabe4f035d4117c191ae
-SIZE (oneapi-src-oneDNN-v3.4.3_GH0.tar.gz) = 12866333
+TIMESTAMP = 1718166569
+SHA256 (oneapi-src-oneDNN-v3.5_GH0.tar.gz) = 8356aa9befde4d4ff93f1b016ac4310730b2de0cc0b8c6c7ce306690bc0d7b43
+SIZE (oneapi-src-oneDNN-v3.5_GH0.tar.gz) = 13189199
diff --git a/math/onednn/files/patch-cmake_platform.cmake b/math/onednn/files/patch-cmake_platform.cmake
index e8df48bc1ce7..7ae3309c3f0e 100644
--- a/math/onednn/files/patch-cmake_platform.cmake
+++ b/math/onednn/files/patch-cmake_platform.cmake
@@ -1,6 +1,6 @@
---- cmake/platform.cmake.orig	2023-11-30 15:53:57 UTC
+--- cmake/platform.cmake.orig	2024-06-11 23:20:12 UTC
 +++ cmake/platform.cmake
-@@ -223,7 +223,7 @@ elseif(UNIX OR MINGW)
+@@ -242,7 +242,7 @@ elseif(UNIX OR MINGW)
                   set(DEF_ARCH_OPT_FLAGS "-O3")
               endif()
               # For native compilation tune for the host processor
@@ -9,20 +9,16 @@
                   append(DEF_ARCH_OPT_FLAGS "-mcpu=native")
               endif()
          elseif(DNNL_TARGET_ARCH STREQUAL "S390X")
-@@ -231,10 +231,10 @@ elseif(UNIX OR MINGW)
+@@ -250,7 +250,7 @@ elseif(UNIX OR MINGW)
                   set(DEF_ARCH_OPT_FLAGS "-O3")
               endif()
               # For native compilation tune for the host processor
 -             if (CMAKE_SYSTEM_PROCESSOR STREQUAL CMAKE_HOST_SYSTEM_PROCESSOR)
-+             if (FALSE AND CMAKE_SYSTEM_PROCESSOR STREQUAL CMAKE_HOST_SYSTEM_PROCESSOR)
++	     if (FALSE AND CMAKE_SYSTEM_PROCESSOR STREQUAL CMAKE_HOST_SYSTEM_PROCESSOR)
                   append(DEF_ARCH_OPT_FLAGS "-march=native")
               endif()
--        elseif(DNNL_TARGET_ARCH STREQUAL "X64")
-+        elseif(FALSE AND DNNL_TARGET_ARCH STREQUAL "X64")
-              set(DEF_ARCH_OPT_FLAGS "-msse4.1")
-         endif()
-         # Clang cannot vectorize some loops with #pragma omp simd and gets
-@@ -325,7 +325,7 @@ elseif(UNIX OR MINGW)
+         elseif(DNNL_TARGET_ARCH STREQUAL "X64")
+@@ -348,7 +348,7 @@ elseif(UNIX OR MINGW)
              endif()
              # In GCC, -ftree-vectorize is turned on under -O3 since 2007.
              # For native compilation tune for the host processor
@@ -31,7 +27,7 @@
                  append(DEF_ARCH_OPT_FLAGS "-mcpu=native")
              endif()
          elseif(DNNL_TARGET_ARCH STREQUAL "S390X")
-@@ -334,7 +334,7 @@ elseif(UNIX OR MINGW)
+@@ -357,7 +357,7 @@ elseif(UNIX OR MINGW)
              endif()
              # In GCC, -ftree-vectorize is turned on under -O3 since 2007.
              # For native compilation tune for the host processor
diff --git a/math/onednn/pkg-plist b/math/onednn/pkg-plist
index 5adc6956d2d1..d1378a72d434 100644
--- a/math/onednn/pkg-plist
+++ b/math/onednn/pkg-plist
@@ -21,6 +21,8 @@ include/oneapi/dnnl/dnnl_config.h
 include/oneapi/dnnl/dnnl_debug.h
 include/oneapi/dnnl/dnnl_graph.h
 include/oneapi/dnnl/dnnl_graph.hpp
+include/oneapi/dnnl/dnnl_graph_ocl.h
+include/oneapi/dnnl/dnnl_graph_ocl.hpp
 include/oneapi/dnnl/dnnl_graph_sycl.h
 include/oneapi/dnnl/dnnl_graph_sycl.hpp
 include/oneapi/dnnl/dnnl_graph_types.h
@@ -34,6 +36,9 @@ include/oneapi/dnnl/dnnl_threadpool.h
 include/oneapi/dnnl/dnnl_threadpool.hpp
 include/oneapi/dnnl/dnnl_threadpool_iface.hpp
 include/oneapi/dnnl/dnnl_types.h
+include/oneapi/dnnl/dnnl_ukernel.h
+include/oneapi/dnnl/dnnl_ukernel.hpp
+include/oneapi/dnnl/dnnl_ukernel_types.h
 include/oneapi/dnnl/dnnl_version.h
 lib/cmake/dnnl/dnnl-config-version.cmake
 lib/cmake/dnnl/dnnl-config.cmake
@@ -41,4 +46,4 @@ lib/cmake/dnnl/dnnl-targets-%%CMAKE_BUILD_TYPE%%.cmake
 lib/cmake/dnnl/dnnl-targets.cmake
 lib/libdnnl.so
 lib/libdnnl.so.3
-lib/libdnnl.so.3.4
+lib/libdnnl.so.3.5