forked from ROCm/rocblas
Compare commits
1 Commits
main
...
distro_mac
Author | SHA256 | Date | |
---|---|---|---|
1bfcab0293 |
51
rocblas.spec
51
rocblas.spec
@@ -1,14 +1,10 @@
|
|||||||
%if 0%{?suse_version}
|
|
||||||
%global rocblas_name librocblas4
|
|
||||||
%else
|
|
||||||
%global rocblas_name rocblas
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%global upstreamname rocBLAS
|
%global upstreamname rocBLAS
|
||||||
%global rocm_release 6.4
|
%global rocm_release 6.4
|
||||||
%global rocm_patch 0
|
%global rocm_patch 0
|
||||||
%global rocm_version %{rocm_release}.%{rocm_patch}
|
%global rocm_version %{rocm_release}.%{rocm_patch}
|
||||||
|
|
||||||
|
%{rocm_set_libpackage_name rocblas -s 4}
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
# On SUSE build the .so module only - tensile modules are built in a separate package
|
# On SUSE build the .so module only - tensile modules are built in a separate package
|
||||||
%bcond_with tensile_package
|
%bcond_with tensile_package
|
||||||
@@ -90,12 +86,6 @@
|
|||||||
# OracleLinux 9 has a problem with it's strip not recognizing *.co's
|
# OracleLinux 9 has a problem with it's strip not recognizing *.co's
|
||||||
%global __strip %rocmllvm_bindir/llvm-strip
|
%global __strip %rocmllvm_bindir/llvm-strip
|
||||||
|
|
||||||
%if %{with ninja}
|
|
||||||
%global cmake_generator -G Ninja
|
|
||||||
%else
|
|
||||||
%global cmake_generator %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%global cmake_config \\\
|
%global cmake_config \\\
|
||||||
-DCMAKE_CXX_COMPILER=hipcc \\\
|
-DCMAKE_CXX_COMPILER=hipcc \\\
|
||||||
-DCMAKE_C_COMPILER=hipcc \\\
|
-DCMAKE_C_COMPILER=hipcc \\\
|
||||||
@@ -185,28 +175,13 @@ BuildRequires: %{python_module tensile-devel}
|
|||||||
%if %{suse_version} < 1699
|
%if %{suse_version} < 1699
|
||||||
BuildRequires: %{python_module joblib}
|
BuildRequires: %{python_module joblib}
|
||||||
%endif # suse_version < 1699
|
%endif # suse_version < 1699
|
||||||
# OBS vm times out without console output
|
|
||||||
%global tensile_verbose 2
|
|
||||||
%{?with_msgpack:BuildRequires: msgpack-cxx-devel}
|
%{?with_msgpack:BuildRequires: msgpack-cxx-devel}
|
||||||
%else # ?suse_version
|
%else # ?suse_version
|
||||||
BuildRequires: python3dist(tensile)
|
BuildRequires: python3dist(tensile)
|
||||||
%if 0%{?rhel}
|
|
||||||
%global tensile_verbose 2
|
|
||||||
%else
|
|
||||||
%{?with_msgpack:BuildRequires: msgpack-devel}
|
%{?with_msgpack:BuildRequires: msgpack-devel}
|
||||||
%global tensile_verbose 1
|
|
||||||
%global tensile_library_format msgpack
|
|
||||||
%endif
|
|
||||||
%endif # suse_version
|
%endif # suse_version
|
||||||
%if %{with msgpack}
|
|
||||||
%global tensile_library_format msgpack
|
|
||||||
%else
|
|
||||||
%global tensile_library_format yaml
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%global tensile_verbose %{nil}
|
|
||||||
%global tensile_library_format %{nil}
|
|
||||||
%endif # tensile
|
%endif # tensile
|
||||||
|
%rocm_set_tensile
|
||||||
|
|
||||||
%if %{with compress}
|
%if %{with compress}
|
||||||
BuildRequires: pkgconfig(libzstd)
|
BuildRequires: pkgconfig(libzstd)
|
||||||
@@ -234,15 +209,7 @@ BuildRequires: gtest-devel
|
|||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with ninja}
|
%rocm_set_ninja
|
||||||
%if 0%{?fedora} || 0%{?rhel}
|
|
||||||
BuildRequires: ninja-build
|
|
||||||
%endif
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
BuildRequires: ninja
|
|
||||||
%define __builder ninja
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Provides: rocblas = %{version}-%{release}
|
Provides: rocblas = %{version}-%{release}
|
||||||
|
|
||||||
@@ -404,13 +371,8 @@ fi
|
|||||||
%if %{without tensile_package}
|
%if %{without tensile_package}
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
%if %{with check}
|
%if %{with check}
|
||||||
%if 0%{?suse_version}
|
export LD_LIBRARY_PATH=%{rocm_builddir}/library/src:$LD_LIBRARY_PATH
|
||||||
export LD_LIBRARY_PATH=%{__builddir}/library/src:$LD_LIBRARY_PATH
|
%{rocm_builddir}/clients/staging/rocblas-test --gtest_brief=1
|
||||||
%{__builddir}/clients/staging/rocblas-test --gtest_brief=1
|
|
||||||
%else
|
|
||||||
export LD_LIBRARY_PATH=%{_vpath_builddir}/library/src:$LD_LIBRARY_PATH
|
|
||||||
%{_vpath_builddir}/clients/staging/rocblas-test --gtest_brief=1
|
|
||||||
%endif
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -481,6 +443,7 @@ export LD_LIBRARY_PATH=%{_vpath_builddir}/library/src:$LD_LIBRARY_PATH
|
|||||||
- Restructure spec file (move bcond_with* settings to
|
- Restructure spec file (move bcond_with* settings to
|
||||||
the top).
|
the top).
|
||||||
- Add rpmlintrc for SUSE.
|
- Add rpmlintrc for SUSE.
|
||||||
|
- Use distro specific macros to hide some distribution differences.
|
||||||
|
|
||||||
* Wed Jun 11 2025 Tom Rix <Tom.Rix@amd.com> - 6.4.0-8
|
* Wed Jun 11 2025 Tom Rix <Tom.Rix@amd.com> - 6.4.0-8
|
||||||
- Remove suse check for using ldconfig
|
- Remove suse check for using ldconfig
|
||||||
|
Reference in New Issue
Block a user