## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## 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 %global upstreamname rocSPARSE %global rocm_release 6.2 %global rocm_patch 0 %global rocm_version %{rocm_release}.%{rocm_patch} %global toolchain rocm # hipcc does not support some clang flags %global build_cxxflags %(echo %{optflags} | sed -e 's/-fstack-protector-strong/-Xarch_host -fstack-protector-strong/' -e 's/-fcf-protection/-Xarch_host -fcf-protection/') # $gpu will be evaluated in the loops below %global _vpath_builddir %{_vendor}-%{_target_os}-build-${gpu} # Tests are downloaded so this option is only good for local building # Also need to # export QA_RPATHS=0xff %bcond_with test Name: rocsparse Version: %{rocm_version} Release: %autorelease Summary: SPARSE implementation for ROCm Url: https://github.com/ROCmSoftwarePlatform/%{upstreamname} License: MIT # Only x86_64 works right now: ExclusiveArch: x86_64 Source0: %{url}/archive/refs/tags/rocm-%{rocm_version}.tar.gz#/%{upstreamname}-%{rocm_version}.tar.gz BuildRequires: cmake BuildRequires: ninja-build BuildRequires: rocm-cmake BuildRequires: rocm-comgr-devel BuildRequires: rocm-hip-devel BuildRequires: rocm-runtime-devel BuildRequires: rocm-rpm-macros BuildRequires: rocm-rpm-macros-modules BuildRequires: rocprim-static %if %{with test} BuildRequires: gtest-devel BuildRequires: libomp-devel BuildRequires: rocblas-devel %endif Requires: rocm-rpm-macros-modules %description rocSPARSE exposes a common interface that provides Basic Linear Algebra Subroutines for sparse computation implemented on top of AMD's Radeon Open eCosystem Platform ROCm runtime and toolchains. rocSPARSE is created using the HIP programming language and optimized for AMD's latest discrete GPUs. %package gfx90a Summary: %{name} for MI200 %description gfx90a %{summary} %package gfx942 Summary: %{name} for MI300 %description gfx942 %{summary} %package gfx1100 Summary: %{name} for W7900 %description gfx1100 %{summary} %package gfx1103 Summary: %{name} for gfx1103 (experimental) %description gfx1103 %{summary} %package devel Summary: Libraries and headers for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}-gfx90a%{?_isa} = %{version}-%{release} Requires: %{name}-gfx942%{?_isa} = %{version}-%{release} Requires: %{name}-gfx1100%{?_isa} = %{version}-%{release} Requires: %{name}-gfx1103%{?_isa} = %{version}-%{release} %description devel %{summary} %if %{with test} %package test Summary: Tests for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description test %{summary} %endif %prep %autosetup -p1 -n %{upstreamname}-rocm-%{version} %build for gpu in %{rocm_gpu_list} do module load rocm/$gpu %cmake %rocm_cmake_options \ %if %{with test} %rocm_cmake_test_options %endif %cmake_build module purge done %cmake_build %install for gpu in %{rocm_gpu_list} do %cmake_install done %files %license LICENSE.md %exclude %{_docdir}/%{name}/LICENSE.md %{_libdir}/lib%{name}.so.* %{_libdir}/rocm/gfx{8,9,10,11}/lib/lib%{name}.so.* %files gfx90a %{_libdir}/rocm/gfx90a/lib/lib%{name}.so.* %files gfx942 %{_libdir}/rocm/gfx942/lib/lib%{name}.so.* %files gfx1100 %{_libdir}/rocm/gfx1100/lib/lib%{name}.so.* %files gfx1103 %{_libdir}/rocm/gfx1103/lib/lib%{name}.so.* %files devel %doc README.md %{_includedir}/%{name} %{_libdir}/cmake/%{name}/ %{_libdir}/lib%{name}.so %{_libdir}/rocm/gfx*/lib/lib%{name}.so %{_libdir}/rocm/gfx*/lib/cmake/%{name}/ %if %{with test} %files test %{_bindir}/%{name}* %{_libdir}/rocm/gfx*/bin/%{name}* %endif %changelog ## START: Generated by rpmautospec * Wed Aug 14 2024 Tom Rix - 6.2.0-2 - Rebuild * Tue Aug 13 2024 Tom Rix - 6.2.0-1 - Update to ROCm 6.2 * Fri Jul 19 2024 Fedora Release Engineering - 6.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun May 19 2024 Tom Rix - 6.1.1-2 - Fix devel * Sat May 18 2024 Tom Rix - 6.1.1-1 - Update for 6.1.1 * Mon Mar 11 2024 Tom Rix - 6.0.2-1 - Update to 6.0.2 * Fri Jan 26 2024 Fedora Release Engineering - 6.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 6.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Dec 20 2023 Jeremy Newton - 6.0.0-1 - Update to 6.0 * Fri Nov 3 2023 Tom Rix - 5.7.1-2 - Address review comments * Wed Nov 1 2023 Tom Rix - 5.7.1-1 - Initial package ## END: Generated by rpmautospec