public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrick Lauer" <patrick@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocBLAS/
Date: Sun, 10 Aug 2025 06:07:14 +0000 (UTC)	[thread overview]
Message-ID: <1754806029.5db4e52785ddc9c3ecbac64bf1d78e23a654e113.patrick@gentoo> (raw)

commit:     5db4e52785ddc9c3ecbac64bf1d78e23a654e113
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 10 06:03:50 2025 +0000
Commit:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Sun Aug 10 06:07:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5db4e527

sci-libs/rocBLAS: add 6.4.3

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

 sci-libs/rocBLAS/Manifest             |   1 +
 sci-libs/rocBLAS/rocBLAS-6.4.3.ebuild | 127 ++++++++++++++++++++++++++++++++++
 2 files changed, 128 insertions(+)

diff --git a/sci-libs/rocBLAS/Manifest b/sci-libs/rocBLAS/Manifest
index d0c613819ba8..ef3b396f24c8 100644
--- a/sci-libs/rocBLAS/Manifest
+++ b/sci-libs/rocBLAS/Manifest
@@ -3,3 +3,4 @@ DIST rocm-rocBLAS-6.1.1.tar.gz 100103895 BLAKE2B df89a21e47730714b80c62717a86d65
 DIST rocm-rocBLAS-6.3.2.tar.gz 57909504 BLAKE2B 0ed000a10c9e71465f83fb9abdb9a745c82bf32552e3d86c61bf0c802f3728f7fd4c47fbf677d01aa35c457dc5281c916ca80fdc033b2752afd6733aefa4653f SHA512 ecfb6c68b0a44ddae0e4e6cf5c41c0c33a9685c590004ffe48fdb163bd059d534181d3faed2a23142078c5f621b1955c91725357c3e8e0f9307b139b19af46fd
 DIST rocm-rocBLAS-6.3.3.tar.gz 57909385 BLAKE2B a51274e2895419cc517ac24a0235c90f3b2551945b6936789abc78a08c8dde151de6d853d6378a702138227604af4cc185bde3acb5bf8999e09699d293bb2b85 SHA512 fcc8718e0c3dde8715f758e83f3a1ca45dde88ac56680e7723e2041dd3c1d7b9f575b1686552d04e7ef12b57188164c8abb5a6e4c568ade03d534edc30846c9e
 DIST rocm-rocBLAS-6.4.1.tar.gz 57975103 BLAKE2B 21b62ed65f2e30586eb24ca3bf151bb846c3e617f6d10ded91f6a0dda3d1d3c121176634cc97cc90718e41a97b42164920085e5e126dba8c06a928a0ad1eca3a SHA512 fe25e68c7d686f30723b3e136dd4db4200a84bfc808a840f1dc21cb673dd89541fd1a4524fa5559cb21c3bb19c00f7dcbe2fa4c59bc9b8a0a4ee2dd19193ad68
+DIST rocm-rocBLAS-6.4.3.tar.gz 57989956 BLAKE2B 36ed966b9ebeabae20510a20ed5e0503254cddbac25535297baaca6ac52decac2598bcb85c73a720737dd959fc64c2ee542b3b8ed59ae85980aeaf6dbc093681 SHA512 6273122eca037c22e44d56a3c09e04383c2f59d64342b36ac65430ad9f9a963c70b4c5477eb615a31daaf0deea1aedd11b88f2d66bcbada89504cb48cf2c264f

