mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
sci-libs/rocPRIM: add 7.1.0
Signed-off-by: Patrick Lauer <patrick@gentoo.org>
This commit is contained in:
parent
df42c30418
commit
61e75361e6
@ -1,3 +1,4 @@
|
||||
DIST rocPRIM-6.3.3.tar.gz 745961 BLAKE2B 7ab15f623390de9052258717fa568b41c0f0dbe2e70c5c59089ad52bd00bdb44905a0f371dd71673af4b6f5d5ca21ab5bc6e41c04721e3b812f9543ad849c236 SHA512 5e216ff18d0a3eeb901f3ad4e8b74f9d8661a0bb943edea064529bdb973f3955e6791c415e492a89456eb0f19376f74528c3b348c4e32755a48e6b3f855a91e2
|
||||
DIST rocPRIM-6.4.3.tar.gz 868355 BLAKE2B f9dea0b2089a54033c689593f156a2ec5fa57c9be1d97491ab888667d2f12e919dc191baf3b321cf9450c1c09032a771be286ec9662e3cd4a2e5b18ad64636eb SHA512 1190a5397d30ee659128038c6903188c29808ad8e7e09f9ef648384662bdb6eda331d7a4847b3e00d31eb3c6752977703cfba2516ce0f268b2b0a349c97e5b24
|
||||
DIST rocPRIM-7.0.2.tar.gz 917166 BLAKE2B 9437384b8e16b59f6633c71737d66cbc913332e153a92ca4c305e6619158b3a926794cdca71383aa84df20d5e2fa68d78d6decca61f78b24cda519687aa09408 SHA512 7c6b316ef1936726c883cd15b0a2e35b7df26f67c6ed4a04ba1eda761b5e01fc8f827f1361ba7737c677f727d883715663c9385af0d308a349f119873ae46f5e
|
||||
DIST rocPRIM-7.1.0.tar.gz 943833 BLAKE2B 7b2e7c4120d5128a112664b13e942289ab1dfe14c2fd0fa923410fcd60ee2a0168f3441bb9204e8f969b33c464849117d7a3f58a41a94386a73b4973e9505b81 SHA512 ba2588fd25ba2c2a31221a3deb035276cc0ffc68d5f51e1dcddaf47c6a7e5a2b4f1703249e497b913abc63826ad683cae2836cc5fed1429f64440df5168b9b90
|
||||
|
||||
73
sci-libs/rocPRIM/rocPRIM-7.1.0.ebuild
Normal file
73
sci-libs/rocPRIM/rocPRIM-7.1.0.ebuild
Normal file
@ -0,0 +1,73 @@
|
||||
# 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="HIP parallel primitives for developing performant GPU-accelerated code on ROCm"
|
||||
HOMEPAGE="https://github.com/ROCm/rocm-libraries/tree/develop/projects/rocprim"
|
||||
SRC_URI="https://github.com/ROCm/rocPRIM/archive/rocm-${PV}.tar.gz -> rocPRIM-${PV}.tar.gz"
|
||||
S="${WORKDIR}/rocPRIM-rocm-${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/$(ver_cut 1-2)"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="benchmark test"
|
||||
REQUIRED_USE="
|
||||
benchmark? ( ${ROCM_REQUIRED_USE} )
|
||||
test? ( ${ROCM_REQUIRED_USE} )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
benchmark? (
|
||||
dev-util/hip:${SLOT}
|
||||
dev-cpp/benchmark:=
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
dev-util/hip:${SLOT}
|
||||
test? ( dev-cpp/gtest )
|
||||
"
|
||||
BDEPEND="
|
||||
dev-build/rocm-cmake
|
||||
dev-build/cmake
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
src_prepare() {
|
||||
# install benchmark files
|
||||
if use benchmark; then
|
||||
sed -e "/get_filename_component/s,\${BENCHMARK_SOURCE},${PN}_\${BENCHMARK_SOURCE}," \
|
||||
-e "/add_executable/a\ install(TARGETS \${BENCHMARK_TARGET})" -i benchmark/CMakeLists.txt || die
|
||||
fi
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
rocm_use_clang
|
||||
|
||||
# too many warnings in tests
|
||||
append-cxxflags -Wno-explicit-specialization-storage-class -Wno-deprecated-declarations
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_SKIP_RPATH=ON
|
||||
-DAMDGPU_TARGETS="$(get_amdgpu_flags)"
|
||||
-DBUILD_TEST=$(usex test ON OFF)
|
||||
-DBUILD_BENCHMARK=$(usex benchmark ON OFF)
|
||||
-DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF
|
||||
-DROCM_SYMLINK_LIBS=OFF
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
check_amdgpu
|
||||
# uses HMM to fit tests to default <512M iGPU VRAM
|
||||
ROCPRIM_USE_HMM="1" cmake_src_test -j1
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user