## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Copyright (c) 2015, 2016 Dave Love, University of Liverpool # Copyright (c) 2018 Dave Love, University of Manchester # MIT licence, per Fedora policy # Notes: # The specific compiler flags used are presumably chosen sensibly for the # code, and there's no likely security implication for this. # LIBXSMM 2.0 removes parts of the former public API and starts a new ABI # generation. Keep the package file list aligned with the upstream SONAME. %global somajor 2 # Avoid FTBFS with gcc 15 https://github.com/libxsmm/libxsmm/issues/933 %global optflags %optflags -std=gnu17 Name: libxsmm Version: 2.1.0 Release: %autorelease Summary: Small dense or sparse matrix multiplications and convolutions for x86_64 License: BSD-3-Clause URL: https://github.com/libxsmm/libxsmm Source0: https://github.com/libxsmm/libxsmm/archive/%{version}/%{name}-%{version}.tar.gz Patch: install-docs.patch BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gcc-gfortran BuildRequires: python3-devel ExclusiveArch: x86_64 aarch64 riscv64 ppc64le %description LIBXSMM is high performance library for small dense and sparse linear algebra opertions incl. GEMM and elementwise primities often seen in deep learning applications. It also serves as reference implementation of Tensor Processing Primitives (TPP), a programming abstraction for efficient and portable deep learning and HPC workloads. With version 2.0, LIBXSMM focuses on providing a complete and architecture-portable set of TPPs (small dense and sparse matrix operations as well as element-wise, GEMM, and BRGEMM primitives) from which higher-level operators such as convolutions, fully-connected layers, normalization, and pooling are composed. LIBXSMM targets Intel Architecture with Intel SSE, Intel AVX, Intel AVX2, Intel AVX-512 (with VNNI and Bfloat16), and Intel AMX (Advanced Matrix Extensions), AArch64 (NEON, SVE, and SME), RISC-V (RVV), and PowerPC 64-bit little-endian (POWER10 with VSX and MMA). Code generation is mainly based on Just-In-Time (JIT) code specialization for compiler-independent performance (matrix multiplications, matrix transpose/copy, sparse functionality, and tensor primitives). LIBXSMM is suitable for "build once and deploy everywhere", i.e., no special target flags are needed to exploit the available performance. Supported GEMM datatypes are: FP64, FP32, FP16, bfloat16, BF8, HF8, MXBF8, MXHF8, int16, int8, MXBF6, MXHF6, MXFP4, int4, int2 and int1. Additionally, various non-standard low precision combinations are supported. %package devel Summary: Development files for %name Requires: %name%{?_isa} = %version-%release Requires: pkgconfig %description devel The %name-devel package contains libraries and header files for developing applications that use %name. %package doc Summary: Documentation for %name Requires: %name = %version-%release BuildArch: noarch %description doc Documentation for %name. %prep %autosetup -p1 # MS-Windows project files are neither useful documentation on Fedora nor # suitable for the documentation package. find samples -name '*.vcxproj' -delete %conf %cmake \ -DCMAKE_INSTALL_Fortran_MODULES:PATH=%{_fmoddir}/%{name} \ -DBUILD_TESTING:BOOL=ON \ -DLIBXSMM_FORTRAN:BOOL=ON \ -DLIBXSMM_CTEST_WITH_BLAS_REFERENCE:BOOL=OFF %build %cmake_build %install %cmake_install %check %ctest %files %license LICENSE.md %{_libdir}/libxsmm.so.%{somajor}{,.*} %{_libdir}/libxsmmf.so.%{somajor}{,.*} %files devel %{_libdir}/libxsmm.so %{_libdir}/libxsmmf.so %{_includedir}/%{name}/ %{_fmoddir}/%{name}/ %{_bindir}/libxsmm_gemm_generator %{_bindir}/libxsmm_binaryexport_generator %{_libdir}/cmake/%{name}/ %{_libdir}/pkgconfig/ %files doc %doc %{_docdir}/%{name}/ %changelog ## START: Generated by rpmautospec * Tue Sep 22 2026 SY Wang - 2.1.0-4 - Switch to %%autorelease * Tue Sep 22 2026 SY Wang - 2.1.0-3 - Add .packit.yaml * Wed Jul 29 2026 SY Wang - 2.1.0-1 - Update to 2.1.0 (rhbz#2512898) - Add support for aarch64, ppc64le, and RISC-V - Build libxsmm with CMake * Thu Jul 16 2026 Fedora Release Engineering - 1.17-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Fri Jan 16 2026 Fedora Release Engineering - 1.17-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Thu Jul 24 2025 Fedora Release Engineering - 1.17-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sun Jan 26 2025 Dave Love - 1.17-6 - Fix FTBFS with gcc 15 (#2340767) - Remove el7 support * Fri Jan 17 2025 Fedora Release Engineering - 1.17-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 1.17-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 1.17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Sep 12 2023 Orion Poplawski - 1.17-1 - Update to 1.17 * Thu Sep 7 2023 Dave Love - 1.16-11 - Don't BR /usr/bin/python3 (#2237694) - Remove el6 in conditionals * Thu Jul 20 2023 Fedora Release Engineering - 1.16-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 1.16-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Sep 12 2022 Dave Love - 1.16-8 - Use SPDX licence tag * Thu Jul 21 2022 Fedora Release Engineering - 1.16-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.16-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.16-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.16-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.16-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jun 24 2020 Dave Love - 1.16-2 - Clean samples/cp2k/obj - Maybe use devtoolset-9, not -6 * Fri Jun 19 2020 Dave Love - 1.16-1 - New version * Sat Mar 14 2020 Dave love - 1.15-1 - New version - Drop _legacy_common_support - Remove installed modules file - Fix cleanup in %%check - Define OMPLIB for backport to EL7 * Wed Feb 5 2020 Dave love - 1.14-3 - Fix FTBFS with GCC 10 * Wed Jan 29 2020 Fedora Release Engineering - 1.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Oct 25 2019 Dave love - 1.14-1 - New version * Thu Jul 25 2019 Fedora Release Engineering - 1.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jul 15 2019 Dave Love - 1.13-1 - New version * Thu May 23 2019 Dave Love - 1.12.1-1 - New version * Mon May 13 2019 vagrant - 1.12-1 - New version * Mon Apr 29 2019 Dave Love - 1.11-1 - New version - Drop patch * Fri Feb 01 2019 Fedora Release Engineering - 1.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Nov 23 2018 Dave Love - 1.10-1 - New version - Patch builddir out of pkgconfig * Fri Jul 13 2018 Fedora Release Engineering - 1.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jul 4 2018 Dave Love - 1.9-2 - Use python2 exlicitly in scripts - Use single thread in %%check to fix FTBFS - Use ldconfig_scriptlets - Don't define LDFLAGS * Wed Mar 21 2018 Dave Love - 1.9-1 - Update to 1.9 (#1557708) - Use devtoolset-6, not -7 for EPEL - Don't avoid SSE (assumes sse3, which seems unlikely to cause problems) - BR python2, per new policy - Set VERSION_UPDATE for soname to avoid going backwards - Fix issues with doc files * Thu Mar 8 2018 Dave Love - 1.8.3-1 - Update to 1.8.3 (#1528828) - Fix running test - Modify %%files for distribution changes and to specify lib soversion * Wed Feb 07 2018 Fedora Release Engineering - 1.8.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Dec 19 2017 Dave Love - 1.8.1-4 - Don't run test - Update possible devtoolset usage * Sun Oct 29 2017 Dave Love - 1.8.1-3 - Fix spurious executable permission - Reinstate %%check - Build with AVX=0 * Fri Oct 27 2017 Dave Love - 1.8.1-2 - Fix bogus specification of soversion Actually kept at 1.8, not the intended 2.0, despite a few ABI differences from version 1.8. * Thu Oct 26 2017 Dave Love - 1.8.1-1 - New version - Drop libxsmm-make.patch * Thu Aug 03 2017 Fedora Release Engineering - 1.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Jul 07 2017 Igor Gnatenko - 1.8-2 - Rebuild due to bug in RPM (RHBZ #1468476) * Tue May 2 2017 Dave Love - 1.8-1 - Update soversion - Ship libxsmm_convwino_generator - New version * Mon Feb 13 2017 Dave Love - 1.6.3-1 - New version (Moving past 1.6.3 means more serious ABI changes.) * Sun Feb 05 2017 Kalev Lember - 1.6.1-2 - Rebuilt for libgfortran soname bump * Wed Dec 7 2016 Dave Love - 1.6.1-1 - New version - Some ABI incompatibility, but kept major sover as not made stable yet and in view of https://github.com/hfp/libxsmm/issues/120 * Wed Nov 9 2016 Dave Love - 1.5.2-2 - Remove -doc dependencies * Fri Nov 4 2016 Dave Love - 1.5.2-1 - New version * Thu Nov 3 2016 Dave Love - 1.5.1-2 - Clean samples .make files too - Use OMP build default - Define FCFLAGS, LDFLAGS * Mon Oct 31 2016 Dave Love - 1.5.1-1 - New version, fixing interface bug - Spec fixes from review - Add samples to doc * Wed Oct 26 2016 Dave Love - 1.5-4 - Don't install .mod file directly in _includedir - Don't build for ix86 - BR python * Tue Oct 11 2016 Dave Love - 1.5-3 - Install with STATIC=0 - Avoid sse3 - Fix Fortran modules installation and %%_fmoddir ownership * Wed Oct 5 2016 Dave Love - 1.5-2 - Fix installation of libraries * Wed Oct 5 2016 Dave Love - 1.5-1 - New version - Remove %%check (run in %%build) * Sat Aug 20 2016 Dave Love - 1.4.4-2 - Drop devtoolset on el6 (not needed) * Thu Aug 18 2016 Dave Love - 1.4.4-1 - New version, with bumped soname - Drop patch - Modify install section * Sat May 21 2016 Dave Love - 1.4.3-1 - New version - Fix debuginfo * Mon May 9 2016 Dave Love - 1.4.1-1 - New version - Link --as-needed * Mon Apr 25 2016 Dave Love - 1.4-2 - Use PREFETCH=1 * Wed Apr 6 2016 Dave Love - 1.4-1 - New version * Fri Apr 1 2016 Dave Love - 1.3-2 - Install README.md, and maybe README.EPEL6 * Fri Apr 1 2016 Dave Love - 1.3-1 - New version - Sanitize spec a bit * Mon Feb 22 2016 Dave Love - 1.2-1 - New version * Sun Jan 24 2016 Dave Love - 1.1.1-2 - Install Fortran module in %%_fmoddir * Wed Dec 30 2015 Dave Love - 1.1.1-1 - New version - Add check - BR python - Make it serial, not openmp, for now - Add doc subpackage * Wed Dec 2 2015 Dave Love - 1.0.1-1 - New version * Wed Oct 7 2015 Dave Love - 0.9.1-1 - Initial packaging ## END: Generated by rpmautospec