* [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocWMMA/
@ 2024-06-26 9:21 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2024-06-26 9:21 UTC (permalink / raw
To: gentoo-commits
commit: 7df7f8e93ed60da8c8082d6256dd194fa9dd1aa7
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Tue Jun 25 20:36:54 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 26 09:19:26 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7df7f8e9
sci-libs/rocWMMA: 6.1.1 cleanup ebuild
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/rocWMMA/rocWMMA-6.1.1.ebuild | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sci-libs/rocWMMA/rocWMMA-6.1.1.ebuild b/sci-libs/rocWMMA/rocWMMA-6.1.1.ebuild
index 54af6e3d6f1e..a3f8d61463b1 100644
--- a/sci-libs/rocWMMA/rocWMMA-6.1.1.ebuild
+++ b/sci-libs/rocWMMA/rocWMMA-6.1.1.ebuild
@@ -2,6 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+
ROCM_SKIP_GLOBALS=1
inherit cmake rocm flag-o-matic
@@ -19,7 +20,7 @@ DEPEND="=dev-util/hip-6*"
IUSE_TARGETS=( gfx908 gfx90a gfx940 gfx941 gfx942 gfx1100 gfx1101 gfx1102 )
IUSE_TARGETS=( "${IUSE_TARGETS[@]/#/amdgpu_targets_}" )
-ROCM_USEDEP_OPTFLAGS=${IUSE_TARGETS[@]/%/(-)?}
+ROCM_USEDEP_OPTFLAGS=${IUSE_TARGETS[*]/%/(-)?}
ROCM_USEDEP=${ROCM_USEDEP_OPTFLAGS// /,}
ROCM_REQUIRED_USE=" || ( ${IUSE_TARGETS[*]} )"
@@ -31,7 +32,7 @@ BDEPEND="
dev-build/rocm-cmake
"
-IUSE="${IUSE_TARGETS[@]/#/+} test"
+IUSE="${IUSE_TARGETS[*]/#/+} test"
REQUIRED_USE="${ROCM_REQUIRED_USE}"
@@ -51,7 +52,7 @@ src_configure() {
-DAMDGPU_TARGETS="$(get_amdgpu_flags)"
-DROCM_SYMLINK_LIBS=OFF
-DROCWMMA_BUILD_SAMPLES=OFF
- -DROCWMMA_BUILD_TESTS=$(usex test ON OFF)
+ -DROCWMMA_BUILD_TESTS="$(usex test)"
)
use test && mycmakeargs+=(-DROCWMMA_USE_SYSTEM_GOOGLETEST=ON)
CC=hipcc CXX=hipcc cmake_src_configure
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocWMMA/
@ 2024-09-09 18:20 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2024-09-09 18:20 UTC (permalink / raw
To: gentoo-commits
commit: 717c026f41e03df90881c5cca1c1c8390e71b8b5
Author: Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Sat Jul 20 17:43:30 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Sep 9 18:15:20 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=717c026f
sci-libs/rocWMMA: strip unsupported flags for potentially switched compiler
Bug: https://bugs.gentoo.org/936099
Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/rocWMMA/rocWMMA-6.1.1.ebuild | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sci-libs/rocWMMA/rocWMMA-6.1.1.ebuild b/sci-libs/rocWMMA/rocWMMA-6.1.1.ebuild
index a3f8d61463b1..3122ab799976 100644
--- a/sci-libs/rocWMMA/rocWMMA-6.1.1.ebuild
+++ b/sci-libs/rocWMMA/rocWMMA-6.1.1.ebuild
@@ -44,6 +44,8 @@ PATCHES=(
)
src_configure() {
+ rocm_use_hipcc
+
# ld.lld bug https://github.com/llvm/llvm-project/issues/61101
filter-lto
@@ -55,7 +57,7 @@ src_configure() {
-DROCWMMA_BUILD_TESTS="$(usex test)"
)
use test && mycmakeargs+=(-DROCWMMA_USE_SYSTEM_GOOGLETEST=ON)
- CC=hipcc CXX=hipcc cmake_src_configure
+ cmake_src_configure
}
src_test() {
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocWMMA/
@ 2025-01-05 21:49 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2025-01-05 21:49 UTC (permalink / raw
To: gentoo-commits
commit: 1180b7c337a4c12632ae2dbc5768ba167590a571
Author: Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Mon Dec 9 20:22:00 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 5 21:46:40 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1180b7c3
sci-libs/rocWMMA: add 6.3.0
Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/rocWMMA/Manifest | 1 +
sci-libs/rocWMMA/rocWMMA-6.3.0.ebuild | 74 +++++++++++++++++++++++++++++++++++
2 files changed, 75 insertions(+)
diff --git a/sci-libs/rocWMMA/Manifest b/sci-libs/rocWMMA/Manifest
index 7aeb9da75f6f..6f04a53b98a5 100644
--- a/sci-libs/rocWMMA/Manifest
+++ b/sci-libs/rocWMMA/Manifest
@@ -1,2 +1,3 @@
DIST rocWMMA-5.7.1.tar.gz 3163060 BLAKE2B 47ca55c0cd388ca51ad3843e656a31ce04d9e07988c26bfb69a7c61bfe497609408cfd20dcbe9c6698bd79b800a114ab67d582ced43dc6f1c4db4072e2901d99 SHA512 92c9c634fdf1f5319d34fabbf691df45600abdc5285a76b40255e7d6d260553076f65baa1eda566a163725e2a0cec0a85372eb07add39c65368e84505c176f50
DIST rocWMMA-6.1.1.tar.gz 3189782 BLAKE2B fd96d8f3ba8f21ee3544d532a59ffdefa1aefc94d73401f48d470f7f699e28771d5495e98c1ee316d8379167b70b945220be6670dee2757a62af162276a2fb0f SHA512 db2bfe805a4f33c48ee98c821efe0b261eca474af9e954843c83faa3335459bfe635326ba2cfc7b8b8ece2cf0f2c418f49ff6aa81537f8d3747cc729738a6b18
+DIST rocWMMA-6.3.0.tar.gz 3225622 BLAKE2B bfcb872393a11c809d1f7d09aeca554c24669650f4e61d5846104d0559b50a584081260ad566b1d79a2d107cc1f2bf9ea26751e0611cba9108a455a2ba48a3cb SHA512 5c72df14eabd0e766ffc03e41cd2e5a07ffb4ab518f7e6c2b1f23517c20a1c076d08a45f9940e499ede02c0d2c77f3f76f65f4748c7c8dfa2e747a406acf0aa1
diff --git a/sci-libs/rocWMMA/rocWMMA-6.3.0.ebuild b/sci-libs/rocWMMA/rocWMMA-6.3.0.ebuild
new file mode 100644
index 000000000000..5a803b20ae90
--- /dev/null
+++ b/sci-libs/rocWMMA/rocWMMA-6.3.0.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 )
+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}[${ROCM_USEDEP}]
+ )
+ 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
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-05 21:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-05 21:49 [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocWMMA/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2024-09-09 18:20 Sam James
2024-06-26 9:21 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox