mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
sci-libs/rpp: add 7.1.0
Signed-off-by: Patrick Lauer <patrick@gentoo.org>
This commit is contained in:
parent
be26fa5e87
commit
e1bb4a6bf6
@ -1,3 +1,4 @@
|
||||
DIST rpp-6.3.3.tar.gz 56093678 BLAKE2B de0933386d7c6a3cce88a36e22c25bea0cdda766dbc9a297bb6f5271b7a310670faa2d1dd3cc56f52e2752946f930ad02c4de2680dea3456e09ca97d4fa6c520 SHA512 024211ab05d95fbe0bb960a08b083e5b777d4842dd717a6280b1de84402426f5f9016e3b258ef81042281d775bd5504b285dd06d246f4d3479ffe57e59935184
|
||||
DIST rpp-6.4.3.tar.gz 66049573 BLAKE2B cf4a31c4595e3148030a75a4c47a3bcce99002880b273fbc151948eae32639bce21126be911f18b1832d4892756b39925d79423ce455597f892fee30271f0a80 SHA512 fda88addba7a3b8ea28bcdf559a28adbf4cfd522d7071ed64c4846777a6bf1ac1143ec43719f8f83f3b948e28658a1ccbc51eccada128ddfa73aed3002506ae9
|
||||
DIST rpp-7.0.2.tar.gz 73713099 BLAKE2B 939af01b4a63c659c708b17ab603ed122d8b99fd2fbb031d4ff00733f4ff36892df6014b6311bd731593085da2657442e5b8922da3c4c6edf09faa26fc1709b4 SHA512 26810258932e4d9c7b40375792f32a792f8a1b464d922b27753ee863002b9981b3a109e7e773f937808d5bdd2b87875d408e8d4e009d6b877fd31bd0224bbb17
|
||||
DIST rpp-7.1.0.tar.gz 77796456 BLAKE2B 3d7f7ba529f2e23fb25f0d87d9cf022cda24e3395fffa3515128e5fe70d8eb0e2329a3a1a067eb4fbb983bf6f3c8baae1f2f5fa6c6ade8da9d889bcf7c370557 SHA512 68707f3fb20e7a425fedff87c8eaaf0dac125bb833ef5855d4b5a619dbb22df79e289dcd7f533607e267f3f5abb2737ed50a912f217c6b0e04ca5c6b0092a928
|
||||
|
||||
97
sci-libs/rpp/rpp-7.1.0.ebuild
Normal file
97
sci-libs/rpp/rpp-7.1.0.ebuild
Normal file
@ -0,0 +1,97 @@
|
||||
# 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() {
|
||||
sed -e "s/COMPONENT asan/COMPONENT asan EXCLUDE_FROM_ALL/" -i CMakeLists.txt || die
|
||||
cmake_src_prepare
|
||||
if use test; then
|
||||
local PATCHES=()
|
||||
rcc_test_wrapper cmake_src_prepare
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
rocm_use_clang
|
||||
|
||||
# too many warnings
|
||||
append-cxxflags -Wno-deprecated-ofast -Wno-unused-value
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_SKIP_RPATH=ON
|
||||
-DGPU_TARGETS="$(get_amdgpu_flags)"
|
||||
-DROCM_PATH=/usr
|
||||
-DBACKEND=HIP
|
||||
-DRPP_AUDIO_SUPPORT=ON
|
||||
-DRPP_LEGACY_SUPPORT=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_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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user