diff --git a/sci-libs/rocBLAS/rocBLAS-6.4.3.ebuild b/sci-libs/rocBLAS/rocBLAS-6.4.3.ebuild
new file mode 100644
index 000000000000..83a3cc8fa055
--- /dev/null
+++ b/sci-libs/rocBLAS/rocBLAS-6.4.3.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DOCS_BUILDER="doxygen"
+DOCS_DIR="docs/doxygen"
+DOCS_DEPEND="media-gfx/graphviz"
+LLVM_COMPAT=( 20 )
+ROCM_VERSION=${PV}
+
+inherit cmake docs edo flag-o-matic multiprocessing rocm llvm-r1
+
+DESCRIPTION="AMD's library for BLAS on ROCm"
+HOMEPAGE="https://github.com/ROCm/rocBLAS"
+SRC_URI="https://github.com/ROCm/rocBLAS/archive/rocm-${PV}.tar.gz -> rocm-${P}.tar.gz"
+S="${WORKDIR}/${PN}-rocm-${PV}"
+
+LICENSE="BSD"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64"
+IUSE="benchmark hipblaslt test video_cards_amdgpu"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${ROCM_REQUIRED_USE}"
+
+BDEPEND="
+	>=dev-build/rocm-cmake-5.3
+	video_cards_amdgpu? (
+		dev-util/Tensile:${SLOT}
+	)
+	hipblaslt? ( sci-libs/hipBLASLt:${SLOT} )
+	test? ( dev-cpp/gtest )
+"
+
+DEPEND="
+	>=dev-cpp/msgpack-cxx-6.0.0
+	dev-util/hip:${SLOT}
+	dev-util/roctracer:${SLOT}
+	test? (
+		virtual/blas
+		dev-cpp/gtest
+		llvm-runtimes/openmp
+	)
+	benchmark? (
+		virtual/blas
+		dev-cpp/gtest
+		llvm-runtimes/openmp
+	)
+"
+
+QA_FLAGS_IGNORED="/usr/lib64/rocblas/library/.*"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-5.4.2-add-missing-header.patch
+	"${FILESDIR}"/${PN}-5.4.2-link-cblas.patch
+	"${FILESDIR}"/${PN}-6.0.2-expand-isa-compatibility.patch
+	"${FILESDIR}"/${PN}-6.3.0-no-git.patch
+	"${FILESDIR}"/${PN}-6.3.0-find-cblas.patch
+)
+
+src_prepare() {
+	cmake_src_prepare
+	sed -e "s:,-rpath=.*\":\":" -i clients/CMakeLists.txt || die
+}
+
+src_configure() {
+	llvm_prepend_path "${LLVM_SLOT}"
+	rocm_use_clang
+
+	# too many warnings
+	append-cxxflags -Wno-explicit-specialization-storage-class -Wno-unused-value
+
+	local mycmakeargs=(
+		-DCMAKE_SKIP_RPATH=ON
+		-DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF
+		-DROCM_SYMLINK_LIBS=OFF
+		-DAMDGPU_TARGETS="$(get_amdgpu_flags)"
+		-DBUILD_WITH_TENSILE="$(usex video_cards_amdgpu)"
+		-DCMAKE_INSTALL_INCLUDEDIR="include/rocblas"
+		-DBUILD_CLIENTS_SAMPLES=OFF
+		-DBUILD_CLIENTS_TESTS="$(usex test ON OFF)"
+		-DBUILD_CLIENTS_BENCHMARKS="$(usex benchmark ON OFF)"
+		-DBUILD_WITH_PIP=OFF
+		-DBUILD_WITH_HIPBLASLT="$(usex hipblaslt ON OFF)"
+		-DLINK_BLIS=OFF
+		-Wno-dev
+	)
+
+	if usex video_cards_amdgpu; then
+		mycmakeargs+=(
+			-DTensile_COMPILER="hipcc"
+			-DTensile_ROOT="${EPREFIX}/usr/share/Tensile"
+			-DTensile_CPU_THREADS="$(makeopts_jobs)"
+		)
+	fi
+
+	cmake_src_configure
+}
+
+src_compile() {
+	docs_compile
+	cmake_src_compile
+}
+
+src_test() {
+	check_amdgpu
+	cd "${BUILD_DIR}"/clients/staging || die
+	export ROCBLAS_TEST_TIMEOUT=3600 ROCBLAS_TENSILE_LIBPATH="${BUILD_DIR}/Tensile/library"
+	export LD_LIBRARY_PATH="${BUILD_DIR}/clients:${BUILD_DIR}/library/src"
+
+	# `--gtest_filter=*quick*:*pre_checkin*-*known_bug*` is >1h on 7900XTX
+	edob ./rocblas-test --yaml rocblas_smoke.yaml
+}
+
+src_install() {
+	cmake_src_install
+
+	if use benchmark; then
+		cd "${BUILD_DIR}" || die
+		dolib.a clients/librocblas_fortran_client.a
+		dobin clients/staging/rocblas-bench
+	fi
+
+	# 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)/rocblas/library/"
+}


             reply	other threads:[~2025-08-10  6:07 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-10  6:07 Patrick Lauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-10-29 19:24 [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocBLAS/ Sam James
2025-10-21 20:34 Sam James
2025-10-12 13:08 Andreas Sturmlechner
2025-10-11 18:14 Andreas Sturmlechner
2025-09-06 15:13 Sam James
2025-07-05  7:16 Sam James
2025-06-15  5:27 Patrick Lauer
2025-04-12 20:18 Sam James
2025-04-06  2:27 Benda XU
2025-03-04 10:55 Patrick Lauer
2025-02-08 10:07 Patrick Lauer
2025-01-06 10:51 Sam James
2024-11-09 21:08 Patrick Lauer
2024-09-09 18:20 Sam James
2024-03-08 19:22 Sam James
2024-03-08 19:22 Sam James
2024-03-08 19:22 Sam James
2023-11-27 14:35 Benda XU
2023-07-30  7:49 Benda XU
2023-03-30 22:41 Marek Szuba
2023-02-24 16:50 Marek Szuba
2023-02-07 20:13 Marek Szuba
2023-01-31 14:30 Benda XU
2022-10-15 15:01 Sam James
2022-09-22  1:08 Benda XU
2022-08-06 14:23 Benda XU
2022-03-05 20:51 Andrew Ammerlaan
2022-03-05 20:51 Andrew Ammerlaan
2022-03-05 20:51 Andrew Ammerlaan
2021-12-26  0:20 Sam James
2021-09-11 13:34 Ulrich Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1754806029.5db4e52785ddc9c3ecbac64bf1d78e23a654e113.patrick@gentoo \
    --to=patrick@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox