public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/onednn] xpu-support-single-build: Add OpenCL / Disable -mcpu=native
@ 2026-10-19 21:40 Nicolas Chauvet
0 siblings, 0 replies; only message 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 : 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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-19 21:40 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:40 [rpms/onednn] xpu-support-single-build: Add OpenCL / Disable -mcpu=native Nicolas Chauvet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox