public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/hipBLASLt/
@ 2025-10-21 20:34 Sam James
  0 siblings, 0 replies; 10+ messages in thread
From: Sam James @ 2025-10-21 20:34 UTC (permalink / raw
  To: gentoo-commits

commit:     52fad3cd633789adf7aa938b9c4390db2ecfc2fb
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Mon Oct 20 13:34:08 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 21 20:30:19 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52fad3cd

sci-libs/hipBLASLt: update maintainers

Promote Sv. Lockal to primary maintainer.
Drop Wilfried Holzke & Craig Andrews.
Add Paul Zander for general GPGPU stuff.

Use tabs as indent for readability.

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/hipBLASLt/metadata.xml | 39 +++++++++++++++++++++++++--------------
 1 file changed, 25 insertions(+), 14 deletions(-)

diff --git a/sci-libs/hipBLASLt/metadata.xml b/sci-libs/hipBLASLt/metadata.xml
index 0615de942712..99d611403637 100644
--- a/sci-libs/hipBLASLt/metadata.xml
+++ b/sci-libs/hipBLASLt/metadata.xml
@@ -1,18 +1,29 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-  <maintainer type="project">
-    <email>sci@gentoo.org</email>
-  </maintainer>
-  <maintainer type="person">
-    <email>lockalsash@gmail.com</email>
-    <name>Sv. Lockal</name>
-  </maintainer>
-  <upstream>
-    <remote-id type="github">ROCm/hipBLASLt</remote-id>
-  </upstream>
-  <use>
-    <flag name="benchmark">Build and install rocblas-bench.</flag>
-    <flag name="roctracer">Enable roctracer (roctx) marker.</flag>
-  </use>
+	<maintainer type="person" proxied="yes">
+		<email>lockalsash@gmail.com</email>
+		<name>Sv. Lockal</name>
+		<description>Primary maintainer</description>
+	</maintainer>
+	<maintainer type="person" proxied="yes">
+		<email>xgreenlandforwyy@gmail.com</email>
+		<name>Yiyang Wu</name>
+	</maintainer>
+	<maintainer type="person" proxied="yes">
+		<email>negril.nx+gentoo@gmail.com</email>
+		<name>Paul Zander</name>
+		<description>General GPGPU stuff</description>
+	</maintainer>
+	<maintainer type="project" proxied="proxy">
+		<email>sci@gentoo.org</email>
+		<name>Gentoo Science Project</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">ROCm/hipBLASLt</remote-id>
+	</upstream>
+	<use>
+		<flag name="benchmark">Build and install rocblas-bench</flag>
+		<flag name="roctracer">Enable roctracer (roctx) marker</flag>
+	</use>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/hipBLASLt/
@ 2025-10-29 10:35 Sam James
  0 siblings, 0 replies; 10+ messages in thread
From: Sam James @ 2025-10-29 10:35 UTC (permalink / raw
  To: gentoo-commits

commit:     4135f254c8ac879b9113f9603a9065cd4b3a1464
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Wed Oct 29 08:21:52 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Oct 29 10:34:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4135f254

sci-libs/hipBLASLt: fix installation of target library files

Gentoo uses combination of Tensile_SKIP_BUILD (don't build) and HIPBLASLT_ENABLE_DEVICE
(mix of don't build / don't install) to allow build for 0 devices to support
sci-ml/pytorch[amdgpu_targets_gfx1030], but this variable should be set in advance.

Closes: https://bugs.gentoo.org/965264
Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44372
Closes: https://github.com/gentoo/gentoo/pull/44372
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../hipBLASLt/{hipBLASLt-7.0.2.ebuild => hipBLASLt-7.0.2-r1.ebuild}    | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sci-libs/hipBLASLt/hipBLASLt-7.0.2.ebuild b/sci-libs/hipBLASLt/hipBLASLt-7.0.2-r1.ebuild
similarity index 96%
rename from sci-libs/hipBLASLt/hipBLASLt-7.0.2.ebuild
rename to sci-libs/hipBLASLt/hipBLASLt-7.0.2-r1.ebuild
index aaf7ce38c043..8890135e5f56 100644
--- a/sci-libs/hipBLASLt/hipBLASLt-7.0.2.ebuild
+++ b/sci-libs/hipBLASLt/hipBLASLt-7.0.2-r1.ebuild
@@ -82,6 +82,7 @@ python_check_deps() {
 }
 
 pkg_setup() {
+	QA_FLAGS_IGNORED="usr/$(get_libdir)/hipblaslt/library/.*"
 	python-any-r1_pkg_setup
 }
 
@@ -128,10 +129,12 @@ src_configure() {
 
 	local targets="$(get_amdgpu_flags)"
 	local Tensile_SKIP_BUILD=$([ "${AMDGPU_TARGETS[*]}" = "" ] && echo ON || echo OFF )
+	local HIPBLASLT_ENABLE_DEVICE=$([ "${AMDGPU_TARGETS[*]}" != "" ] && echo ON || echo OFF )
 
 	local mycmakeargs=(
 		-DROCM_SYMLINK_LIBS=OFF
 		-DTensile_SKIP_BUILD=${Tensile_SKIP_BUILD}
+		-DHIPBLASLT_ENABLE_DEVICE=${HIPBLASLT_ENABLE_DEVICE}
 		-DTensile_COMPILER=${CXX}
 		-DAMDGPU_TARGETS="${targets}"
 		-DBUILD_CLIENTS_TESTS=$(usex test ON OFF)


^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/hipBLASLt/
@ 2025-09-06 15:13 Sam James
  0 siblings, 0 replies; 10+ messages in thread
From: Sam James @ 2025-09-06 15:13 UTC (permalink / raw
  To: gentoo-commits

commit:     d4cecd11415c26e7679aaeaa76b2c00d9ed18d9e
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Sun Aug 10 12:20:15 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep  6 15:12:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4cecd11

sci-libs/hipBLASLt: update dependencies, pass makeopts, update GPU list

Bug: https://bugs.gentoo.org/960513

Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43406
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/hipBLASLt/hipBLASLt-6.4.3.ebuild | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/sci-libs/hipBLASLt/hipBLASLt-6.4.3.ebuild b/sci-libs/hipBLASLt/hipBLASLt-6.4.3.ebuild
index a2ce9ce18ae0..73a62abda910 100644
--- a/sci-libs/hipBLASLt/hipBLASLt-6.4.3.ebuild
+++ b/sci-libs/hipBLASLt/hipBLASLt-6.4.3.ebuild
@@ -8,7 +8,7 @@ PYTHON_COMPAT=( python3_{10..14} )
 
 LLVM_COMPAT=( 20 )
 
-inherit cmake flag-o-matic llvm-r1 python-any-r1 rocm
+inherit cmake flag-o-matic multiprocessing llvm-r1 python-any-r1 rocm
 DESCRIPTION="General matrix-matrix operations library for AMD Instinct accelerators"
 HOMEPAGE="https://github.com/ROCm/hipBLASLt"
 SRC_URI="https://github.com/ROCm/hipBLASLt/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
@@ -18,15 +18,20 @@ LICENSE="MIT"
 SLOT="0/$(ver_cut 1-2)"
 KEYWORDS="~amd64"
 
-SUPPORTED_GPUS=( gfx908 gfx90a gfx940 gfx941 gfx942 gfx1100 gfx1101 gfx1200 gfx1201 )
+SUPPORTED_GPUS=( gfx908 gfx90a gfx940 gfx941 gfx942 gfx1100 gfx1101 gfx1103 gfx1200 gfx1201 gfx1150 gfx1151 )
 IUSE_TARGETS=( "${SUPPORTED_GPUS[@]/#/amdgpu_targets_}" )
-IUSE="${IUSE_TARGETS[@]/#/+} benchmark roctracer test"
+IUSE="${IUSE_TARGETS[*]/#/+} benchmark roctracer test"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
 	dev-util/hip:${SLOT}
 	dev-cpp/msgpack-cxx
 	roctracer? ( dev-util/roctracer:${SLOT} )
+	benchmark? (
+		dev-util/rocm-smi:${SLOT}
+		sci-libs/lapack
+		sci-libs/openblas
+	)
 "
 
 DEPEND="${RDEPEND}"
@@ -77,8 +82,8 @@ pkg_setup() {
 }
 
 pkg_pretend() {
-	if [[ "${AMDGPU_TARGETS[@]}" = "" ]]; then
-		ewarn "hipBLASLt supports only few GPUs: ${SUPPORTED_GPUS[@]},"
+	if [[ "${AMDGPU_TARGETS[*]}" = "" ]]; then
+		ewarn "hipBLASLt supports only few GPUs: ${SUPPORTED_GPUS[*]},"
 		ewarn "but none of them were defined in AMDGPU_TARGETS USE_EXPAND variable."
 		ewarn
 		ewarn "Library will continue to be built in \"dummy\" mode,"
@@ -88,7 +93,7 @@ pkg_pretend() {
 
 src_prepare() {
 	local shebangs=($(grep -rl "#!/usr/bin/env python3" tensilelite/Tensile || die))
-	python_fix_shebang -q ${shebangs[*]}
+	python_fix_shebang -q "${shebangs[@]}"
 
 	rocm_use_clang
 	sed -e "s:\${rocm_path}/bin/amdclang++:${CXX}:" \
@@ -109,7 +114,7 @@ src_configure() {
 	append-cxxflags -Wno-explicit-specialization-storage-class
 
 	local targets="$(get_amdgpu_flags)"
-	local build_with_tensile=$([ "${AMDGPU_TARGETS[@]}" = "" ] && echo OFF || echo ON )
+	local build_with_tensile=$([ "${AMDGPU_TARGETS[*]}" = "" ] && echo OFF || echo ON )
 
 	local mycmakeargs=(
 		-DROCM_SYMLINK_LIBS=OFF
@@ -120,6 +125,7 @@ src_configure() {
 		-DBUILD_CLIENTS_BENCHMARKS="$(usex benchmark ON OFF)"
 		-DPython_EXECUTABLE="${PYTHON}"
 		-DHIPBLASLT_ENABLE_MARKER="$(usex roctracer ON OFF)"
+		-DTensile_CPU_THREADS=$(makeopts_jobs)
 		-Wno-dev
 	)
 


^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/hipBLASLt/
@ 2025-08-10  6:07 Patrick Lauer
  0 siblings, 0 replies; 10+ messages in thread
From: Patrick Lauer @ 2025-08-10  6:07 UTC (permalink / raw
  To: gentoo-commits

commit:     34a45f47f42ee4ce0997bfea22948aad293b606a
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 10 06:00:06 2025 +0000
Commit:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Sun Aug 10 06:07:07 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34a45f47

sci-libs/hipBLASLt: add 6.4.3

Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 sci-libs/hipBLASLt/Manifest               |   1 +
 sci-libs/hipBLASLt/hipBLASLt-6.4.3.ebuild | 153 ++++++++++++++++++++++++++++++
 2 files changed, 154 insertions(+)

diff --git a/sci-libs/hipBLASLt/Manifest b/sci-libs/hipBLASLt/Manifest
index 7ceec3b61c70..511fa7e35a22 100644
--- a/sci-libs/hipBLASLt/Manifest
+++ b/sci-libs/hipBLASLt/Manifest
@@ -3,3 +3,4 @@ DIST hipBLASLt-6.3.1.tar.gz 89385330 BLAKE2B 4bcf083e41ad6f22f61321bd066d79a6a38
 DIST hipBLASLt-6.3.2.tar.gz 89385514 BLAKE2B 785ee2951b76100f29eed4891cdc3fc58abbee866a9eac7109bc49e56854007d57d15bc6d605a7527ecc685e59500567581d194ede67cff566fba3b582d7b3c4 SHA512 2f4f497a5228162f4fffda9f549f943d26c86d7160a50c0aadc403340cee4466e9f16bd5cfcd386535b7f05cc8d1839a4d146c52761b6eb29e2e53962437e781
 DIST hipBLASLt-6.3.3.tar.gz 89385318 BLAKE2B b307e4c418bda7583efdf5dc646f05368c195f6df0077823ae179efb52a56ba4f13b5fce6a10ff38e0ad593bf5b415fc6e5b4132488b2dbf9da58198af15d230 SHA512 9fb523e614dd790aa3c01337f3d93f9df0a135d25e9efda2375e88818f6097d661e5159336258631cc0a25d923efcddb4b39378bf54c33d0e5a01bba387f1368
 DIST hipBLASLt-6.4.1.tar.gz 186266266 BLAKE2B 5bc583ea3798e16e55fc1d7eaf8b13376191a72e1eb64ee7dc17cd4ba4550e17be6e66947ace5054942296e2548dd31633a961061cf7027ef3278858d84f8366 SHA512 efa60a3625c87686905641d9a90d1403f6e9be510cc538c99864c910db8ec3ab10571778ca81b43ebba5de8ad0f2e6bcec69421ede1bc39239a8d6b5ab3139b2
+DIST hipBLASLt-6.4.3.tar.gz 188053924 BLAKE2B 5a249c2ff856fe858422a2a99e3e072afb29c5ff5ca08f4e57c3574baf85ce40611822a7b72aa7a40329e1c328bdb06cbc47f7278506a57e8e241f695b0cc940 SHA512 0edf1ef227e7c8de767a2fd3da639351d55d70921f2cc1fb4c09163cd32f3fc0b7d5ee7ba50bb62c619b7d9fdb5dc23c65a5e29cfc78937868153ad234c3966f

diff --git a/sci-libs/hipBLASLt/hipBLASLt-6.4.3.ebuild b/sci-libs/hipBLASLt/hipBLASLt-6.4.3.ebuild
new file mode 100644
index 000000000000..a2ce9ce18ae0
--- /dev/null
+++ b/sci-libs/hipBLASLt/hipBLASLt-6.4.3.ebuild
@@ -0,0 +1,153 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ROCM_SKIP_GLOBALS=1
+PYTHON_COMPAT=( python3_{10..14} )
+
+LLVM_COMPAT=( 20 )
+
+inherit cmake flag-o-matic llvm-r1 python-any-r1 rocm
+DESCRIPTION="General matrix-matrix operations library for AMD Instinct accelerators"
+HOMEPAGE="https://github.com/ROCm/hipBLASLt"
+SRC_URI="https://github.com/ROCm/hipBLASLt/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/hipBLASLt-rocm-${PV}"
+
+LICENSE="MIT"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64"
+
+SUPPORTED_GPUS=( gfx908 gfx90a gfx940 gfx941 gfx942 gfx1100 gfx1101 gfx1200 gfx1201 )
+IUSE_TARGETS=( "${SUPPORTED_GPUS[@]/#/amdgpu_targets_}" )
+IUSE="${IUSE_TARGETS[@]/#/+} benchmark roctracer test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	dev-util/hip:${SLOT}
+	dev-cpp/msgpack-cxx
+	roctracer? ( dev-util/roctracer:${SLOT} )
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="
+	${PYTHON_DEPS}
+	dev-build/rocm-cmake
+	dev-util/hipcc
+	sci-libs/hipBLAS-common:${SLOT}
+	$(python_gen_any_dep '
+		dev-python/msgpack[${PYTHON_USEDEP}]
+		dev-python/pyyaml[${PYTHON_USEDEP}]
+		dev-python/joblib[${PYTHON_USEDEP}]
+	')
+	$(llvm_gen_dep 'llvm-core/clang:${LLVM_SLOT}')
+	test? (
+		dev-cpp/gtest
+		virtual/blas
+		dev-util/rocm-smi:${SLOT}
+	)
+	benchmark? (
+		virtual/blas
+		llvm-runtimes/openmp
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-6.1.1-fix-msgpack-dependency.patch
+	"${FILESDIR}"/${PN}-6.1.1-no-arch.patch
+	"${FILESDIR}"/${PN}-6.1.1-no-git.patch
+	"${FILESDIR}"/${PN}-6.1.1-clang-19.patch
+	"${FILESDIR}"/${PN}-6.1.1-fix-libcxx.patch
+	"${FILESDIR}"/${PN}-6.3.0-no-arch-extra.patch
+	"${FILESDIR}"/${PN}-6.4.1-min-pip-install.patch
+	"${FILESDIR}"/${PN}-6.4.1-headers.patch
+	"${FILESDIR}"/${PN}-6.4.1-libcxx-integrals.patch
+	"${FILESDIR}"/${PN}-6.4.1-gentoopath.patch
+	"${FILESDIR}"/${PN}-6.4.1-upstream-clang.patch
+)
+
+python_check_deps() {
+	python_has_version "dev-python/msgpack[${PYTHON_USEDEP}]" &&
+	python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" &&
+	python_has_version "dev-python/joblib[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+	python-any-r1_pkg_setup
+}
+
+pkg_pretend() {
+	if [[ "${AMDGPU_TARGETS[@]}" = "" ]]; then
+		ewarn "hipBLASLt supports only few GPUs: ${SUPPORTED_GPUS[@]},"
+		ewarn "but none of them were defined in AMDGPU_TARGETS USE_EXPAND variable."
+		ewarn
+		ewarn "Library will continue to be built in \"dummy\" mode,"
+		ewarn "serving as a non-functional placeholder for end-user applications."
+	fi
+}
+
+src_prepare() {
+	local shebangs=($(grep -rl "#!/usr/bin/env python3" tensilelite/Tensile || die))
+	python_fix_shebang -q ${shebangs[*]}
+
+	rocm_use_clang
+	sed -e "s:\${rocm_path}/bin/amdclang++:${CXX}:" \
+		-i library/src/amd_detail/rocblaslt/src/kernels/compile_code_object.sh \
+		-i tensilelite/Tensile/Ops/gen_assembly.sh || die
+
+	# Fix compiler validation (just a validation)
+	sed "s/amdclang/$(basename "$CC")/g" \
+		-i tensilelite/Tensile/Utilities/Toolchain.py || die
+
+	cmake_src_prepare
+}
+
+src_configure() {
+	rocm_use_clang
+
+	# too many warnings
+	append-cxxflags -Wno-explicit-specialization-storage-class
+
+	local targets="$(get_amdgpu_flags)"
+	local build_with_tensile=$([ "${AMDGPU_TARGETS[@]}" = "" ] && echo OFF || echo ON )
+
+	local mycmakeargs=(
+		-DROCM_SYMLINK_LIBS=OFF
+		-DBUILD_WITH_TENSILE="${build_with_tensile}"
+		-DTensile_COMPILER=${CXX}
+		-DAMDGPU_TARGETS="${targets}"
+		-DBUILD_CLIENTS_TESTS=$(usex test ON OFF)
+		-DBUILD_CLIENTS_BENCHMARKS="$(usex benchmark ON OFF)"
+		-DPython_EXECUTABLE="${PYTHON}"
+		-DHIPBLASLT_ENABLE_MARKER="$(usex roctracer ON OFF)"
+		-Wno-dev
+	)
+
+	cmake_src_configure
+}
+
+src_compile() {
+	local -x ROCM_PATH="${EPREFIX}/usr"
+	# set PYTHONPATH to load Tensile from virtualenv, not the system-wide one
+	local -x PYTHONPATH="${S}_build/virtualenv/lib/${EPYTHON}/site-packages"
+	local -x TENSILE_ROCM_ASSEMBLER_PATH="$(get_llvm_prefix)/bin/clang++"
+	# TensileCreateLibrary reads CMAKE_CXX_COMPILER again
+	local -x CMAKE_CXX_COMPILER="$(get_llvm_prefix)/bin/clang++"
+	cmake_src_compile
+}
+
+src_install() {
+	cmake_src_install
+
+	# Stop llvm-strip from removing .strtab section from *.hsaco files,
+	# otherwise rocclr/elf/elf.cpp complains with "failed: null sections(STRTAB)" and crashes
+	dostrip -x /usr/$(get_libdir)/hipblaslt/library/
+}
+
+src_test() {
+	check_amdgpu
+
+	# Expected time for 7900 XTX: 340s (full) or 5s with GTEST_FILTER='*quick*'
+	# Fails in `MatrixTransformTest.MultipleDevices` in dGPU+iGPU combination
+	HIP_VISIBLE_DEVICES=0 cmake_src_test
+}


^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/hipBLASLt/
@ 2025-07-08 19:33 Sam James
  0 siblings, 0 replies; 10+ messages in thread
From: Sam James @ 2025-07-08 19:33 UTC (permalink / raw
  To: gentoo-commits

commit:     d49e7c8127258017ef5c3e8c19a26a46027c9f31
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Tue Jul  8 09:14:06 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jul  8 19:31:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d49e7c81

sci-libs/hipBLASLt: fix compiler validation

Closes: https://bugs.gentoo.org/959702
Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42930
Closes: https://github.com/gentoo/gentoo/pull/42930
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/hipBLASLt/hipBLASLt-6.4.1.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/sci-libs/hipBLASLt/hipBLASLt-6.4.1.ebuild b/sci-libs/hipBLASLt/hipBLASLt-6.4.1.ebuild
index b5d21c519d4f..a2ce9ce18ae0 100644
--- a/sci-libs/hipBLASLt/hipBLASLt-6.4.1.ebuild
+++ b/sci-libs/hipBLASLt/hipBLASLt-6.4.1.ebuild
@@ -90,11 +90,14 @@ src_prepare() {
 	local shebangs=($(grep -rl "#!/usr/bin/env python3" tensilelite/Tensile || die))
 	python_fix_shebang -q ${shebangs[*]}
 
-	sed -e "s:\${rocm_path}/bin/amdclang++:$(get_llvm_prefix)/bin/clang++:" \
+	rocm_use_clang
+	sed -e "s:\${rocm_path}/bin/amdclang++:${CXX}:" \
 		-i library/src/amd_detail/rocblaslt/src/kernels/compile_code_object.sh \
 		-i tensilelite/Tensile/Ops/gen_assembly.sh || die
 
-	sed 's/amdclang/clang/g' -i tensilelite/Tensile/Utilities/Toolchain.py || die
+	# Fix compiler validation (just a validation)
+	sed "s/amdclang/$(basename "$CC")/g" \
+		-i tensilelite/Tensile/Utilities/Toolchain.py || die
 
 	cmake_src_prepare
 }


^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/hipBLASLt/
@ 2025-07-05  7:16 Sam James
  0 siblings, 0 replies; 10+ messages in thread
From: Sam James @ 2025-07-05  7:16 UTC (permalink / raw
  To: gentoo-commits

commit:     c3ee5ea9cbc829835e6f9248f3cd185d65afcb9a
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Sun Jun 22 15:09:59 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul  5 07:14:14 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3ee5ea9

sci-libs/hipBLASLt: improve flag filtration

Bug: https://bugs.gentoo.org/957893
Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42691
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/hipBLASLt/hipBLASLt-6.4.1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-libs/hipBLASLt/hipBLASLt-6.4.1.ebuild b/sci-libs/hipBLASLt/hipBLASLt-6.4.1.ebuild
index 34d0ae2abde6..b5d21c519d4f 100644
--- a/sci-libs/hipBLASLt/hipBLASLt-6.4.1.ebuild
+++ b/sci-libs/hipBLASLt/hipBLASLt-6.4.1.ebuild
@@ -33,6 +33,7 @@ DEPEND="${RDEPEND}"
 BDEPEND="
 	${PYTHON_DEPS}
 	dev-build/rocm-cmake
+	dev-util/hipcc
 	sci-libs/hipBLAS-common:${SLOT}
 	$(python_gen_any_dep '
 		dev-python/msgpack[${PYTHON_USEDEP}]
@@ -99,8 +100,7 @@ src_prepare() {
 }
 
 src_configure() {
-	export CC="$(get_llvm_prefix)/bin/clang" CXX="$(get_llvm_prefix)/bin/clang++"
-	strip-unsupported-flags
+	rocm_use_clang
 
 	# too many warnings
 	append-cxxflags -Wno-explicit-specialization-storage-class


^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/hipBLASLt/
@ 2025-03-04 10:55 Patrick Lauer
  0 siblings, 0 replies; 10+ messages in thread
From: Patrick Lauer @ 2025-03-04 10:55 UTC (permalink / raw
  To: gentoo-commits

commit:     6ef49170010edb8739db8ce82b61cd1aa62b74a8
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Tue Mar  4 10:40:17 2025 +0000
Commit:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Tue Mar  4 10:55:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ef49170

sci-libs/hipBLASLt: add 6.3.3

Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 sci-libs/hipBLASLt/Manifest               |   1 +
 sci-libs/hipBLASLt/hipBLASLt-6.3.3.ebuild | 140 ++++++++++++++++++++++++++++++
 2 files changed, 141 insertions(+)

diff --git a/sci-libs/hipBLASLt/Manifest b/sci-libs/hipBLASLt/Manifest
index 9b8ef0bc3e9c..15ab940e2162 100644
--- a/sci-libs/hipBLASLt/Manifest
+++ b/sci-libs/hipBLASLt/Manifest
@@ -1,3 +1,4 @@
 DIST hipBLASLt-6.1.1.tar.gz 78448557 BLAKE2B 08ac9ce45d7d1e4384a36939af22f65589ed87e25b4db77f5f7ff5fbe65b8070e9c55fbb09db3b7bd49be98981dc8bf939e646ea27571bf1d1ccfa52a50b0f92 SHA512 1aa3a1cb8e9c7f653db66909b38be065b7386b97d4bd6b52ecc6c2bf72c6cdfabde6f12ebc6016b5fa195f979359af875eda8d54ea6772329312cb357bc2ebc5
 DIST hipBLASLt-6.3.1.tar.gz 89385330 BLAKE2B 4bcf083e41ad6f22f61321bd066d79a6a387ea677cdb05f96f474e1b409f0b1cc5dc0c61259d7d6456ced2b77191388e1bd4b260bd7d185875241f55246ed1a8 SHA512 7a6443ab7a66bae1d6273945ea91814b2d5f9846d8276040cda7f43ed7ea0c2cb6063009e7fe092742d396c8d87c2cf62ed4cf8249e936eed69c0cad6db02193
 DIST hipBLASLt-6.3.2.tar.gz 89385514 BLAKE2B 785ee2951b76100f29eed4891cdc3fc58abbee866a9eac7109bc49e56854007d57d15bc6d605a7527ecc685e59500567581d194ede67cff566fba3b582d7b3c4 SHA512 2f4f497a5228162f4fffda9f549f943d26c86d7160a50c0aadc403340cee4466e9f16bd5cfcd386535b7f05cc8d1839a4d146c52761b6eb29e2e53962437e781
+DIST hipBLASLt-6.3.3.tar.gz 89385318 BLAKE2B b307e4c418bda7583efdf5dc646f05368c195f6df0077823ae179efb52a56ba4f13b5fce6a10ff38e0ad593bf5b415fc6e5b4132488b2dbf9da58198af15d230 SHA512 9fb523e614dd790aa3c01337f3d93f9df0a135d25e9efda2375e88818f6097d661e5159336258631cc0a25d923efcddb4b39378bf54c33d0e5a01bba387f1368

diff --git a/sci-libs/hipBLASLt/hipBLASLt-6.3.3.ebuild b/sci-libs/hipBLASLt/hipBLASLt-6.3.3.ebuild
new file mode 100644
index 000000000000..27266b0b717a
--- /dev/null
+++ b/sci-libs/hipBLASLt/hipBLASLt-6.3.3.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ROCM_SKIP_GLOBALS=1
+PYTHON_COMPAT=( python3_{10..13} )
+
+LLVM_COMPAT=( 19 )
+
+inherit cmake flag-o-matic llvm-r1 python-any-r1 rocm
+DESCRIPTION="General matrix-matrix operations library for AMD Instinct accelerators"
+HOMEPAGE="https://github.com/ROCm/hipBLASLt"
+SRC_URI="https://github.com/ROCm/hipBLASLt/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/hipBLASLt-rocm-${PV}"
+
+LICENSE="MIT"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64"
+
+SUPPORTED_GPUS=( gfx908 gfx90a gfx940 gfx941 gfx942 gfx1100 gfx1101 )
+IUSE_TARGETS=( "${SUPPORTED_GPUS[@]/#/amdgpu_targets_}" )
+IUSE="${IUSE_TARGETS[@]/#/+} test benchmark"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	dev-util/hip:${SLOT}
+	dev-cpp/msgpack-cxx
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="
+	dev-build/rocm-cmake
+	sci-libs/hipBLAS-common:${SLOT}
+	$(python_gen_any_dep '
+		dev-python/msgpack[${PYTHON_USEDEP}]
+		dev-python/pyyaml[${PYTHON_USEDEP}]
+		dev-python/joblib[${PYTHON_USEDEP}]
+	')
+	$(llvm_gen_dep 'llvm-core/clang:${LLVM_SLOT}')
+	test? (
+		dev-cpp/gtest
+		virtual/blas
+		dev-util/rocm-smi:${SLOT}
+	)
+	benchmark? (
+		virtual/blas
+		llvm-runtimes/openmp
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-6.1.1-fix-msgpack-dependency.patch
+	"${FILESDIR}"/${PN}-6.1.1-no-arch.patch
+	"${FILESDIR}"/${PN}-6.1.1-no-git.patch
+	"${FILESDIR}"/${PN}-6.1.1-clang-19.patch
+	"${FILESDIR}"/${PN}-6.1.1-fix-libcxx.patch
+	"${FILESDIR}"/${PN}-6.3.0-no-arch-extra.patch
+	"${FILESDIR}"/${PN}-6.3.0-min-pip-install.patch
+)
+
+python_check_deps() {
+	python_has_version "dev-python/msgpack[${PYTHON_USEDEP}]" &&
+	python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" &&
+	python_has_version "dev-python/joblib[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+	python-any-r1_pkg_setup
+}
+
+pkg_pretend() {
+	if [[ "${AMDGPU_TARGETS[@]}" = "" ]]; then
+		ewarn "hipBLASLt supports only few GPUs: ${SUPPORTED_GPUS[@]},"
+		ewarn "but none of them were defined in AMDGPU_TARGETS USE_EXPAND variable."
+		ewarn
+		ewarn "Library will continue to be built in \"dummy\" mode,"
+		ewarn "serving as a non-functional placeholder for end-user applications."
+	fi
+}
+
+src_prepare() {
+	sed -e "s,\@LLVM_PATH\@,$(get_llvm_prefix),g" \
+		"${FILESDIR}"/${PN}-6.1.1-gentoopath.patch > "${S}"/gentoopath.patch || die
+	eapply "${S}"/gentoopath.patch
+
+	local shebangs=($(grep -rl "#!/usr/bin/env python3" tensilelite/Tensile || die))
+	python_fix_shebang -q ${shebangs[*]}
+
+	sed -e "s:\${rocm_path}/bin/amdclang++:$(get_llvm_prefix)/bin/clang++:" \
+		-i library/src/amd_detail/rocblaslt/src/kernels/compile_code_object.sh || die
+
+	cmake_src_prepare
+}
+
+src_configure() {
+	rocm_use_hipcc
+
+	# too many warnings
+	append-cxxflags -Wno-explicit-specialization-storage-class
+
+	local targets="$(get_amdgpu_flags)"
+	local build_with_tensile=$([ "${AMDGPU_TARGETS[@]}" = "" ] && echo OFF || echo ON )
+
+	local mycmakeargs=(
+		-DROCM_SYMLINK_LIBS=OFF
+		-DBUILD_WITH_TENSILE="${build_with_tensile}"
+		-DAMDGPU_TARGETS="${targets}"
+		-DBUILD_CLIENTS_TESTS=$(usex test ON OFF)
+		-DBUILD_CLIENTS_BENCHMARKS="$(usex benchmark ON OFF)"
+		-Wno-dev
+	)
+
+	cmake_src_configure
+}
+
+src_compile() {
+	local -x ROCM_PATH="${EPREFIX}/usr"
+	# set PYTHONPATH to load Tensile from virtualenv, not the system-wide one
+	local -x PYTHONPATH="${S}_build/virtualenv/lib/${EPYTHON}/site-packages"
+	local -x TENSILE_ROCM_ASSEMBLER_PATH="$(get_llvm_prefix)/bin/clang++"
+	# TensileCreateLibrary reads CMAKE_CXX_COMPILER again
+	local -x CMAKE_CXX_COMPILER="$(get_llvm_prefix)/bin/clang++"
+	cmake_src_compile
+}
+
+src_install() {
+	cmake_src_install
+
+	# Stop llvm-strip from removing .strtab section from *.hsaco files,
+	# otherwise rocclr/elf/elf.cpp complains with "failed: null sections(STRTAB)" and crashes
+	dostrip -x /usr/$(get_libdir)/hipblaslt/library/
+}
+
+src_test() {
+	check_amdgpu
+
+	# Expected time for 7900 XTX: 340s (full) or 5s with GTEST_FILTER='*quick*'
+	cmake_src_test
+}


^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/hipBLASLt/
@ 2025-02-08 14:57 Patrick Lauer
  0 siblings, 0 replies; 10+ messages in thread
From: Patrick Lauer @ 2025-02-08 14:57 UTC (permalink / raw
  To: gentoo-commits

commit:     c6cb0eba38cbbb7e7def07e5217059a268d60e24
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  8 14:57:01 2025 +0000
Commit:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Sat Feb  8 14:57:20 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6cb0eba

sci-libs/hipBLASLt: add 6.3.2

Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 sci-libs/hipBLASLt/Manifest               |   1 +
 sci-libs/hipBLASLt/hipBLASLt-6.3.2.ebuild | 140 ++++++++++++++++++++++++++++++
 2 files changed, 141 insertions(+)

diff --git a/sci-libs/hipBLASLt/Manifest b/sci-libs/hipBLASLt/Manifest
index 14f0ac5af33d..9b8ef0bc3e9c 100644
--- a/sci-libs/hipBLASLt/Manifest
+++ b/sci-libs/hipBLASLt/Manifest
@@ -1,2 +1,3 @@
 DIST hipBLASLt-6.1.1.tar.gz 78448557 BLAKE2B 08ac9ce45d7d1e4384a36939af22f65589ed87e25b4db77f5f7ff5fbe65b8070e9c55fbb09db3b7bd49be98981dc8bf939e646ea27571bf1d1ccfa52a50b0f92 SHA512 1aa3a1cb8e9c7f653db66909b38be065b7386b97d4bd6b52ecc6c2bf72c6cdfabde6f12ebc6016b5fa195f979359af875eda8d54ea6772329312cb357bc2ebc5
 DIST hipBLASLt-6.3.1.tar.gz 89385330 BLAKE2B 4bcf083e41ad6f22f61321bd066d79a6a387ea677cdb05f96f474e1b409f0b1cc5dc0c61259d7d6456ced2b77191388e1bd4b260bd7d185875241f55246ed1a8 SHA512 7a6443ab7a66bae1d6273945ea91814b2d5f9846d8276040cda7f43ed7ea0c2cb6063009e7fe092742d396c8d87c2cf62ed4cf8249e936eed69c0cad6db02193
+DIST hipBLASLt-6.3.2.tar.gz 89385514 BLAKE2B 785ee2951b76100f29eed4891cdc3fc58abbee866a9eac7109bc49e56854007d57d15bc6d605a7527ecc685e59500567581d194ede67cff566fba3b582d7b3c4 SHA512 2f4f497a5228162f4fffda9f549f943d26c86d7160a50c0aadc403340cee4466e9f16bd5cfcd386535b7f05cc8d1839a4d146c52761b6eb29e2e53962437e781

diff --git a/sci-libs/hipBLASLt/hipBLASLt-6.3.2.ebuild b/sci-libs/hipBLASLt/hipBLASLt-6.3.2.ebuild
new file mode 100644
index 000000000000..27266b0b717a
--- /dev/null
+++ b/sci-libs/hipBLASLt/hipBLASLt-6.3.2.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ROCM_SKIP_GLOBALS=1
+PYTHON_COMPAT=( python3_{10..13} )
+
+LLVM_COMPAT=( 19 )
+
+inherit cmake flag-o-matic llvm-r1 python-any-r1 rocm
+DESCRIPTION="General matrix-matrix operations library for AMD Instinct accelerators"
+HOMEPAGE="https://github.com/ROCm/hipBLASLt"
+SRC_URI="https://github.com/ROCm/hipBLASLt/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/hipBLASLt-rocm-${PV}"
+
+LICENSE="MIT"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64"
+
+SUPPORTED_GPUS=( gfx908 gfx90a gfx940 gfx941 gfx942 gfx1100 gfx1101 )
+IUSE_TARGETS=( "${SUPPORTED_GPUS[@]/#/amdgpu_targets_}" )
+IUSE="${IUSE_TARGETS[@]/#/+} test benchmark"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	dev-util/hip:${SLOT}
+	dev-cpp/msgpack-cxx
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="
+	dev-build/rocm-cmake
+	sci-libs/hipBLAS-common:${SLOT}
+	$(python_gen_any_dep '
+		dev-python/msgpack[${PYTHON_USEDEP}]
+		dev-python/pyyaml[${PYTHON_USEDEP}]
+		dev-python/joblib[${PYTHON_USEDEP}]
+	')
+	$(llvm_gen_dep 'llvm-core/clang:${LLVM_SLOT}')
+	test? (
+		dev-cpp/gtest
+		virtual/blas
+		dev-util/rocm-smi:${SLOT}
+	)
+	benchmark? (
+		virtual/blas
+		llvm-runtimes/openmp
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-6.1.1-fix-msgpack-dependency.patch
+	"${FILESDIR}"/${PN}-6.1.1-no-arch.patch
+	"${FILESDIR}"/${PN}-6.1.1-no-git.patch
+	"${FILESDIR}"/${PN}-6.1.1-clang-19.patch
+	"${FILESDIR}"/${PN}-6.1.1-fix-libcxx.patch
+	"${FILESDIR}"/${PN}-6.3.0-no-arch-extra.patch
+	"${FILESDIR}"/${PN}-6.3.0-min-pip-install.patch
+)
+
+python_check_deps() {
+	python_has_version "dev-python/msgpack[${PYTHON_USEDEP}]" &&
+	python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" &&
+	python_has_version "dev-python/joblib[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+	python-any-r1_pkg_setup
+}
+
+pkg_pretend() {
+	if [[ "${AMDGPU_TARGETS[@]}" = "" ]]; then
+		ewarn "hipBLASLt supports only few GPUs: ${SUPPORTED_GPUS[@]},"
+		ewarn "but none of them were defined in AMDGPU_TARGETS USE_EXPAND variable."
+		ewarn
+		ewarn "Library will continue to be built in \"dummy\" mode,"
+		ewarn "serving as a non-functional placeholder for end-user applications."
+	fi
+}
+
+src_prepare() {
+	sed -e "s,\@LLVM_PATH\@,$(get_llvm_prefix),g" \
+		"${FILESDIR}"/${PN}-6.1.1-gentoopath.patch > "${S}"/gentoopath.patch || die
+	eapply "${S}"/gentoopath.patch
+
+	local shebangs=($(grep -rl "#!/usr/bin/env python3" tensilelite/Tensile || die))
+	python_fix_shebang -q ${shebangs[*]}
+
+	sed -e "s:\${rocm_path}/bin/amdclang++:$(get_llvm_prefix)/bin/clang++:" \
+		-i library/src/amd_detail/rocblaslt/src/kernels/compile_code_object.sh || die
+
+	cmake_src_prepare
+}
+
+src_configure() {
+	rocm_use_hipcc
+
+	# too many warnings
+	append-cxxflags -Wno-explicit-specialization-storage-class
+
+	local targets="$(get_amdgpu_flags)"
+	local build_with_tensile=$([ "${AMDGPU_TARGETS[@]}" = "" ] && echo OFF || echo ON )
+
+	local mycmakeargs=(
+		-DROCM_SYMLINK_LIBS=OFF
+		-DBUILD_WITH_TENSILE="${build_with_tensile}"
+		-DAMDGPU_TARGETS="${targets}"
+		-DBUILD_CLIENTS_TESTS=$(usex test ON OFF)
+		-DBUILD_CLIENTS_BENCHMARKS="$(usex benchmark ON OFF)"
+		-Wno-dev
+	)
+
+	cmake_src_configure
+}
+
+src_compile() {
+	local -x ROCM_PATH="${EPREFIX}/usr"
+	# set PYTHONPATH to load Tensile from virtualenv, not the system-wide one
+	local -x PYTHONPATH="${S}_build/virtualenv/lib/${EPYTHON}/site-packages"
+	local -x TENSILE_ROCM_ASSEMBLER_PATH="$(get_llvm_prefix)/bin/clang++"
+	# TensileCreateLibrary reads CMAKE_CXX_COMPILER again
+	local -x CMAKE_CXX_COMPILER="$(get_llvm_prefix)/bin/clang++"
+	cmake_src_compile
+}
+
+src_install() {
+	cmake_src_install
+
+	# Stop llvm-strip from removing .strtab section from *.hsaco files,
+	# otherwise rocclr/elf/elf.cpp complains with "failed: null sections(STRTAB)" and crashes
+	dostrip -x /usr/$(get_libdir)/hipblaslt/library/
+}
+
+src_test() {
+	check_amdgpu
+
+	# Expected time for 7900 XTX: 340s (full) or 5s with GTEST_FILTER='*quick*'
+	cmake_src_test
+}


^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/hipBLASLt/
@ 2025-01-26 14:00 Sam James
  0 siblings, 0 replies; 10+ messages in thread
From: Sam James @ 2025-01-26 14:00 UTC (permalink / raw
  To: gentoo-commits

commit:     f05587ddb3e67ce7a90186b48e47d7daaf888304
Author:     Yiyang Wu <xgreenlandforwyy <AT> gmail <DOT> com>
AuthorDate: Sun Jan 12 13:35:35 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 26 13:59:29 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f05587dd

sci-libs/hipBLASLt: Fix double prefix on Gentoo Prefix

Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/hipBLASLt/Manifest                  | 1 +
 sci-libs/hipBLASLt/hipBLASLt-6.1.1-r1.ebuild | 6 +++---
 sci-libs/hipBLASLt/hipBLASLt-6.3.0.ebuild    | 4 ++--
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/sci-libs/hipBLASLt/Manifest b/sci-libs/hipBLASLt/Manifest
index 3287f1b48d5e..c2fe4e9b716a 100644
--- a/sci-libs/hipBLASLt/Manifest
+++ b/sci-libs/hipBLASLt/Manifest
@@ -1,2 +1,3 @@
 DIST hipBLASLt-6.1.1.tar.gz 78448557 BLAKE2B 08ac9ce45d7d1e4384a36939af22f65589ed87e25b4db77f5f7ff5fbe65b8070e9c55fbb09db3b7bd49be98981dc8bf939e646ea27571bf1d1ccfa52a50b0f92 SHA512 1aa3a1cb8e9c7f653db66909b38be065b7386b97d4bd6b52ecc6c2bf72c6cdfabde6f12ebc6016b5fa195f979359af875eda8d54ea6772329312cb357bc2ebc5
 DIST hipBLASLt-6.3.0.tar.gz 89379233 BLAKE2B 0f63b1f0fb4686b58b102ad2d2b9baa272b07d203736c3972216cbd75eda38ffaf63939d8c25aadb416348a7b1c9b8bac27a3711121d5e584baa7a404babdd2b SHA512 b86613f818a1819668b3fce69422add97d36b09506d1109e3b739a6f86b8463aef9c8ef2434dd603a956f34e76e3f8fb4ddb2b98d5d2e4028f6f44b62aa6a48b
+DIST hipBLASLt-6.3.1.tar.gz 89385330 BLAKE2B 4bcf083e41ad6f22f61321bd066d79a6a387ea677cdb05f96f474e1b409f0b1cc5dc0c61259d7d6456ced2b77191388e1bd4b260bd7d185875241f55246ed1a8 SHA512 7a6443ab7a66bae1d6273945ea91814b2d5f9846d8276040cda7f43ed7ea0c2cb6063009e7fe092742d396c8d87c2cf62ed4cf8249e936eed69c0cad6db02193

diff --git a/sci-libs/hipBLASLt/hipBLASLt-6.1.1-r1.ebuild b/sci-libs/hipBLASLt/hipBLASLt-6.1.1-r1.ebuild
index b0aed5de521f..5fb50338cee8 100644
--- a/sci-libs/hipBLASLt/hipBLASLt-6.1.1-r1.ebuild
+++ b/sci-libs/hipBLASLt/hipBLASLt-6.1.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -9,7 +9,7 @@ PYTHON_COMPAT=( python3_{10..13} )
 # gfx941 and gfx942 assembly uses directives of LLVM >= 18.1.0
 LLVM_COMPAT=( 18 )
 
-inherit cmake python-any-r1 llvm-r1 prefix rocm
+inherit cmake python-any-r1 llvm-r1 rocm
 DESCRIPTION="General matrix-matrix operations library for AMD Instinct accelerators"
 HOMEPAGE="https://github.com/ROCm/hipBLASLt"
 SRC_URI="https://github.com/ROCm/hipBLASLt/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
@@ -75,7 +75,7 @@ pkg_pretend() {
 src_prepare() {
 	sed -e "s,\@LLVM_PATH\@,$(get_llvm_prefix),g" \
 		"${FILESDIR}"/${PN}-6.1.1-gentoopath.patch > "${S}"/gentoopath.patch || die
-	eapply $(prefixify_ro "${S}"/gentoopath.patch)
+	eapply "${S}"/gentoopath.patch
 
 	local shebangs=($(grep -rl "#!/usr/bin/env python3" tensilelite/Tensile || die))
 	python_fix_shebang -q ${shebangs[*]}

diff --git a/sci-libs/hipBLASLt/hipBLASLt-6.3.0.ebuild b/sci-libs/hipBLASLt/hipBLASLt-6.3.0.ebuild
index 3a2f44a97a64..1da8de2495f6 100644
--- a/sci-libs/hipBLASLt/hipBLASLt-6.3.0.ebuild
+++ b/sci-libs/hipBLASLt/hipBLASLt-6.3.0.ebuild
@@ -8,7 +8,7 @@ PYTHON_COMPAT=( python3_{10..13} )
 
 LLVM_COMPAT=( 19 )
 
-inherit cmake flag-o-matic llvm-r1 prefix python-any-r1 rocm
+inherit cmake flag-o-matic llvm-r1 python-any-r1 rocm
 DESCRIPTION="General matrix-matrix operations library for AMD Instinct accelerators"
 HOMEPAGE="https://github.com/ROCm/hipBLASLt"
 SRC_URI="https://github.com/ROCm/hipBLASLt/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
@@ -78,7 +78,7 @@ pkg_pretend() {
 src_prepare() {
 	sed -e "s,\@LLVM_PATH\@,$(get_llvm_prefix),g" \
 		"${FILESDIR}"/${PN}-6.1.1-gentoopath.patch > "${S}"/gentoopath.patch || die
-	eapply $(prefixify_ro "${S}"/gentoopath.patch)
+	eapply "${S}"/gentoopath.patch
 
 	local shebangs=($(grep -rl "#!/usr/bin/env python3" tensilelite/Tensile || die))
 	python_fix_shebang -q ${shebangs[*]}


^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/hipBLASLt/
@ 2025-01-26 14:00 Sam James
  0 siblings, 0 replies; 10+ messages in thread
From: Sam James @ 2025-01-26 14:00 UTC (permalink / raw
  To: gentoo-commits

commit:     ace4fcb9a6ecc7ed963c7d2d71126a7c327fa1e8
Author:     Yiyang Wu <xgreenlandforwyy <AT> gmail <DOT> com>
AuthorDate: Sun Jan 12 13:47:09 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 26 13:59:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ace4fcb9

sci-libs/hipBLASLt: add 6.3.1, drop 6.3.0

Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/hipBLASLt/Manifest                                        | 1 -
 .../hipBLASLt/{hipBLASLt-6.3.0.ebuild => hipBLASLt-6.3.1.ebuild}   | 7 ++++++-
 sci-libs/hipBLASLt/metadata.xml                                    | 3 +++
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/sci-libs/hipBLASLt/Manifest b/sci-libs/hipBLASLt/Manifest
index c2fe4e9b716a..14f0ac5af33d 100644
--- a/sci-libs/hipBLASLt/Manifest
+++ b/sci-libs/hipBLASLt/Manifest
@@ -1,3 +1,2 @@
 DIST hipBLASLt-6.1.1.tar.gz 78448557 BLAKE2B 08ac9ce45d7d1e4384a36939af22f65589ed87e25b4db77f5f7ff5fbe65b8070e9c55fbb09db3b7bd49be98981dc8bf939e646ea27571bf1d1ccfa52a50b0f92 SHA512 1aa3a1cb8e9c7f653db66909b38be065b7386b97d4bd6b52ecc6c2bf72c6cdfabde6f12ebc6016b5fa195f979359af875eda8d54ea6772329312cb357bc2ebc5
-DIST hipBLASLt-6.3.0.tar.gz 89379233 BLAKE2B 0f63b1f0fb4686b58b102ad2d2b9baa272b07d203736c3972216cbd75eda38ffaf63939d8c25aadb416348a7b1c9b8bac27a3711121d5e584baa7a404babdd2b SHA512 b86613f818a1819668b3fce69422add97d36b09506d1109e3b739a6f86b8463aef9c8ef2434dd603a956f34e76e3f8fb4ddb2b98d5d2e4028f6f44b62aa6a48b
 DIST hipBLASLt-6.3.1.tar.gz 89385330 BLAKE2B 4bcf083e41ad6f22f61321bd066d79a6a387ea677cdb05f96f474e1b409f0b1cc5dc0c61259d7d6456ced2b77191388e1bd4b260bd7d185875241f55246ed1a8 SHA512 7a6443ab7a66bae1d6273945ea91814b2d5f9846d8276040cda7f43ed7ea0c2cb6063009e7fe092742d396c8d87c2cf62ed4cf8249e936eed69c0cad6db02193

diff --git a/sci-libs/hipBLASLt/hipBLASLt-6.3.0.ebuild b/sci-libs/hipBLASLt/hipBLASLt-6.3.1.ebuild
similarity index 96%
rename from sci-libs/hipBLASLt/hipBLASLt-6.3.0.ebuild
rename to sci-libs/hipBLASLt/hipBLASLt-6.3.1.ebuild
index 1da8de2495f6..27266b0b717a 100644
--- a/sci-libs/hipBLASLt/hipBLASLt-6.3.0.ebuild
+++ b/sci-libs/hipBLASLt/hipBLASLt-6.3.1.ebuild
@@ -20,7 +20,7 @@ KEYWORDS="~amd64"
 
 SUPPORTED_GPUS=( gfx908 gfx90a gfx940 gfx941 gfx942 gfx1100 gfx1101 )
 IUSE_TARGETS=( "${SUPPORTED_GPUS[@]/#/amdgpu_targets_}" )
-IUSE="${IUSE_TARGETS[@]/#/+} test"
+IUSE="${IUSE_TARGETS[@]/#/+} test benchmark"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
@@ -43,6 +43,10 @@ BDEPEND="
 		virtual/blas
 		dev-util/rocm-smi:${SLOT}
 	)
+	benchmark? (
+		virtual/blas
+		llvm-runtimes/openmp
+	)
 "
 
 PATCHES=(
@@ -103,6 +107,7 @@ src_configure() {
 		-DBUILD_WITH_TENSILE="${build_with_tensile}"
 		-DAMDGPU_TARGETS="${targets}"
 		-DBUILD_CLIENTS_TESTS=$(usex test ON OFF)
+		-DBUILD_CLIENTS_BENCHMARKS="$(usex benchmark ON OFF)"
 		-Wno-dev
 	)
 

diff --git a/sci-libs/hipBLASLt/metadata.xml b/sci-libs/hipBLASLt/metadata.xml
index da84ad53885c..2be6f3bc6ac6 100644
--- a/sci-libs/hipBLASLt/metadata.xml
+++ b/sci-libs/hipBLASLt/metadata.xml
@@ -11,4 +11,7 @@
   <upstream>
     <remote-id type="github">ROCm/hipBLASLt</remote-id>
   </upstream>
+  <use>
+    <flag name="benchmark">Build and install rocblas-bench.</flag>
+  </use>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-10-29 10:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-21 20:34 [gentoo-commits] repo/gentoo:master commit in: sci-libs/hipBLASLt/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2025-10-29 10:35 Sam James
2025-09-06 15:13 Sam James
2025-08-10  6:07 Patrick Lauer
2025-07-08 19:33 Sam James
2025-07-05  7:16 Sam James
2025-03-04 10:55 Patrick Lauer
2025-02-08 14:57 Patrick Lauer
2025-01-26 14:00 Sam James
2025-01-26 14:00 Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox