The package rpms/rocblas.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/rocblas.git/commit/?id=c1235bc103614....
Change: +ExclusiveArch: x86_64
Thanks.
Full change: ============
commit 64a7eeb56c02c0aab643470826eedc6a5ebd3264 Author: Tom Rix trix@redhat.com Date: Tue Oct 31 06:40:49 2023 -0700
Fix comment
Signed-off-by: Tom Rix trix@redhat.com
diff --git a/rocblas.spec b/rocblas.spec index 31259c9..edfee8c 100644 --- a/rocblas.spec +++ b/rocblas.spec @@ -121,7 +121,7 @@ done %changelog * Sun Oct 22 2023 Tom Rix trix@redhat.com - 5.7.1-3 - Change url -- capitalize AMD +- capitalize AND
* Sat Oct 21 2023 Tom Rix trix@redhat.com - 5.7.1-2 - Fix so location
commit c1235bc103614947f9fe1238dfbd26670fb8cbfc Author: Tom Rix trix@redhat.com Date: Tue Oct 31 06:39:55 2023 -0700
Initial package
Signed-off-by: Tom Rix trix@redhat.com
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d251f6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rocBLAS-5.7.1.tar.gz diff --git a/0001-prepare-rocblas-cmake-for-fedora.patch b/0001-prepare-rocblas-cmake-for-fedora.patch new file mode 100644 index 0000000..c3c1151 --- /dev/null +++ b/0001-prepare-rocblas-cmake-for-fedora.patch @@ -0,0 +1,26 @@ +From aba3a118fd32f415e63b4e24555b8df98e89292d Mon Sep 17 00:00:00 2001 +From: Tom Rix trix@redhat.com +Date: Tue, 3 Oct 2023 10:37:12 -0700 +Subject: [PATCH] prepare rocblas cmake for fedora + +Signed-off-by: Tom Rix trix@redhat.com +--- + clients/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/clients/CMakeLists.txt b/clients/CMakeLists.txt +index da44cef0..6d39c1f3 100755 +--- a/clients/CMakeLists.txt ++++ b/clients/CMakeLists.txt +@@ -131,7 +131,7 @@ if( BUILD_CLIENTS_BENCHMARKS OR BUILD_CLIENTS_TESTS) + message(STATUS "Linking BLIS LIB: ${BLAS_LIBRARY}") + endif() + else() +- set( BLAS_LIBRARY "blas" ) ++ set( BLAS_LIBRARY "cblas" ) + endif() + else() # WIN32 + set( BLAS_INCLUDE_DIR ${OPENBLAS_DIR}/include CACHE PATH "OpenBLAS library include path" ) +-- +2.41.0 + diff --git a/rocblas.spec b/rocblas.spec new file mode 100644 index 0000000..31259c9 --- /dev/null +++ b/rocblas.spec @@ -0,0 +1,146 @@ +%global upstreamname rocBLAS +%global rocm_release 5.7 +%global rocm_patch 1 +%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} + +# It is necessary to use this with a local build +# export QA_RPATHS=0xff +%bcond_with test + +Name: rocblas +Version: %{rocm_version} +Release: 3%{?dist} +Summary: BLAS implementation for ROCm +Url: https://github.com/ROCmSoftwarePlatform/%%7Bupstreamname%7D +License: MIT AND BSD-3-Clause + +Source0: %{url}/archive/refs/tags/rocm-%{rocm_version}.tar.gz#/%{upstreamname}-%{rocm_version}.tar.gz +Patch0: 0001-prepare-rocblas-cmake-for-fedora.patch + +BuildRequires: cmake +BuildRequires: clang-devel +BuildRequires: compiler-rt +BuildRequires: lld +BuildRequires: llvm-devel +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 + +%if %{with test} +BuildRequires: gtest-devel +BuildRequires: blas-devel +BuildRequires: libomp-devel +BuildRequires: python3-pyyaml +BuildRequires: rocminfo +%endif + +Requires: rocm-rpm-macros-modules + +# Only x86_64 works right now: +ExclusiveArch: x86_64 + +%description +rocBLAS is the AMD library for Basic Linear Algebra Subprograms +(BLAS) on the ROCm platform. It is implemented in the HIP +programming language and optimized for AMD GPUs. + +%package devel +Summary: Libraries and headers for %{name} +Requires: %{name}%{?_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 + -DBUILD_WITH_TENSILE=OFF + + %cmake_build + module purge +done + +%install + +for gpu in %{rocm_gpu_list} +do + %cmake_install +done + +%files +%dir %{_libdir}/cmake/%{name}/ +%license LICENSE.md +%exclude %{_docdir}/%{name}/LICENSE.md +%{_libdir}/lib%{name}.so.* +%{_libdir}/rocm/gfx*/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 +* Sun Oct 22 2023 Tom Rix trix@redhat.com - 5.7.1-3 +- Change url +- capitalize AMD + +* Sat Oct 21 2023 Tom Rix trix@redhat.com - 5.7.1-2 +- Fix so location +- glob gpu family location + +* Sun Oct 15 2023 Tom Rix trix@redhat.com - 5.7.1-1 +- Update to 5.7.1 +- Use rocm-rpm-macros + +* Sat Oct 7 2023 Tom Rix trix@redhat.com - 5.7.0-1 +- Update to 5.7 +- Use WIP rocm-rpm-macros +- Convert to environent modules + +* Sun Oct 1 2023 Tom Rix trix@redhat.com - 5.6.0-2 +- Split the build into gpu families + +* Sat Sep 23 2023 Tom Rix trix@redhat.com - 5.6.0-1 +- Update to 5.6 + +* Tue Jun 6 2023 Tom Rix trix@redhat.com - 5.5.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..941f280 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rocBLAS-5.7.1.tar.gz) = cfc73f6c490595a3c153c2ac2a3cb5926c48c2c19baa07ff3dcdf3a7ccaed82cfdff64ed5a3be64c349cb43d654d4b104d9090e2ec9f2061049d6a4921c07722
arch-excludes@lists.fedoraproject.org