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 OpenCL / Disable -mcpu=native
Date: Mon, 19 Oct 2026 21:40:26 GMT	[thread overview]
Message-ID: <179244602681.1.228578804065343916.rpms-onednn-f09c4d998c18@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/onednn
Branch : xpu-support-single-build
Commit : f09c4d998c185cb29b7ce544e66a47be5d09b6e7
Author : Nicolas Chauvet <kwizart@gmail.com>
Date   : 2021-04-03T13:50:15+02:00
Stats  : +6/-8 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/onednn/c/f09c4d998c185cb29b7ce544e66a47be5d09b6e7?branch=xpu-support-single-build

Log:
Add OpenCL / Disable -mcpu=native

---
diff --git a/onednn.spec b/onednn.spec
index ca156b3..ab260db 100644
--- a/onednn.spec
+++ b/onednn.spec
@@ -1,5 +1,3 @@
-%global __cmake_in_source_build 1
-
 Name:           onednn
 Version:        2.2
 Release:        1%{?dist}
@@ -18,7 +16,7 @@ BuildRequires:  doxygen
 BuildRequires:  gcc-c++
 
 # Optionals not yet enabled
-#BuildRequires:  pkgconfig(OpenCL)
+BuildRequires:  pkgconfig(OpenCL)
 #BuildRequires:  pkgconfig(tbb)
 
 # Virtual provides mkldnn
@@ -54,15 +52,15 @@ developing applications that use %{name}.
 
 
 %build
-mkdir -p build && cd build
-%cmake ..
+%cmake \
+  -DDNNL_ARCH_OPT_FLAGS="" \
+  -DDNNL_GPU_RUNTIME=OCL
 
-%make_build
+%cmake_build
 
 
 %install
-cd build
-%make_install
+%cmake_install
 
 # Remove docs
 rm -rf %{buildroot}%{_docdir}/dnnl

                 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=179244602681.1.228578804065343916.rpms-onednn-f09c4d998c18@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