aboutsummaryrefslogtreecommitdiff
path: root/math/onednn/files/patch-cmake_platform.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'math/onednn/files/patch-cmake_platform.cmake')
-rw-r--r--math/onednn/files/patch-cmake_platform.cmake18
1 files changed, 7 insertions, 11 deletions
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