## START: Set by rpmautospec ## (rpmautospec version 0.6.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 hipCUB %global rocm_release 6.2 %global rocm_patch 0 %global rocm_version %{rocm_release}.%{rocm_patch} # Compiler is hipcc, which is clang based: %global toolchain clang # 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/') # there is no debug package %global debug_package %{nil} # Option to test suite for testing on real HW: %bcond_with check Name: hipcub Version: %{rocm_version} Release: %autorelease Summary: ROCm port of CUDA CUB library Url: https://github.com/ROCmSoftwarePlatform License: MIT and BSD-3-Clause Source0: %{url}/%{upstreamname}/archive/refs/tags/rocm-%{version}.tar.gz#/%{upstreamname}-%{version}.tar.gz BuildRequires: cmake %if %{with check} BuildRequires: gtest-devel %endif BuildRequires: rocm-cmake BuildRequires: rocm-comgr-devel BuildRequires: rocm-hip-devel BuildRequires: rocprim-static BuildRequires: rocm-runtime-devel # Only headers, cmake infra but noarch confuses the libdir # BuildArch: noarch # Only x86_64 works right now: ExclusiveArch: x86_64 %description hipCUB is a thin wrapper library on top of rocPRIM or CUB. It enables developers to port a project using the CUB library to the HIP layer to run on AMD hardware. In the ROCm environment, hipCUB uses the rocPRIM library as the backend. %package devel Summary: The %{upstreamname} development package Provides: %{name}-static = %{version}-%{release} Requires: rocprim-devel %description devel The %{upstreamname} development package. %prep %autosetup -p1 -n %{upstreamname}-rocm-%{version} # # The ROCMExportTargetsHeaderOnly.cmake file # generates a files that reference the install location of other files # Make this change so they match sed -i -e 's/ROCM_INSTALL_LIBDIR lib/ROCM_INSTALL_LIBDIR lib64/' cmake/ROCMExportTargetsHeaderOnly.cmake %build %cmake \ -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF \ %if %{with check} -DBUILD_TEST=ON \ %endif -DCMAKE_CXX_COMPILER=hipcc \ -DROCM_SYMLINK_LIBS=OFF %cmake_build %install %cmake_install %check %if %{with check} %ctest %endif %files devel %doc README.md %license %{_docdir}/%{name}/LICENSE.txt %{_includedir}/%{name} %{_libdir}/cmake/%{name} %changelog ## START: Generated by rpmautospec * Sat Aug 10 2024 Tom Rix - 6.2.0-1 - Update to ROCm 6.2 * Thu Jul 18 2024 Fedora Release Engineering - 6.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat May 18 2024 Tom Rix - 6.1.1-1 - Update to 6.1.1 * Tue Mar 12 2024 Tom Rix - 6.0.2-1 - Update to 6.0.2 * Fri Feb 02 2024 Ben Woodard - 6.0.0-6 - Add dependency on rocprim-devel to devel package - hipcub's header files reference and so hipcub-devel needs to have a dependency on rocprim-devel. * Thu Jan 25 2024 Tom Rix - 6.0.0-5 - Noarch confuses libdir on x86_64 * Thu Jan 25 2024 Tom Rix - 6.0.0-4 - Fix location of hip cmake files * Wed Jan 24 2024 Fedora Release Engineering - 6.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 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 Oct 20 2023 Jeremy Newton - 5.7.1-1 - Update to 5.7.1 * Tue Oct 03 2023 Jeremy Newton - 5.7.0-1 - Update to 5.7 * Thu Jul 20 2023 Fedora Release Engineering - 5.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jul 8 2023 Tom Rix - 5.6.0-2 - Review changes * Sun Jul 2 2023 Tom Rix - 5.6.0-1 - Initial package ## END: Generated by rpmautospec