## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 # TESTING NOTE: An OpenCL device is needed to run the tests. Since the koji # builders may or may not have a GPU, we use the CPU-only POCL implementation. # # Except, as of pocl 3.1, the tests no longer pass. We get this: # # The following tests FAILED: # 10 - clblast_test_xamax (Subprocess aborted) # 48 - clblast_test_xaxpybatched (Failed) # 49 - clblast_test_xgemmbatched (Failed) # # Reverting to pocl 1.8 makes the tests pass. We seem unable to run the tests # at all at this point. Try again when pocl 4.0 is released. # https://koji.fedoraproject.org/koji/taskinfo?taskID=113330948 %bcond_with check %bcond_without pocl Name: clblast Version: 1.6.3 Release: %autorelease Summary: Tuned OpenCL BLAS routines License: Apache-2.0 URL: https://cnugteren.github.io/clblast/clblast.html Source0: https://github.com/CNugteren/CLBlast/archive/%{version}/%{name}-%{version}.tar.gz # Fix name clashes between macros in altivec.h and standard types on ppc64le Patch0: %{name}-altivec.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: ninja-build BuildRequires: pkgconfig(flexiblas) %if %{with pocl} BuildRequires: pocl-devel BuildRequires: ocl-icd-devel %endif %description CLBlast is a modern, lightweight, performant and tunable OpenCL BLAS library written in C++11. It is designed to leverage the full performance potential of a wide variety of OpenCL devices from different vendors, including desktop and laptop GPUs, embedded GPUs, and other accelerators. CLBlast implements BLAS routines: basic linear algebra subprograms operating on vectors and matrices. See the CLBlast website for performance reports on various devices as well as the latest CLBlast news. The library is not tuned for all possible OpenCL devices: if out-of-the-box performance is poor, please run the tuners first. %package devel Summary: Headers and libraries for CLBlast Requires: %{name}%{?_isa} = %{version}-%{release} Requires: ocl-icd-devel%{?_isa} %description devel Headers and libraries for developing applications that use CLBlast. %package clients Summary: Clients for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description clients Clients to test and compare performance of %{name} for your OpenCL device. %package tuners Summary: Tuners for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description tuners Programs to tune %{name} for your OpenCL device. %prep %autosetup -p0 -n CLBlast-%{version} # Fix the path to the openblas headers sed -i 's,openblas/include,include/openblas,' cmake/Modules/FindCBLAS.cmake # Add paths for FlexiBLAS sed -i 's,include/openblas,include/openblas include/flexiblas,' cmake/Modules/FindCBLAS.cmake sed -i 's,NAMES cblas blas,NAMES cblas blas flexiblas,' cmake/Modules/FindCBLAS.cmake %build # https://github.com/CNugteren/CLBlast/issues/529 # add -Wno-error=format-security to CMAKE_CXX_FLAGS when building tests %cmake \ -GNinja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCLIENTS=ON \ -DNETLIB=ON \ %if %{with check} -DTESTS=ON \ -DCMAKE_CXX_FLAGS="%{optflags} -Wno-error=format-security" \ %else -DTESTS=OFF \ %endif %cmake_build %install %cmake_install %if %{with check} %check %ctest %endif %files %license LICENSE %doc CHANGELOG README.md %{_libdir}/lib%{name}.so.1 %{_libdir}/lib%{name}.so.%{version} %files devel %doc doc %{_includedir}/%{name}*.h %{_libdir}/lib{%name}.so %{_libdir}/cmake/CLBlast/ %{_libdir}/pkgconfig/%{name}.pc %files clients %{_bindir}/clblast_client* %files tuners %{_bindir}/clblast_tuner* %changelog ## START: Generated by rpmautospec * Wed Jul 17 2024 Fedora Release Engineering - 1.6.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 15 2024 Tom Rix - 1.6.3-1 - Update to 1.6.3 * Fri Mar 08 2024 Felix Wang - 1.6.2-2 - enable packit only on fedora-rawhide * Sun Feb 11 2024 topazus - 1.6.2-1 - update to 1.6.2 * Wed Jan 24 2024 Fedora Release Engineering - 1.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Nov 25 2023 Peter Robinson - 1.6.1-2 - Build clients and netlib support * Wed Jul 19 2023 Fedora Release Engineering - 1.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jun 10 2023 Jerry James - 1.6.0-1 - Version 1.6.0 - Disable tests due to problems with pocl * Wed Jan 18 2023 Fedora Release Engineering - 1.5.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Nov 21 2022 Tom Rix - 1.5.3-2 - Prepare for building on epel * Thu Sep 29 2022 Jerry James - 1.5.3-1 - Version 1.5.3 - Drop upstreamed -reference patch - Run tests on all arches * Mon Aug 15 2022 Jerry James - 1.5.2-5 - Convert License field to SPDX * Wed Jul 20 2022 Fedora Release Engineering - 1.5.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jan 19 2022 Fedora Release Engineering - 1.5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 1.5.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jan 20 2021 Jerry James - 1.5.2-1 - Version 1.5.2 - Add -reference patch to reduce copying * Fri Aug 07 2020 Iñaki Úcar - 1.5.1-4 - https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager * Sat Aug 01 2020 Fedora Release Engineering - 1.5.1-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Feb 18 2020 Jerry James - 1.5.1-1 - Version 1.5.1 * Tue Jan 28 2020 Fedora Release Engineering - 1.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jul 24 2019 Fedora Release Engineering - 1.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 1.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Dec 15 2018 Jerry James - 1.5.0-1 - New upstream version * Sat Sep 1 2018 Jerry James - 1.4.1-1 - Initial RPM ## END: Generated by rpmautospec