public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/onednn] xpu-support-single-build: Add Fix for s390x
@ 2026-10-19 21:40 Nicolas Chauvet
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Chauvet @ 2026-10-19 21:40 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/onednn
Branch : xpu-support-single-build
Commit : 8df1fbd057a4136f5aac5dffe04497b2058ecbd2
Author : Nicolas Chauvet <kwizart@gmail.com>
Date : 2024-05-31T21:16:56+02:00
Stats : +86/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/onednn/c/8df1fbd057a4136f5aac5dffe04497b2058ecbd2?branch=xpu-support-single-build
Log:
Add Fix for s390x
---
diff --git a/1937.patch b/1937.patch
new file mode 100644
index 0000000..48439c0
--- /dev/null
+++ b/1937.patch
@@ -0,0 +1,86 @@
+From 33f03a52d1ccd24898131509a704e35538988fb1 Mon Sep 17 00:00:00 2001
+From: Abdelrauf <quickwritereader@gmail.com>
+Date: Thu, 30 May 2024 12:56:31 +0000
+Subject: [PATCH] qualify the function saturate with q10n:: specifier to
+ prevent ambiguity
+
+---
+ src/cpu/s390x/gemmu16.cpp | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/src/cpu/s390x/gemmu16.cpp b/src/cpu/s390x/gemmu16.cpp
+index 632a263361c..9ed51f2673f 100644
+--- a/src/cpu/s390x/gemmu16.cpp
++++ b/src/cpu/s390x/gemmu16.cpp
+@@ -50,7 +50,7 @@ __attribute__((noinline)) void addResults(offset_type offsetType, dim_t m,
+ for (dim_t i = 0; i < m; i++) {
+ double val = alpha * (double)Ctemp[j * ldCtemp + i] + co[0];
+ gPtr(i, j) = static_cast<int32_t>(
+- nearbyint(saturate<int32_t, double>(val)));
++ nearbyint(q10n::saturate<int32_t, double>(val)));
+ }
+ }
+ } else {
+@@ -59,7 +59,7 @@ __attribute__((noinline)) void addResults(offset_type offsetType, dim_t m,
+ double val = beta * (double)gPtr(i, j)
+ + alpha * (double)Ctemp[j * ldCtemp + i] + co[0];
+ gPtr(i, j) = static_cast<int32_t>(
+- nearbyint(saturate<int32_t, double>(val)));
++ nearbyint(q10n::saturate<int32_t, double>(val)));
+ }
+ }
+ }
+@@ -69,7 +69,7 @@ __attribute__((noinline)) void addResults(offset_type offsetType, dim_t m,
+ for (dim_t i = 0; i < m; i++) {
+ double val = alpha * (double)Ctemp[j * ldCtemp + i] + co[i];
+ gPtr(i, j) = static_cast<int32_t>(
+- nearbyint(saturate<int32_t, double>(val)));
++ nearbyint(q10n::saturate<int32_t, double>(val)));
+ }
+ }
+ } else {
+@@ -78,7 +78,7 @@ __attribute__((noinline)) void addResults(offset_type offsetType, dim_t m,
+ double val = beta * (double)gPtr(i, j)
+ + alpha * (double)Ctemp[j * ldCtemp + i] + co[i];
+ gPtr(i, j) = static_cast<int32_t>(
+- nearbyint(saturate<int32_t, double>(val)));
++ nearbyint(q10n::saturate<int32_t, double>(val)));
+ }
+ }
+ }
+@@ -89,7 +89,7 @@ __attribute__((noinline)) void addResults(offset_type offsetType, dim_t m,
+ for (dim_t i = 0; i < m; i++) {
+ double val = alpha * (double)Ctemp[j * ldCtemp + i] + co[j];
+ gPtr(i, j) = static_cast<int32_t>(
+- nearbyint(saturate<int32_t, double>(val)));
++ nearbyint(q10n::saturate<int32_t, double>(val)));
+ }
+ }
+ } else {
+@@ -98,7 +98,7 @@ __attribute__((noinline)) void addResults(offset_type offsetType, dim_t m,
+ double val = beta * (double)gPtr(i, j)
+ + alpha * (double)Ctemp[j * ldCtemp + i] + co[j];
+ gPtr(i, j) = static_cast<int32_t>(
+- nearbyint(saturate<int32_t, double>(val)));
++ nearbyint(q10n::saturate<int32_t, double>(val)));
+ }
+ }
+ }
+@@ -107,7 +107,7 @@ __attribute__((noinline)) void addResults(offset_type offsetType, dim_t m,
+ for (dim_t j = 0; j < n; j++) {
+ for (dim_t i = 0; i < m; i++) {
+ gPtr(i, j) = static_cast<int32_t>(
+- nearbyint(saturate<int32_t, double>(
++ nearbyint(q10n::saturate<int32_t, double>(
+ alpha * (double)Ctemp[j * ldCtemp + i])));
+ }
+ }
+@@ -117,7 +117,7 @@ __attribute__((noinline)) void addResults(offset_type offsetType, dim_t m,
+ double val = beta * (double)gPtr(i, j)
+ + alpha * (double)Ctemp[j * ldCtemp + i];
+ gPtr(i, j) = static_cast<int32_t>(
+- nearbyint(saturate<int32_t, double>(val)));
++ nearbyint(q10n::saturate<int32_t, double>(val)));
+ }
+ }
+ }
^ permalink raw reply related [flat|nested] 2+ messages in thread* [rpms/onednn] xpu-support-single-build: Add fix for s390x
@ 2026-10-19 21:40 Nicolas Chauvet
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Chauvet @ 2026-10-19 21:40 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/onednn
Branch : xpu-support-single-build
Commit : 2b579868e5a2777712702d18770bed9584744a12
Author : Nicolas Chauvet <kwizart@gmail.com>
Date : 2024-05-31T21:16:56+02:00
Stats : +2/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/onednn/c/2b579868e5a2777712702d18770bed9584744a12?branch=xpu-support-single-build
Log:
Add fix for s390x
---
diff --git a/onednn.spec b/onednn.spec
index 671b15f..dc85272 100644
--- a/onednn.spec
+++ b/onednn.spec
@@ -6,6 +6,8 @@ Summary: oneAPI Deep Neural Network Library
License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND MIT
URL: https://github.com/oneapi-src/oneDNN/
Source0: %{url}/archive/v%{version}/onednn-%{version}.tar.gz
+#Fix build for s390x
+Patch0: %{url}/pull/1937.patch
# This package only work in 64bit arches for now
ExclusiveArch: x86_64 aarch64 ppc64le s390x
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-19 21:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19 21:40 [rpms/onednn] xpu-support-single-build: Add Fix for s390x Nicolas Chauvet
2026-10-19 21:40 [rpms/onednn] xpu-support-single-build: Add fix " Nicolas Chauvet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox