public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Growl <uwsy1059@qq.com>
To: git-commits@fedoraproject.org
Subject: [rpms/dbcsr] rawhide: Reintegrate with libxs/libxsmm
Date: Wed, 23 Sep 2026 11:23:08 GMT [thread overview]
Message-ID: <179016258821.1.11029147353887234412.rpms-dbcsr-ab225a6f6b77@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/dbcsr
Branch : rawhide
Commit : ab225a6f6b77ee889e4efca4a8e7a7d1b175ad16
Author : Growl <uwsy1059@qq.com>
Date : 2026-09-23T16:57:09+08:00
Stats : +18/-11 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/dbcsr/c/ab225a6f6b77ee889e4efca4a8e7a7d1b175ad16?branch=rawhide
Log:
Reintegrate with libxs/libxsmm
---
diff --git a/dbcsr.spec b/dbcsr.spec
index 9b3dcf3..86e02ca 100644
--- a/dbcsr.spec
+++ b/dbcsr.spec
@@ -1,6 +1,12 @@
-# OpenCL support requires packaged libxs/libxstream/libxsmm dependencies.
-# Keep it disabled until those packages are available in Fedora.
+# LIBXS is supported on x86_64, aarch64, and riscv64
+%bcond libxs %[ "%{_arch}" == "x86_64" || "%{_arch}" == "aarch64" || "%{_arch}" == "riscv64" ]
+
+# OpenCL support requires packaged libxs/libxstream dependencies.
+# Keep it disabled until libxstream is available in Fedora.
%bcond opencl 0
+%if %{with opencl} && %{without libxs}
+%{error:OpenCL requires LIBXS}
+%endif
# OpenMPI is not available on i686
%bcond openmpi %[ 0%{?__isa_bits} != 32 ]
@@ -22,10 +28,12 @@ BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: gcc-gfortran
BuildRequires: flexiblas-devel
+%if %{with libxs}
+BuildRequires: cmake(libxs)
+BuildRequires: cmake(libxsmm)
+%endif
%if %{with opencl}
-BuildRequires: libxs-devel
-BuildRequires: libxstream-devel
-BuildRequires: libxsmm-devel
+BuildRequires: cmake(libxstream)
%endif
BuildRequires: python3-fypp
@@ -98,18 +106,18 @@ developing applications that use %{name}-mpich.
# Use system fypp, other tools not needed
rm -r tools
-
# $mpi will be evaluated in the loops below
%global _vpath_builddir %{_vendor}-%{_target_os}-build-${mpi:-serial}
+
%conf
%cmake \
-DCMAKE_INSTALL_Fortran_MODULES:PATH=%{_fmoddir} \
-DBUILD_TESTING:BOOL=ON \
-DUSE_MPI:BOOL=OFF \
%{?with_opencl:-DUSE_ACCEL:STRING=opencl} \
- -DUSE_LIBXS:BOOL=%{with opencl} \
- -DUSE_LIBXSMM:BOOL=%{with opencl}
+ -DUSE_LIBXS:BOOL=%{with libxs} \
+ -DUSE_LIBXSMM:BOOL=%{with libxs}
for mpi in %{mpi_list}
do
@@ -119,8 +127,8 @@ do
-DBUILD_TESTING:BOOL=ON \
-DUSE_MPI:BOOL=ON \
%{?with_opencl:-DUSE_ACCEL:STRING=opencl} \
- -DUSE_LIBXS:BOOL=%{with opencl} \
- -DUSE_LIBXSMM:BOOL=%{with opencl} \
+ -DUSE_LIBXS:BOOL=%{with libxs} \
+ -DUSE_LIBXSMM:BOOL=%{with libxs} \
-DCMAKE_INSTALL_PREFIX:PATH=$MPI_HOME \
-DCMAKE_INSTALL_LIBDIR:PATH=$MPI_LIB \
-DUSE_MPI_F08:BOOL=ON \
@@ -139,7 +147,6 @@ do
done
-
%install
%cmake_install
for mpi in %{mpi_list}
reply other threads:[~2026-09-23 11:23 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=179016258821.1.11029147353887234412.rpms-dbcsr-ab225a6f6b77@fedoraproject.org \
--to=uwsy1059@qq.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