mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-libs/rpp: add 6.4.1
Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42554 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST rpp-6.1.1.tar.gz 37016755 BLAKE2B 884090ab50e0a4a3aed4e52c5bbd934a8c5b62eca310471c30cf4c5a7cafdd36fed7894320b4d5246620b3c47e90fafd0f8160a7d4ed0295c7668c8d147f4b18 SHA512 a7c10bdd08739eba08209783decf0f4fd7c12194b9ebc63bd16e4cb998645110c089833efb83a77d4bed7f8599cf3a320608be28633f0dc956079f9d70e765f8
|
||||
DIST rpp-6.3.3.tar.gz 56093678 BLAKE2B de0933386d7c6a3cce88a36e22c25bea0cdda766dbc9a297bb6f5271b7a310670faa2d1dd3cc56f52e2752946f930ad02c4de2680dea3456e09ca97d4fa6c520 SHA512 024211ab05d95fbe0bb960a08b083e5b777d4842dd717a6280b1de84402426f5f9016e3b258ef81042281d775bd5504b285dd06d246f4d3479ffe57e59935184
|
||||
DIST rpp-6.4.1.tar.gz 66053835 BLAKE2B 42b7403585203b6d1e2ac76999cce0e34d6a0b10ecea90711389150144ffcb3f809d0ffa7bcba655b242b50a5cbff0e18995782a1734265b63199327aea40d06 SHA512 6dc4b68eac6fc73575215cf913879e4a5911088e0daa4116d6250f3881ae9d1fd78f1930b578daafe58ae1baac38ef91551a35869a293a61d80410ebda06c1d0
|
||||
|
||||
98
sci-libs/rpp/rpp-6.4.1.ebuild
Normal file
98
sci-libs/rpp/rpp-6.4.1.ebuild
Normal file
@@ -0,0 +1,98 @@
|
||||
# Copyright 1999-2025 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() {
|
||||
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
|
||||
-DGPU_TARGETS="$(get_amdgpu_flags)"
|
||||
-DROCM_PATH=/usr
|
||||
-DBACKEND=HIP
|
||||
)
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user