Skip to content

Commit

Permalink
math/onednn: Update 2.2.4 -> 2.3
Browse files Browse the repository at this point in the history
Reported by:	portscout
  • Loading branch information
yurivict committed Jul 5, 2021
1 parent 6e7b82f commit ecf508d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 20 deletions.
2 changes: 1 addition & 1 deletion math/onednn/Makefile
@@ -1,6 +1,6 @@
PORTNAME= onednn
DISTVERSIONPREFIX= v
DISTVERSION= 2.2.4
DISTVERSION= 2.3
CATEGORIES= math # machine-learning

MAINTAINER= yuri@FreeBSD.org
Expand Down
6 changes: 3 additions & 3 deletions math/onednn/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1623781908
SHA256 (oneapi-src-oneDNN-v2.2.4_GH0.tar.gz) = ebb383078fa8f81c24310e73984a0d9e759eb9febe73887956953824f780fc32
SIZE (oneapi-src-oneDNN-v2.2.4_GH0.tar.gz) = 9535666
TIMESTAMP = 1625505389
SHA256 (oneapi-src-oneDNN-v2.3_GH0.tar.gz) = ccb2dbd9da36cd873cf573b4201d61bdba7438f12b144e6c7d061eb12a641751
SIZE (oneapi-src-oneDNN-v2.3_GH0.tar.gz) = 9698171
24 changes: 10 additions & 14 deletions math/onednn/files/patch-cmake_platform.cmake
@@ -1,6 +1,6 @@
--- cmake/platform.cmake.orig 2021-02-26 17:13:42 UTC
--- cmake/platform.cmake.orig 2021-06-29 20:12:52 UTC
+++ cmake/platform.cmake
@@ -128,7 +128,7 @@ elseif(UNIX OR MINGW)
@@ -171,7 +171,7 @@ elseif(UNIX OR MINGW)
set(DEF_ARCH_OPT_FLAGS "-O3")
endif()
# For native compilation tune for the host processor
Expand All @@ -9,7 +9,7 @@
append(DEF_ARCH_OPT_FLAGS "-mcpu=native")
endif()
elseif(DNNL_TARGET_ARCH STREQUAL "PPC64")
@@ -136,7 +136,7 @@ elseif(UNIX OR MINGW)
@@ -179,7 +179,7 @@ elseif(UNIX OR MINGW)
set(DEF_ARCH_OPT_FLAGS "-O3")
endif()
# For native compilation tune for the host processor
Expand All @@ -18,7 +18,7 @@
append(DEF_ARCH_OPT_FLAGS "-mcpu=native")
endif()
elseif(DNNL_TARGET_ARCH STREQUAL "S390X")
@@ -144,10 +144,10 @@ elseif(UNIX OR MINGW)
@@ -187,10 +187,10 @@ elseif(UNIX OR MINGW)
set(DEF_ARCH_OPT_FLAGS "-O3")
endif()
# For native compilation tune for the host processor
Expand All @@ -31,25 +31,21 @@
set(DEF_ARCH_OPT_FLAGS "-msse4.1")
endif()
# Clang cannot vectorize some loops with #pragma omp simd and gets
@@ -225,7 +225,7 @@ elseif(UNIX OR MINGW)
@@ -262,7 +262,7 @@ elseif(UNIX OR MINGW)
set(DEF_ARCH_OPT_FLAGS "-O3")
endif()
# In GCC, -ftree-vectorize is turned on under -O3 since 2007.
# 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)
append(DEF_ARCH_OPT_FLAGS "-mcpu=native")
endif()
elseif(DNNL_TARGET_ARCH STREQUAL "S390X")
@@ -234,10 +234,10 @@ elseif(UNIX OR MINGW)
elseif(DNNL_TARGET_ARCH STREQUAL "PPC64")
@@ -271,7 +271,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
- if (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")
append(DEF_ARCH_OPT_FLAGS "-mcpu=native")
endif()
- elseif(DNNL_TARGET_ARCH STREQUAL "X64")
+ elseif(FALSE AND DNNL_TARGET_ARCH STREQUAL "X64")
set(DEF_ARCH_OPT_FLAGS "-msse4.1")
endif()
# suppress warning on assumptions made regarding overflow (#146)
elseif(DNNL_TARGET_ARCH STREQUAL "S390X")
4 changes: 2 additions & 2 deletions math/onednn/pkg-plist
Expand Up @@ -43,7 +43,7 @@ lib/cmake/mkldnn/mkldnn-targets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/mkldnn/mkldnn-targets.cmake
lib/libdnnl.so
lib/libdnnl.so.2
lib/libdnnl.so.2.2
lib/libdnnl.so.2.3
lib/libmkldnn.so
lib/libmkldnn.so.2
lib/libmkldnn.so.2.2
lib/libmkldnn.so.2.3

0 comments on commit ecf508d

Please sign in to comment.