The package rpms/hipblas.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/hipblas.git/commit/?id=3b8ffee9777f1....
Change: +ExclusiveArch: x86_64
Thanks.
Full change: ============
commit 3b8ffee9777f1610a9cf7f4959aca413c32d8d60 Author: Tom Rix trix@redhat.com Date: Mon Nov 20 10:11:30 2023 -0500
Initial package
Signed-off-by: Tom Rix trix@redhat.com
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fc8246d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/hipBLAS-5.7.1.tar.gz diff --git a/hipblas.spec b/hipblas.spec new file mode 100644 index 0000000..fd3c529 --- /dev/null +++ b/hipblas.spec @@ -0,0 +1,133 @@ +%global upstreamname hipBLAS +%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 + +# gfortran and clang rpm macros do not mix +%global build_fflags %{nil} + +Name: hipblas +Version: %{rocm_version} +Release: 1%{?dist} +Summary: ROCm BLAS marshalling library +Url: https://github.com/ROCmSoftwarePlatform/%%7Bupstreamname%7D +License: MIT + +Source0: %{url}/archive/refs/tags/rocm-%{rocm_version}.tar.gz#/%{upstreamname}-%{rocm_version}.tar.gz + +BuildRequires: cmake +BuildRequires: clang-devel +BuildRequires: compiler-rt +BuildRequires: gcc-gfortran +BuildRequires: lld +BuildRequires: llvm-devel +BuildRequires: ninja-build +BuildRequires: rocblas-devel +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} + +# test parallel building broken +%global _smp_mflags -j1 + +BuildRequires: gtest-devel +BuildRequires: blas-static +BuildRequires: lapack-static +%endif + +Requires: rocm-rpm-macros-modules + +# Only x86_64 works right now: +ExclusiveArch: x86_64 + +%description +hipBLAS is a Basic Linear Algebra Subprograms (BLAS) marshalling +library, with multiple supported backends. It sits between the +application and a 'worker' BLAS library, marshalling inputs into +the backend library and marshalling results back to the +application. hipBLAS exports an interface that does not require +the client to change, regardless of the chosen backend. Currently, +hipBLAS supports rocBLAS and cuBLAS as backends. + +%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 \ + -DBUILD_WITH_SOLVER=OFF \ +%if %{with test} + %rocm_cmake_test_options \ +%endif + + %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 +* Wed Nov 15 2023 Tom Rix trix@redhat.com - 5.7.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..f023ea8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (hipBLAS-5.7.1.tar.gz) = 24c074f07865e1a3dfb0aca0b1d494e340a584ecb408813bb5b053f8282437cfd3644d730163f4faf1b93da306626ba68904141f9c3730a29749537fb7fd1a63
arch-excludes@lists.fedoraproject.org