public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/rpp/
@ 2024-06-27 16:49 Andrew Ammerlaan
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2024-06-27 16:49 UTC (permalink / raw
  To: gentoo-commits

commit:     b1edf3190b14911cb69fb784b91ca1c80355e971
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Thu Jun 27 14:17:57 2024 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Jun 27 16:49:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1edf319

sci-libs/rpp: fix compilation with USE=test

* fixes "patch -p1 failed with rpp-6.1.1-skip-install-license.patch"
* tests require opencv

Closes: https://bugs.gentoo.org/934981
Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/37322
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-libs/rpp/rpp-6.1.1.ebuild | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/sci-libs/rpp/rpp-6.1.1.ebuild b/sci-libs/rpp/rpp-6.1.1.ebuild
index d38645f9ff56..dc7d12f41604 100644
--- a/sci-libs/rpp/rpp-6.1.1.ebuild
+++ b/sci-libs/rpp/rpp-6.1.1.ebuild
@@ -29,7 +29,10 @@ DEPEND="${RDEPEND}"
 BDEPEND="
 	>=dev-build/cmake-3.22
 	>=dev-libs/half-1.12.0-r1
-	test? ( dev-cpp/gtest )
+	test? (
+		dev-cpp/gtest
+		media-libs/opencv:=
+	)
 "
 
 IUSE="cpu_flags_x86_avx2 cpu_flags_x86_fma3 cpu_flags_x86_f16c test"
@@ -54,7 +57,10 @@ src_prepare() {
 		-i CMakeLists.txt || die
 
 	cmake_src_prepare
-	use test && rcc_test_wrapper cmake_src_prepare
+	if use test; then
+		local PATCHES=()
+		rcc_test_wrapper cmake_src_prepare
+	fi
 }
 
 src_configure() {


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

* [gentoo-commits] repo/gentoo:master commit in: sci-libs/rpp/
@ 2025-01-05 21:49 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2025-01-05 21:49 UTC (permalink / raw
  To: gentoo-commits

commit:     e7f73546f8089909b11d28a4cc52ee8c09652afd
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Sun Dec 15 23:19:57 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan  5 21:46:42 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7f73546

sci-libs/rpp: add 6.3.0

Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/rpp/Manifest         |   1 +
 sci-libs/rpp/rpp-6.3.0.ebuild | 102 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 103 insertions(+)

diff --git a/sci-libs/rpp/Manifest b/sci-libs/rpp/Manifest
index 322ed39e26ea..72488241d4a2 100644
--- a/sci-libs/rpp/Manifest
+++ b/sci-libs/rpp/Manifest
@@ -1 +1,2 @@
 DIST rpp-6.1.1.tar.gz 37016755 BLAKE2B 884090ab50e0a4a3aed4e52c5bbd934a8c5b62eca310471c30cf4c5a7cafdd36fed7894320b4d5246620b3c47e90fafd0f8160a7d4ed0295c7668c8d147f4b18 SHA512 a7c10bdd08739eba08209783decf0f4fd7c12194b9ebc63bd16e4cb998645110c089833efb83a77d4bed7f8599cf3a320608be28633f0dc956079f9d70e765f8
+DIST rpp-6.3.0.tar.gz 56092581 BLAKE2B 1a36d98b64745e7cb36322cf21a6983a7efcde737136cbf12c428edd315ce1dff5f92540e5f23750cce01a65d25c0a87e4429bb3ea98059c747569591fb0e22a SHA512 8bab18af168dca51f6a5c2d32e46ca133307d2cf48057c4e9cda6100ea17df54b22533fedbad6d4273904eca53df5a322153a2d7eb45c6ce7faff54d2e57a482

diff --git a/sci-libs/rpp/rpp-6.3.0.ebuild b/sci-libs/rpp/rpp-6.3.0.ebuild
new file mode 100644
index 000000000000..e1bd48117964
--- /dev/null
+++ b/sci-libs/rpp/rpp-6.3.0.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ROCM_VERSION=${PV}
+
+inherit cmake flag-o-matic rocm
+
+DESCRIPTION="AMD ROCm Performance Primitives (RPP) high-performance computer vision library"
+HOMEPAGE="https://github.com/ROCm/rpp"
+SRC_URI="https://github.com/ROCm/rpp/archive/refs/tags/rocm-${PV}.tar.gz -> rpp-${PV}.tar.gz"
+S="${WORKDIR}/${PN}-rocm-${PV}"
+
+LICENSE="BSD"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64"
+
+# pkgcheck warning: RequiredUseDefaults
+REQUIRED_USE="
+	cpu_flags_x86_avx2 cpu_flags_x86_fma3 cpu_flags_x86_f16c
+	${ROCM_REQUIRED_USE}
+"
+
+RDEPEND="
+	dev-util/hip:${SLOT}
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	>=dev-build/cmake-3.22
+	>=dev-libs/half-1.12.0-r1
+	test? (
+		dev-cpp/gtest
+		media-libs/opencv:=
+	)
+"
+
+IUSE="cpu_flags_x86_avx2 cpu_flags_x86_fma3 cpu_flags_x86_f16c test"
+RESTRICT="!test? ( test )"
+
+DOCS=( CHANGELOG.md LICENSE README.md )
+
+rcc_test_wrapper() {
+	local S="${WORKDIR}/${PN}-rocm-${PV}/utilities/rpp-unittests/HIP_NEW"
+	local CMAKE_USE_DIR="${S}"
+	local BUILD_DIR="${BUILD_DIR}/utilities/rpp-unittests/HIP_NEW"
+	cd "${S}" || die
+	$@
+}
+
+src_prepare() {
+	sed -e "s:\${ROCM_PATH}/llvm/bin/clang++:hipcc:" \
+		-i CMakeLists.txt || die
+
+	cmake_src_prepare
+	if use test; then
+		local PATCHES=()
+		rcc_test_wrapper cmake_src_prepare
+	fi
+}
+
+src_configure() {
+	rocm_use_hipcc
+
+	local mycmakeargs=(
+		-DCMAKE_SKIP_RPATH=ON
+		-DAMDGPU_TARGETS="$(get_amdgpu_flags)"
+		-DROCM_PATH=/usr
+		-DBACKEND=HIP
+		-DBUILD_WITH_AMD_ADVANCE=OFF
+	)
+
+	cmake_src_configure
+
+	if use test; then
+		append-cxxflags -I"${S}/include"
+		append-ldflags -L"${BUILD_DIR}/lib64"
+		local mycmakeargs=(-DROCM_PATH=/usr)
+		use test && rcc_test_wrapper cmake_src_configure
+	fi
+}
+
+src_compile() {
+	cmake_src_compile
+	use test && rcc_test_wrapper cmake_src_compile
+}
+
+src_install() {
+	cmake_src_install
+
+	# remove unneeded copy
+	rm -r "${ED}/usr/share/doc/${PF}-asan" || die
+}
+
+src_test() {
+	check_amdgpu
+
+	cd "${BUILD_DIR}"/utilities/rpp-unittests/HIP_NEW || die
+	for params in "0 0" "0 1" "1 1" "2 1" "5 1" "0 2" "0 3" "0 4" "0 5" "0 8"; do
+		LD_LIBRARY_PATH="${BUILD_DIR}"/lib64 ./uniqueFunctionalities_hip $params || die
+	done
+}


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

end of thread, other threads:[~2025-01-05 21:50 UTC | newest]

Thread overview: 2+ 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/rpp/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2024-06-27 16:49 Andrew Ammerlaan

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