## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 8; 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 #Image support is x86 only %ifarch x86_64 %global enableimage 1 %endif %global rocm_release 6.2 %global rocm_patch 1 %global rocm_version %{rocm_release}.%{rocm_patch} Name: rocm-runtime Version: %{rocm_version} %if 0%{?is_opensuse} || 0%{?rhel} && 0%{?rhel} < 10 Release: 1%{?dist} %else Release: %autorelease %endif Summary: ROCm Runtime Library License: NCSA URL: https://github.com/ROCm/ROCR-Runtime Source0: %{url}/archive/rocm-%{version}.tar.gz#/%{name}-%{version}.tar.gz ExclusiveArch: x86_64 BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: hipcc BuildRequires: hsakmt-devel BuildRequires: hsakmt(rocm) = %{rocm_release} BuildRequires: libdrm-devel BuildRequires: libffi-devel BuildRequires: rocm-compilersupport-macros BuildRequires: rocm-device-libs %if 0%{?is_opensuse} BuildRequires: libelf-devel %else BuildRequires: elfutils-libelf-devel BuildRequires: vim-common %endif %description The ROCm Runtime Library is a thin, user-mode API that exposes the necessary interfaces to access and interact with graphics hardware driven by the AMDGPU driver set and the AMDKFD kernel driver. Together they enable programmers to directly harness the power of AMD discrete graphics devices by allowing host applications to launch compute kernels directly to the graphics hardware. %package devel Summary: ROCm Runtime development files Requires: %{name}%{?_isa} = %{version}-%{release} Requires: hsakmt(rocm) = %{rocm_release} %description devel ROCm Runtime development files %prep %autosetup -n ROCR-Runtime-rocm-%{version} -p1 %build export PATH=%{rocmllvm_bindir}:$PATH cd src %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_PREFIX_PATH=%{rocmllvm_cmakedir}/.. \ -DCMAKE_INSTALL_LIBDIR=%{_lib} \ -DINCLUDE_PATH_COMPATIBILITY=OFF \ %{?!enableimage:-DIMAGE_SUPPORT=OFF} %cmake_build %install cd src %cmake_install %ldconfig_scriptlets %files %doc README.md %license LICENSE.txt %{_libdir}/libhsa-runtime64.so.1{,.*} %exclude %{_docdir}/hsa-runtime64/LICENSE.md %files devel %{_includedir}/hsa/ %{_libdir}/libhsa-runtime64.so %{_libdir}/cmake/hsa-runtime64/ %changelog ## START: Generated by rpmautospec * Mon Nov 04 2024 Tom Rix - 6.2.1-8 - Make sure the correct clang is used. * Sun Nov 03 2024 Tom Rix - 6.2.1-7 - Build on Tumbleweed * Sun Nov 03 2024 Tom Rix - 6.2.1-6 - Need to add gcc-c++ for bundled llvm * Thu Oct 31 2024 Tom Rix - 6.2.1-5 - Use rocmllvm_cmakedir macro * Tue Oct 29 2024 Tom Rix - 6.2.1-4 - Use hipconfig for find llvm-config * Thu Oct 10 2024 Tom Rix - 6.2.1-3 - Update URL * Thu Sep 26 2024 Jeremy Newton - 6.2.1-2 - Drop %%rocmllvm_prefix * Tue Sep 24 2024 Jeremy Newton - 6.2.1-1 - Update to 6.2.1 * Tue Sep 10 2024 Tim Flink - 6.2.0-4 - fixing test for rhel<10 so that it only affects el builds * Tue Sep 10 2024 Tom Rix - 6.2.0-3 - rhel 9 autorelease * Sat Aug 10 2024 Tom Rix - 6.2.0-2 - Rebuild * Thu Aug 08 2024 Jeremy Newton - 6.2.0-1 - Update to 6.2 * Fri Jul 19 2024 Fedora Release Engineering - 6.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jun 06 2024 Jeremy Newton - 6.1.2-1 - Update to 6.1.2 * Thu May 09 2024 Jeremy Newton - 6.1.1-1 - Update to 6.1.1 * 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 * Thu Dec 14 2023 Jeremy Newton - 6.0.0-1 - Update to 6.0.0 * Fri Oct 20 2023 Jeremy Newton - 5.7.1-1 - Update to 5.7.1 * Sun Sep 17 2023 Jeremy Newton - 5.7.0-1 - Update to 5.7 * Wed Sep 06 2023 Tulio Magno Quites Machado Filho - 5.6.1-2 - Rebuild against LLVM 17.0.0 * Wed Aug 30 2023 Jeremy Newton - 5.6.1-1 - Update to 5.6.1 * Tue Aug 08 2023 Jeremy Newton - 5.6.0-4 - Rebuild against rocm-device-libs 16.4 * Fri Jul 21 2023 Fedora Release Engineering - 5.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 18 2023 Jeremy Newton - 5.6.0-2 - Rebuild for rocm-device-libs update * Thu Jun 29 2023 Jeremy Newton - 5.6.0-1 - Update to 5.6 * Sat Jun 24 2023 Jeremy Newton - 5.5.0-2 - Fix RHBZ#2216826 * Mon May 01 2023 Jeremy Newton - 5.5.0-1 - Update to 5.5 * Wed Apr 19 2023 Jeremy Newton - 5.4.1-5 - Rebuild against 16.1 rocm-device-libs * Mon Apr 10 2023 Jeremy Newton - 5.4.1-3 - Rebuild with llvm 16 * Fri Jan 20 2023 Fedora Release Engineering - 5.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Dec 18 2022 Jeremy Newton - 5.4.1-1 - Update to 5.4.1 * Tue Oct 04 2022 Jeremy Newton - 5.3.0-2 - Fix cmake path bug * Tue Oct 04 2022 Jeremy Newton - 5.3.0-1 - Update to 5.3.0 * Thu Sep 15 2022 Jeremy Newton - 5.2.1-2 - Rebuild against llvm 15 * Sun Jul 24 2022 Jeremy Newton - 5.2.1-1 - Update to 5.2.1 * Sat Jul 23 2022 Fedora Release Engineering - 5.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sun Jul 03 2022 Jeremy Newton - 5.2.0-1 - Update to 5.2.0 * Fri May 20 2022 Jeremy Newton - 5.1.3-1 - Update to ROCm version 5.1.3 * Sat Apr 09 2022 Jeremy Newton - 5.1.1-1 - Update to ROCm version 5.1.1 * Tue Apr 05 2022 Jeremy Newton - 5.1.0-2 - Enable ppc64le * Thu Mar 31 2022 Jeremy Newton - 5.1.0-1 - Update to ROCm version 5.1.0 * Tue Feb 15 2022 Jeremy Newton - 5.0.0-2 - Enable image support for x86 * Fri Feb 11 2022 Jeremy Newton - 5.0.0-1 - Update to ROCm version 5.0.0 - General improvements to spec file * Fri Jan 21 2022 Fedora Release Engineering - 3.9.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 3.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 3.9.0-1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Nov 26 2020 Philipp Knechtges - 3.9.0-0 - Version 3.9.0 * Sat Aug 01 2020 Fedora Release Engineering - 3.5.0-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 3.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 15 2020 Tom Stellard - 3.5.0-1 - ROCm 3.5.0 Release * Thu Jan 30 2020 Fedora Release Engineering - 2.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 2.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Mar 21 2019 Tom Stellard - 2.0.0-3 - Add endian detection for AArch64 * Sat Feb 02 2019 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jan 14 2019 Tom Stellard - 2.0.0-1 - ROCm 2.0.0 Release * Sat Jul 14 2018 Fedora Release Engineering - 1.6.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Feb 13 2018 Tom Stellard - 1.6.1-7 - Build for aarch64 * Wed Feb 07 2018 Tom Stellard - 1.6.1-6 - Add ExclusiveArch: x86_64 * Tue Feb 06 2018 Tom Stellard - 1.6.1-5 - Take ownership of /usr/include/hsa * Fri Feb 02 2018 Tom Stellard - 1.6.1-4 - Fix build with gcc 8 * Thu Feb 01 2018 Tom Stellard - 1.6.1-3 - Use version macro in source url * Mon Jan 29 2018 Tom Stellard - 1.6.1-2 - Fix some rpmlint errors * Thu Oct 12 2017 Tom Stellard - 1.6.1-1 - Initial Release ## END: Generated by rpmautospec