%global upstreamname rocm_bandwidth_test %global rocm_release 6.4 %global rocm_patch 2 %global rocm_version %{rocm_release}.%{rocm_patch} Name: rocm_bandwidth_test Version: %{rocm_version} Release: 1%{?dist} Summary: Bandwidth test for ROCm # License mismatch # https://github.com/ROCm/rocm_bandwidth_test/issues/127 License: NCSA AND MIT URL: https://github.com/ROCm/%{upstreamname} Source0: %{url}/archive/rocm-%{version}.tar.gz#/%{upstreamname}-%{rocm_version}.tar.gz ExclusiveArch: x86_64 BuildRequires: make BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: rocm-runtime-devel >= %{rocm_release}.0 %description ROCm Bandwidth Test is designed to capture the performance characteristics of buffer copying and kernel read and write operations. The benchmark help screen shows various options for initiating copy, read, and write operations. In addition to this, you can also query the system topology in terms of memory pools and their agents. %prep %autosetup -n %{name}-rocm-%{version} -p1 # Remove execute permissions on docs # https://github.com/ROCm/rocm_bandwidth_test/issues/128 chmod a-x LICENSE.txt chmod a-x README.md %build %cmake %cmake_build %install %cmake_install if [ -f %{buildroot}%{_prefix}/share/doc/rocm-bandwidth-test/LICENSE.txt ]; then rm %{buildroot}%{_prefix}/share/doc/rocm-bandwidth-test/LICENSE.txt fi %files %doc README.md %license LICENSE.txt %{_bindir}/rocm-bandwidth-test %changelog * Sat Jul 26 2025 Tom Rix - 6.4.2-1 - Initial package