public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hipblaslt] rawhide: Update preview to 10.2
@ 2026-11-26 22:37 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-11-26 22:37 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/hipblaslt
Branch : rawhide
Commit : d1d5c50e86d5fe1d82b0d06eba0bbc1817a4036e
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-11-26T14:36:29-08:00
Stats : +225/-4 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/hipblaslt/c/d1d5c50e86d5fe1d82b0d06eba0bbc1817a4036e?branch=rawhide
Log:
Update preview to 10.2
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/hipblaslt.spec b/hipblaslt.spec
index b44e284..d8ff677 100644
--- a/hipblaslt.spec
+++ b/hipblaslt.spec
@@ -23,7 +23,7 @@
%bcond_with preview
%if %{with preview}
-%global rocm_release 10.1
+%global rocm_release 10.2
%else
%global rocm_release 10.1
%endif
@@ -151,6 +151,12 @@ Source2: %{robinmap_giturl}/archive/v%{robinmap_version}/robin-map-%{robi
Source3: %{url}/releases/download/%{pkg_src}/stinkytofu.tar.gz#/stinkytofu-%{version}.tar.gz
Source4: %{url}/releases/download/%{pkg_src}/origami.tar.gz#/origami-%{version}.tar.gz
Source5: %{url}/releases/download/%{pkg_src}/mxdatagenerator.tar.gz#/mxdatagenerator-%{version}.tar.gz
+%if %{with preview}
+Patch1: 0001-hipblaslt-tensilelite-remove-yappi-dependency.patch
+Patch2: 0002-hipblaslt-find-origami-package.patch
+Patch3: 0003-hipblaslt-tensilelite-use-nanobind-tarball.patch
+Patch4: 0004-hipblaslt-cmake-compile-and-link-job-pools.patch
+%else
# Remove yappi profiling dependency from tensilelite
Patch1: 0001-hipblaslt-preview-tensilelit-remove-yappi-dependency.patch
# Use find_package for origami instead of subdirectory fallback
@@ -161,6 +167,7 @@ Patch4: 0001-hipblaslt-preview-tensilelit-use-nanobind-tarball.patch
Patch5: 0001-hipblaslt-preview-cmake-jobpools.patch
# Simplify stinkytofu CMake integration with find_package
Patch6: 0001-hipblaslt-preview-stinktofu.patch
+%endif
BuildRequires: amdsmi-devel
BuildRequires: chrpath
@@ -176,6 +183,7 @@ BuildRequires: gcc-gfortran
%endif
BuildRequires: hipblas%{pkg_suffix}-devel
BuildRequires: hipcc%{pkg_suffix}
+BuildRequires: libomp-devel
BuildRequires: libzstd-devel
BuildRequires: rocblas%{pkg_suffix}-devel
BuildRequires: rocminfo%{pkg_suffix}
@@ -271,6 +279,9 @@ algorithmic implementations and heuristics.
Summary: Libraries and headers for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: rocm-filesystem%{pkg_suffix}
+%if %{with preview}
+Requires: rocm-origami%{pkg_suffix}-devel
+%endif
Provides: hipblaslt%{pkg_suffix}-devel = %{version}-%{release}
%description devel
@@ -321,15 +332,22 @@ cp -ar robin-map-*/* ext/robin_map/
cd ..
tar czf nanobind.tar.gz nanobind
cd ../..
+%if %{with preview}
+%patch 1 -p1
+%patch 2 -p1
+%patch 3 -p1
+%patch 4 -p1
+%else
%patch 1 -p1
%patch 4 -p1
+%endif
cd projects/hipblaslt
# tensile path to tools need to change
-sed -i -e 's@globalParameters["ROCmPath"] = "/opt/rocm"@globalParameters["ROCmPath"] = "%{pkg_prefix}"@' tensilelite/Tensile/Common/GlobalParameters.py
-sed -i -e 's@DEFAULT_ROCM_BIN_PATH_POSIX = Path("/opt/rocm/bin")@DEFAULT_ROCM_BIN_PATH_POSIX = Path("%{pkg_prefix}/bin")@' tensilelite/Tensile/Toolchain/Validators.py
-sed -i -e 's@DEFAULT_ROCM_LLVM_BIN_PATH_POSIX = Path("/opt/rocm/lib/llvm/bin")@DEFAULT_ROCM_LLVM_BIN_PATH_POSIX = Path("%{rocmllvm_bindir}")@' tensilelite/Tensile/Toolchain/Validators.py
+sed -i -e 's@globalParameters["ROCmPath"] = "/opt/rocm"@globalParameters["ROCmPath"] = "%{pkg_prefix}"@' tensilelite/tensilelite/Common/GlobalParameters.py
+sed -i -e 's@DEFAULT_ROCM_BIN_PATH_POSIX = Path("/opt/rocm/bin")@DEFAULT_ROCM_BIN_PATH_POSIX = Path("%{pkg_prefix}/bin")@' tensilelite/tensilelite/Toolchain/Validators.py
+sed -i -e 's@DEFAULT_ROCM_LLVM_BIN_PATH_POSIX = Path("/opt/rocm/lib/llvm/bin")@DEFAULT_ROCM_LLVM_BIN_PATH_POSIX = Path("%{rocmllvm_bindir}")@' tensilelite/tensilelite/Toolchain/Validators.py
# As of 6.4, there is a long poll
# compile_code_object.sh gfx90a,gfx1100,gfx1101,gfx1151,gfx1200,gfx1201 RelWithDebInfo sha1 hipblasltTransform.hsaco
@@ -431,6 +449,9 @@ chrpath -r %{pkg_prefix}/%{pkg_libdir} %{buildroot}%{pkg_prefix}/%{pkg_libdir}/l
%license projects/hipblaslt/LICENSE.md
%{pkg_prefix}/%{pkg_libdir}/libhipblaslt.so.1{,.*}
%{pkg_prefix}/%{pkg_libdir}/hipblaslt/
+%if %{with preview}
+%{pkg_prefix}/%{pkg_libdir}/libtensile*.so.1{,.*}
+%endif
%files devel
%{pkg_prefix}/include/hipblaslt/
@@ -438,6 +459,13 @@ chrpath -r %{pkg_prefix}/%{pkg_libdir} %{buildroot}%{pkg_prefix}/%{pkg_libdir}/l
%{pkg_prefix}/include/hipblaslt-version.h
%{pkg_prefix}/%{pkg_libdir}/cmake/hipblaslt/
%{pkg_prefix}/%{pkg_libdir}/libhipblaslt.so
+%if %{with preview}
+%{pkg_prefix}/include/Tensile
+%{pkg_prefix}/include/rocisa
+%{pkg_prefix}/include/tensilelitehost
+%{pkg_prefix}/%{pkg_libdir}/libtensile*.so
+%endif
+
%if %{with test}
%files test
diff --git a/preview/0001-hipblaslt-tensilelite-remove-yappi-dependency.patch b/preview/0001-hipblaslt-tensilelite-remove-yappi-dependency.patch
new file mode 100644
index 0000000..c23eaac
--- /dev/null
+++ b/preview/0001-hipblaslt-tensilelite-remove-yappi-dependency.patch
@@ -0,0 +1,62 @@
+From 618eea7a92a9dede090d5a4e3dc74423b9db005e Mon Sep 17 00:00:00 2001
+From: Tom Rix <Tom.Rix@amd.com>
+Date: Thu, 19 Nov 2026 02:54:10 -0800
+Subject: [PATCH 1/4] [hipblaslt] tensilelite remove yappi dependency
+
+The yappi profiling dependency is not packaged for Fedora.
+Remove the yappi profiling code paths and the requirement.
+
+Signed-off-by: Tom Rix <Tom.Rix@amd.com>
+---
+ projects/hipblaslt/tensilelite/requirements.txt | 1 -
+ .../tensilelite/TensileCreateLibrary/Run.py | 15 ---------------
+ 2 files changed, 16 deletions(-)
+
+diff --git a/projects/hipblaslt/tensilelite/requirements.txt b/projects/hipblaslt/tensilelite/requirements.txt
+index 231c577db096..7191111325d9 100644
+--- a/projects/hipblaslt/tensilelite/requirements.txt
++++ b/projects/hipblaslt/tensilelite/requirements.txt
+@@ -5,7 +5,6 @@ joblib>=1.4.0
+ simplejson
+ ujson
+ orjson
+-yappi
+ tox
+ invoke
+ filelock
+diff --git a/projects/hipblaslt/tensilelite/tensilelite/TensileCreateLibrary/Run.py b/projects/hipblaslt/tensilelite/tensilelite/TensileCreateLibrary/Run.py
+index 3c72d1c2962d..05487b6777a3 100644
+--- a/projects/hipblaslt/tensilelite/tensilelite/TensileCreateLibrary/Run.py
++++ b/projects/hipblaslt/tensilelite/tensilelite/TensileCreateLibrary/Run.py
+@@ -554,12 +554,6 @@ def writeSolutionsAndKernels(
+ compress: bool=True,
+ removeTemporaries: bool=True,
+ ):
+- if globalParameters["PythonProfile"]:
+- globalParameters["CpuThreads"] = 0
+- printWarning("Python profiling is enabled. CpuThreads set to 0.")
+- import yappi
+- yappi.start()
+-
+ codeObjectFiles = []
+
+ archNames = archNamesByIsa(cmdlineArchs)
+@@ -663,15 +657,6 @@ def writeSolutionsAndKernels(
+ writeHelpers(outputPath, kernelHelperObjs, KERNEL_HELPER_FILENAME_CPP, KERNEL_HELPER_FILENAME_H)
+ srcKernelFile = Path(outputPath) / "Kernels.cpp"
+
+- if globalParameters["PythonProfile"]:
+- yappi.stop()
+- yappi.get_func_stats().save("yappi_results.profile", type="callgrind")
+- with open("yappi_results.txt", "w") as f:
+- yappi.get_func_stats().print_all(out=f)
+- if globalParameters["CpuThreads"] != 0:
+- with open("yappi_thread_stats.txt", "w") as f:
+- yappi.get_thread_stats().print_all(out=f)
+-
+ if not generateSourcesAndExit:
+ with timing_context("python_kernel_build_co"):
+ codeObjectFiles += buildAssemblyCodeObjectFiles(
+--
+2.56.1
+
diff --git a/preview/0002-hipblaslt-find-origami-package.patch b/preview/0002-hipblaslt-find-origami-package.patch
new file mode 100644
index 0000000..594413d
--- /dev/null
+++ b/preview/0002-hipblaslt-find-origami-package.patch
@@ -0,0 +1,41 @@
+From 075b8169690cc583da92c418f5a5dd0ffe439875 Mon Sep 17 00:00:00 2001
+From: Tom Rix <Tom.Rix@amd.com>
+Date: Thu, 19 Nov 2026 03:01:42 -0800
+Subject: [PATCH 2/4] [hipblaslt] find origami package
+
+Use find_package to locate an installed origami package instead
+of building the bundled shared/origami source tree. This is what
+the Fedora build needs, where origami is packaged separately
+(rocm-origami-devel).
+
+Signed-off-by: Tom Rix <Tom.Rix@amd.com>
+---
+ projects/hipblaslt/CMakeLists.txt | 12 +++---------
+ 1 file changed, 3 insertions(+), 9 deletions(-)
+
+diff --git a/projects/hipblaslt/CMakeLists.txt b/projects/hipblaslt/CMakeLists.txt
+index 78da42155c94..d6eea84dc400 100644
+--- a/projects/hipblaslt/CMakeLists.txt
++++ b/projects/hipblaslt/CMakeLists.txt
+@@ -291,15 +291,9 @@ if(ROCM_LIBS_SUPERBUILD)
+ elseif(HIPBLASLT_ENABLE_THEROCK)
+ find_package(origami CONFIG REQUIRED)
+ else()
+- block(SCOPE_FOR VARIABLES)
+- set(ORIGAMI_BUILD_SHARED_LIBS OFF)
+- set(ORIGAMI_ENABLE_FETCH ON)
+- set(ORIGAMI_BUILD_TESTING OFF)
+- set(ORIGAMI_ENABLE_PYTHON OFF)
+- set(BUILD_TESTING OFF)
+- set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
+- add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../../shared/origami" "${CMAKE_CURRENT_BINARY_DIR}/origami")
+- endblock()
++ # Use the installed origami package (ex/ the Fedora rocm-origami-devel)
++ # instead of building the bundled shared/origami source tree.
++ find_package(origami REQUIRED)
+ endif()
+
+ add_library(hipblaslt-headers INTERFACE)
+--
+2.56.1
+
diff --git a/preview/0003-hipblaslt-tensilelite-use-nanobind-tarball.patch b/preview/0003-hipblaslt-tensilelite-use-nanobind-tarball.patch
new file mode 100644
index 0000000..08f9d5e
--- /dev/null
+++ b/preview/0003-hipblaslt-tensilelite-use-nanobind-tarball.patch
@@ -0,0 +1,33 @@
+From f3b120c90375975e6dee32298357685d3b980c51 Mon Sep 17 00:00:00 2001
+From: Tom Rix <Tom.Rix@amd.com>
+Date: Thu, 19 Nov 2026 03:02:39 -0800
+Subject: [PATCH 3/4] [hipblaslt] tensilelite use nanobind tarball
+
+FetchContent currently clones nanobind from git, which is not
+available in the Fedora build. Use a local tarball instead,
+placed at projects/hipblaslt/nanobind.tar.gz.
+
+Signed-off-by: Tom Rix <Tom.Rix@amd.com>
+---
+ projects/hipblaslt/tensilelite/rocisa/CMakeLists.txt | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/projects/hipblaslt/tensilelite/rocisa/CMakeLists.txt b/projects/hipblaslt/tensilelite/rocisa/CMakeLists.txt
+index f02efc53e463..daf8dcc060c7 100644
+--- a/projects/hipblaslt/tensilelite/rocisa/CMakeLists.txt
++++ b/projects/hipblaslt/tensilelite/rocisa/CMakeLists.txt
+@@ -75,8 +75,9 @@ block()
+ include(FetchContent)
+ FetchContent_Declare(
+ nanobind
+- GIT_REPOSITORY https://github.com/wjakob/nanobind.git
+- GIT_TAG 9b3afa9dbdc23641daf26fadef7743e7127ff92f # v2.6.1
++ # Use the nanobind tarball bundled next to the hipblaslt source
++ # (ex/ by the Fedora spec) instead of fetching from git
++ URL file://${CMAKE_CURRENT_SOURCE_DIR}/../../nanobind.tar.gz
+ )
+ FetchContent_MakeAvailable(nanobind)
+ if(ROCISA_USE_STABLE_ABI)
+--
+2.56.1
+
diff --git a/preview/0004-hipblaslt-cmake-compile-and-link-job-pools.patch b/preview/0004-hipblaslt-cmake-compile-and-link-job-pools.patch
new file mode 100644
index 0000000..9a8c9ec
--- /dev/null
+++ b/preview/0004-hipblaslt-cmake-compile-and-link-job-pools.patch
@@ -0,0 +1,57 @@
+From 15fe9ad748ed271c03de5e7a2a7f026ac90f2482 Mon Sep 17 00:00:00 2001
+From: Tom Rix <Tom.Rix@amd.com>
+Date: Thu, 19 Nov 2026 03:03:43 -0800
+Subject: [PATCH 4/4] [hipblaslt] cmake compile and link job pools
+
+Add separate compile and link job pools (Ninja only) so the
+number of concurrent compile and link jobs can be limited.
+Too many concurrent linking jobs can break the build, and the
+Fedora build uses this to control memory pressure.
+
+Copied from LLVM.
+
+Signed-off-by: Tom Rix <Tom.Rix@amd.com>
+---
+ projects/hipblaslt/CMakeLists.txt | 26 ++++++++++++++++++++++++++
+ 1 file changed, 26 insertions(+)
+
+diff --git a/projects/hipblaslt/CMakeLists.txt b/projects/hipblaslt/CMakeLists.txt
+index d6eea84dc400..ea8fe161c8c2 100644
+--- a/projects/hipblaslt/CMakeLists.txt
++++ b/projects/hipblaslt/CMakeLists.txt
+@@ -75,6 +75,32 @@ if(HIPBLASLT_ENABLE_GEMM_A2A_FUSION AND NOT HIPBLASLT_ENABLE_DEVICE)
+ message(FATAL_ERROR "HIPBLASLT_ENABLE_GEMM_A2A_FUSION requires HIPBLASLT_ENABLE_DEVICE=ON")
+ endif()
+
++#
++# Separate linking jobs from compiling
++# Too many concurrent linking jobs can break the build
++# Copied from LLVM
++set(HIPBLASLT_PARALLEL_LINK_JOBS "" CACHE STRING
++ "Define the maximum number of concurrent link jobs (Ninja only).")
++if(CMAKE_GENERATOR MATCHES "Ninja")
++ if(HIPBLASLT_PARALLEL_LINK_JOBS)
++ set_property(GLOBAL APPEND PROPERTY JOB_POOLS link_job_pool=${HIPBLASLT_PARALLEL_LINK_JOBS})
++ set(CMAKE_JOB_POOL_LINK link_job_pool)
++ endif()
++elseif(HIPBLASLT_PARALLEL_LINK_JOBS)
++ message(WARNING "Job pooling is only available with Ninja generators.")
++endif()
++# Similar for compiling
++set(HIPBLASLT_PARALLEL_COMPILE_JOBS "" CACHE STRING
++ "Define the maximum number of concurrent compile jobs (Ninja only).")
++if(CMAKE_GENERATOR MATCHES "Ninja")
++ if(HIPBLASLT_PARALLEL_COMPILE_JOBS)
++ set_property(GLOBAL APPEND PROPERTY JOB_POOLS compile_job_pool=${HIPBLASLT_PARALLEL_COMPILE_JOBS})
++ set(CMAKE_JOB_POOL_COMPILE compile_job_pool)
++ endif()
++elseif(HIPBLASLT_PARALLEL_COMPILE_JOBS)
++ message(WARNING "Job pooling is only available with Ninja generators.")
++endif()
++
+ option(TENSILELITE_ENABLE_HOST "Build the tensilelite host library." ON)
+ option(TENSILELITE_BUILD_TESTING "Build client when building tests" OFF)
+ option(TENSILELITE_ENABLE_CLIENT "Build tensilelite client" ${TENSILELITE_BUILD_TESTING})
+--
+2.56.1
+
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-26 22:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 22:37 [rpms/hipblaslt] rawhide: Update preview to 10.2 Tom Rix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox