public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/dbcsr] rawhide: Reintegrate with libxs/libxsmm
@ 2026-09-23 11:23 Growl
  0 siblings, 0 replies; only message in thread
From: Growl @ 2026-09-23 11:23 UTC (permalink / raw)
  To: git-commits

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}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-23 11:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-23 11:23 [rpms/dbcsr] rawhide: Reintegrate with libxs/libxsmm Growl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox