public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Adam Jackson <ajax@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/onednn] xpu-support-single-build: Fix OpenCL build on ppc64le
Date: Mon, 19 Oct 2026 21:40:53 GMT	[thread overview]
Message-ID: <179244605389.1.10857534462590873995.rpms-onednn-f946b4ff0fb4@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/onednn
            Branch : xpu-support-single-build
            Commit : f946b4ff0fb4d8a865715daf77aad6d7fb8e4506
            Author : Adam Jackson <ajax@redhat.com>
            Date   : 2024-10-21T10:25:48-04:00
            Stats  : +3/-5 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/onednn/c/f946b4ff0fb4d8a865715daf77aad6d7fb8e4506?branch=xpu-support-single-build

            Log:
            Fix OpenCL build on ppc64le

<altivec.h> doesn't work well before C11/C++17 due to the way it
redefines things like 'bool' and 'vector'. While we're here stop
building the examples since they don't get installed.

---
diff --git a/onednn.spec b/onednn.spec
index eeb354b..76e0019 100644
--- a/onednn.spec
+++ b/onednn.spec
@@ -53,13 +53,11 @@ developing applications that use %{name}.
 
 %build
 %cmake \
-%ifarch ppc64le
-  -DDNNL_ARCH_OPT_FLAGS=""
-%endif
-%ifarch aarch64 x86_64 s390x
   -DDNNL_ARCH_OPT_FLAGS="" \
+  -DDNNL_BUILD_EXAMPLES=OFF \
+  -DCMAKE_C_STD=11 \
+  -DCMAKE_CPP_STD=17 \
   -DONEDNN_GPU_RUNTIME=OCL
-%endif
 
 %cmake_build
 

                 reply	other threads:[~2026-10-19 21:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=179244605389.1.10857534462590873995.rpms-onednn-f946b4ff0fb4@fedoraproject.org \
    --to=ajax@redhat.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