From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EA4D81581CA for ; Sat, 14 Jun 2025 22:42:38 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id C94F7342514 for ; Sat, 14 Jun 2025 22:42:38 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 252E21104DE; Sat, 14 Jun 2025 22:42:34 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 1796B1104DE for ; Sat, 14 Jun 2025 22:42:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8E24F3424F3 for ; Sat, 14 Jun 2025 22:42:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 05E2C29B0 for ; Sat, 14 Jun 2025 22:42:32 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1749940624.a304b48365dd8c6efb4e441478df25459fb44ea2.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocWMMA/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/rocWMMA/Manifest sci-libs/rocWMMA/rocWMMA-6.4.1.ebuild X-VCS-Directories: sci-libs/rocWMMA/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a304b48365dd8c6efb4e441478df25459fb44ea2 X-VCS-Branch: master Date: Sat, 14 Jun 2025 22:42:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b5fe8b44-2dd7-4cb5-bfac-ab27befcca5b X-Archives-Hash: 0010b09cf3d94cf374bbe160222ec447 commit: a304b48365dd8c6efb4e441478df25459fb44ea2 Author: Sv. Lockal gmail com> AuthorDate: Wed Jun 11 02:30:25 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jun 14 22:37:04 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a304b483 sci-libs/rocWMMA: add 6.4.1 Signed-off-by: Sv. Lockal gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42554 Signed-off-by: Sam James gentoo.org> sci-libs/rocWMMA/Manifest | 1 + sci-libs/rocWMMA/rocWMMA-6.4.1.ebuild | 74 +++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/sci-libs/rocWMMA/Manifest b/sci-libs/rocWMMA/Manifest index 66c86f7a41c1..893c80c5f815 100644 --- a/sci-libs/rocWMMA/Manifest +++ b/sci-libs/rocWMMA/Manifest @@ -2,3 +2,4 @@ DIST rocWMMA-5.7.1.tar.gz 3163060 BLAKE2B 47ca55c0cd388ca51ad3843e656a31ce04d9e0 DIST rocWMMA-6.1.1.tar.gz 3189782 BLAKE2B fd96d8f3ba8f21ee3544d532a59ffdefa1aefc94d73401f48d470f7f699e28771d5495e98c1ee316d8379167b70b945220be6670dee2757a62af162276a2fb0f SHA512 db2bfe805a4f33c48ee98c821efe0b261eca474af9e954843c83faa3335459bfe635326ba2cfc7b8b8ece2cf0f2c418f49ff6aa81537f8d3747cc729738a6b18 DIST rocWMMA-6.3.2.tar.gz 3225614 BLAKE2B ee4c8ba96d5603c1eb029b473a8ab7c80bad0917be58d2a0d3673d84a2ccd743e3f9ee1487c49a866c685426cb1486601de0d94470f0d2de09fcde47bb063353 SHA512 01a3db5234d747273eb925db3c803651bf475d3685f7e0488be880bddceaa008f1988e476d465aba9564e95d5d5c370320d0465605e02ff88e9e7bd67d68e27d DIST rocWMMA-6.3.3.tar.gz 3225632 BLAKE2B ff3fc4b8d980233052236c4850346c171147d25b5c0e32d81271f22eb1b844150f3998e10cfb5d01797cb8d03630406226eb33ce71d9c6004b0aacc4e40da772 SHA512 e775b1e540baaa67caf65b6bb1815fab860b28e3431a52e8158afab5c4b358407ca4085e9bb68eeb9117f7147d9872baa47fac1bcefac4fc87982c543ce35c9b +DIST rocWMMA-6.4.1.tar.gz 3284017 BLAKE2B 9ff4b3079695b3ee00ab3ddb80de8eed14e03b82161b8d3e9d0dc7ed78f741da014184db0c6a10c26849c5fc619e3e45e08473043dac2ea06f730d2cb3df80c2 SHA512 a3b282b34dca5314b0d5695c7129bbcd456d84f506952f8588fbeed0d94c49d48bf074544f0378a6a59e7988ba4ea97e3329649d07dd88a3d923ee5edf1a81b6 diff --git a/sci-libs/rocWMMA/rocWMMA-6.4.1.ebuild b/sci-libs/rocWMMA/rocWMMA-6.4.1.ebuild new file mode 100644 index 000000000000..f6aafe273485 --- /dev/null +++ b/sci-libs/rocWMMA/rocWMMA-6.4.1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ROCM_SKIP_GLOBALS=1 + +inherit cmake rocm + +DESCRIPTION="library for accelerating mixed precision matrix multiply-accumulate operations" +HOMEPAGE="https://github.com/ROCm/rocWMMA" +SRC_URI="https://github.com/ROCm/rocWMMA/archive/rocm-${PV}.tar.gz -> rocWMMA-${PV}.tar.gz" +S="${WORKDIR}/rocWMMA-rocm-${PV}" + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64" + +DEPEND="dev-util/hip:${SLOT}" + +IUSE_TARGETS=( gfx908 gfx90a gfx940 gfx941 gfx942 gfx1100 gfx1101 gfx1102 gfx1200 gfx1201 ) +IUSE_TARGETS=( "${IUSE_TARGETS[@]/#/amdgpu_targets_}" ) +ROCM_USEDEP_OPTFLAGS=${IUSE_TARGETS[*]/%/(-)?} +ROCM_USEDEP=${ROCM_USEDEP_OPTFLAGS// /,} +ROCM_REQUIRED_USE=" || ( ${IUSE_TARGETS[*]} )" + +BDEPEND=" + test? ( + dev-cpp/gtest + sci-libs/rocBLAS:${SLOT} + ) + dev-build/rocm-cmake +" + +IUSE="${IUSE_TARGETS[*]/#/+} test" + +REQUIRED_USE="${ROCM_REQUIRED_USE}" + +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}"/${PN}-6.1.1-no-test-install.patch +) + +src_prepare() { + # unknown arguments for hipcc + sed -e "s/ -parallel-jobs=4//" \ + -e "s/ -Xclang -fallow-half-arguments-and-returns//" \ + -i CMakeLists.txt || die + + cmake_src_prepare +} + +src_configure() { + rocm_use_hipcc + + local mycmakeargs=( + -DCMAKE_SKIP_RPATH=ON + -DAMDGPU_TARGETS="$(get_amdgpu_flags)" + -DROCM_SYMLINK_LIBS=OFF + -DROCWMMA_BUILD_SAMPLES=OFF + -DROCWMMA_BUILD_TESTS="$(usex test)" + ) + use test && mycmakeargs+=(-DROCWMMA_USE_SYSTEM_GOOGLETEST=ON) + cmake_src_configure +} + +src_test() { + check_amdgpu + + # Expected time on gfx1100 is 1260s (-j1) or 936s (-j32) + # Visible devices are limited to the first one to exclude APU (if not disabled in the BIOS) + HIP_VISIBLE_DEVICES=0 cmake_src_test +}