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 rocm_release 6.4
|
||||
%global rocm_patch 0
|
||||
%global rocm_version %{rocm_release}.%{rocm_patch}
|
||||
|
||||
%{rocm_set_libpackage_name rocblas -s 4}
|
||||
|
||||
%if 0%{?suse_version}
|
||||
# On SUSE build the .so module only - tensile modules are built in a separate package
|
||||
%bcond_with tensile_package
|
||||
@@ -90,12 +86,6 @@
|
||||
# OracleLinux 9 has a problem with it's strip not recognizing *.co's
|
||||
%global __strip %rocmllvm_bindir/llvm-strip
|
||||
|
||||
%if %{with ninja}
|
||||
%global cmake_generator -G Ninja
|
||||
%else
|
||||
%global cmake_generator %{nil}
|
||||
%endif
|
||||
|
||||
%global cmake_config \\\
|
||||
-DCMAKE_CXX_COMPILER=hipcc \\\
|
||||
-DCMAKE_C_COMPILER=hipcc \\\
|
||||
@@ -185,28 +175,13 @@ BuildRequires: %{python_module tensile-devel}
|
||||
%if %{suse_version} < 1699
|
||||
BuildRequires: %{python_module joblib}
|
||||
%endif # suse_version < 1699
|
||||
# OBS vm times out without console output
|
||||
%global tensile_verbose 2
|
||||
%{?with_msgpack:BuildRequires: msgpack-cxx-devel}
|
||||
%else # ?suse_version
|
||||
BuildRequires: python3dist(tensile)
|
||||
%if 0%{?rhel}
|
||||
%global tensile_verbose 2
|
||||
%else
|
||||
%{?with_msgpack:BuildRequires: msgpack-devel}
|
||||
%global tensile_verbose 1
|
||||
%global tensile_library_format msgpack
|
||||
%endif
|
||||
%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
|
||||
%rocm_set_tensile
|
||||
|
||||
%if %{with compress}
|
||||
BuildRequires: pkgconfig(libzstd)
|
||||
@@ -234,15 +209,7 @@ BuildRequires: gtest-devel
|
||||
|
||||
%endif
|
||||
|
||||
%if %{with ninja}
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
BuildRequires: ninja-build
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: ninja
|
||||
%define __builder ninja
|
||||
%endif
|
||||
%endif
|
||||
%rocm_set_ninja
|
||||
|
||||
Provides: rocblas = %{version}-%{release}
|
||||
|
||||
@@ -404,13 +371,8 @@ fi
|
||||
%if %{without tensile_package}
|
||||
%if %{with test}
|
||||
%if %{with check}
|
||||
%if 0%{?suse_version}
|
||||
export LD_LIBRARY_PATH=%{__builddir}/library/src:$LD_LIBRARY_PATH
|
||||
%{__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
|
||||
export LD_LIBRARY_PATH=%{rocm_builddir}/library/src:$LD_LIBRARY_PATH
|
||||
%{rocm_builddir}/clients/staging/rocblas-test --gtest_brief=1
|
||||
%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
|
||||
the top).
|
||||
- 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
|
||||
- Remove suse check for using ldconfig
|
||||
|
Reference in New Issue
Block a user