public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nicolas Chauvet <kwizart@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/onednn] xpu-support-single-build: Add Fix for s390x
Date: Mon, 19 Oct 2026 21:40:47 GMT [thread overview]
Message-ID: <179244604775.1.11498299216991322255.rpms-onednn-8df1fbd057a4@fedoraproject.org> (raw)
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)));
+ }
+ }
+ }
next reply other threads:[~2026-10-19 21:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-19 21:40 Nicolas Chauvet [this message]
2026-10-19 21:40 [rpms/onednn] xpu-support-single-build: Add fix for s390x Nicolas Chauvet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179244604775.1.11498299216991322255.rpms-onednn-8df1fbd057a4@fedoraproject.org \
--to=kwizart@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox