public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/onednn] xpu-support-single-build: Work around ppc64le build failure
@ 2026-10-19 21:41 Adam Jackson
0 siblings, 0 replies; only message in thread
From: Adam Jackson @ 2026-10-19 21:41 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/onednn
Branch : xpu-support-single-build
Commit : 885f2c5a7c9f45bf479d30f361a4fd3efc5aa8d8
Author : Adam Jackson <ajax@redhat.com>
Date : 2025-09-16T11:42:50-04:00
Stats : +63/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/onednn/c/885f2c5a7c9f45bf479d30f361a4fd3efc5aa8d8?branch=xpu-support-single-build
Log:
Work around ppc64le build failure
---
diff --git a/0001-ppc64-nerf-the-cpu-code.patch b/0001-ppc64-nerf-the-cpu-code.patch
new file mode 100644
index 0000000..9305202
--- /dev/null
+++ b/0001-ppc64-nerf-the-cpu-code.patch
@@ -0,0 +1,57 @@
+From 70e4a7d1d18b00223ba211606394bbf45504cc69 Mon Sep 17 00:00:00 2001
+From: Adam Jackson <ajax@redhat.com>
+Date: Thu, 11 Sep 2025 14:56:55 -0400
+Subject: [PATCH] ppc64: nerf the cpu code
+
+---
+ src/cpu/CMakeLists.txt | 13 -------------
+ src/cpu/reorder/cpu_reorder_regular_f32_u8.cpp | 2 --
+ 2 files changed, 15 deletions(-)
+
+diff --git a/src/cpu/CMakeLists.txt b/src/cpu/CMakeLists.txt
+index 10504d1a34..9ce7e00901 100644
+--- a/src/cpu/CMakeLists.txt
++++ b/src/cpu/CMakeLists.txt
+@@ -39,16 +39,6 @@ if((DNNL_TARGET_ARCH STREQUAL "X64") OR (DNNL_TARGET_ARCH STREQUAL "AARCH64"))
+ endforeach()
+ endif()
+
+-if(DNNL_TARGET_ARCH STREQUAL "PPC64")
+- file(GLOB FILES_REQUIRED_OPT
+- ${CMAKE_CURRENT_SOURCE_DIR}/gemm/*.[ch]pp
+- )
+- if(NOT UPPERCASE_CMAKE_BUILD_TYPE STREQUAL "DEBUG")
+- set_source_files_properties(${FILES_REQUIRED_OPT}
+- PROPERTIES COMPILE_FLAGS "-O3 -funroll-loops")
+- endif()
+-endif()
+-
+ if(NOT DNNL_ENABLE_JIT_PROFILING)
+ # XXX: the profiling interface will still be built and present
+ add_definitions_with_host_compiler(-DDNNL_ENABLE_JIT_PROFILING=0)
+@@ -138,9 +128,6 @@ endif()
+ if (DNNL_TARGET_ARCH STREQUAL "AARCH64")
+ add_subdirectory(aarch64)
+ endif()
+-if (DNNL_TARGET_ARCH STREQUAL "PPC64")
+- add_subdirectory(ppc64)
+-endif()
+ if (DNNL_TARGET_ARCH STREQUAL "S390X")
+ add_subdirectory(s390x)
+ endif()
+diff --git a/src/cpu/reorder/cpu_reorder_regular_f32_u8.cpp b/src/cpu/reorder/cpu_reorder_regular_f32_u8.cpp
+index 264168500a..c8ddb0d8ad 100644
+--- a/src/cpu/reorder/cpu_reorder_regular_f32_u8.cpp
++++ b/src/cpu/reorder/cpu_reorder_regular_f32_u8.cpp
+@@ -36,8 +36,6 @@ const impl_list_map_t ®ular_f32_u8_impl_list_map() {
+ DNNL_AARCH64_ONLY(CPU_REORDER_INSTANCE(aarch64::jit_blk_reorder_t))
+ DNNL_AARCH64_ONLY(CPU_REORDER_INSTANCE(aarch64::jit_uni_reorder_t))
+
+- DNNL_PPC64_ONLY(CPU_REORDER_INSTANCE(ppc64::ppc64_matrixA_reorder_t))
+-
+ REG_FAST_DIRECT_COPY(f32, u8)
+
+ DNNL_NON_X64_ONLY(REG_SR_BIDIR(f32, any, u8, nChw16c))
+--
+2.51.0
+
diff --git a/onednn.spec b/onednn.spec
index 4783659..3a140ea 100644
--- a/onednn.spec
+++ b/onednn.spec
@@ -7,6 +7,12 @@ License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND MI
URL: https://github.com/oneapi-src/oneDNN/
Source0: %{url}/archive/v%{version}/onednn-%{version}.tar.gz
+# This fails to build because the assembly code is unconditionally
+# built for power10 and we're building for power8. This just patches
+# it out for now until upstream sorts it out.
+# https://github.com/uxlfoundation/oneDNN/issues/3749
+Patch0: 0001-ppc64-nerf-the-cpu-code.patch
+
# This package only work in 64bit arches for now
ExclusiveArch: x86_64 aarch64 ppc64le s390x
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-19 21:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19 21:41 [rpms/onednn] xpu-support-single-build: Work around ppc64le build failure Adam Jackson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox