mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-libs/rocThrust: 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:
@@ -2,4 +2,5 @@ DIST rocThrust-5.7.1.tar.gz 1122808 BLAKE2B 41a5d57d03c7f95baf861b772c9513c7fbc2
|
||||
DIST rocThrust-6.1.1.tar.gz 1147635 BLAKE2B e71288a4666ba1f23cf85d2d269f61f9085efaeb2921b7f3142c5ce0808380b27a8c07945a44b6a651747046020b412838a667232b1ba65308fd7fd336b840b4 SHA512 30eeb6df73ee0dc2361879337faae09cf19cd151510c6e22d774c22b4be19272f9980cc6ba2b2e42f43738a1e475f49fcb4384d66b24639746a05685a90e37d4
|
||||
DIST rocThrust-6.3.2.tar.gz 1205797 BLAKE2B 355da53bbc69a6b79909fe48bfa326fc9bc8eabf4b80d3870bd4ef73ff87ebaba5ec06ce2096efd9d4655d1f19970ca60069c14e91b6bf953263145f8ff3a178 SHA512 5f699957ef79346e38d7d8d462b25f67248e5d7b1c2ea71a153fe7f87279d442e181a721b95a2878d52ae08ff3b53797a320f51f707b852ec67d5dfaa50a1bc7
|
||||
DIST rocThrust-6.3.3.tar.gz 1205828 BLAKE2B 4b65353de456558fbc4ad43630353d89336d23a4a9da00df21c34caedbcc25b9b05e0a3e4048f3709a63eb9a8882d60a906b2e7cf4976fd3953b089e9bcb04b7 SHA512 964ef583485d4885b4cf6e95a0cb65d54f1690ab4af9c18a9909d9356e19d3b431f510801ac0a26cd31b8539857840fc218e0bdf779e9a4ab7b03bb0e31f73da
|
||||
DIST rocThrust-6.4.1.tar.gz 1228414 BLAKE2B b3da44507b633865b76edee668d5db103a68808281c9f39679dfa517e2c00817d54c12105219863960bcc98156206b9f2fc5cc7f60c6ea1631f29d1a6cc7291f SHA512 fac687b96b560b055627bda7b7c66d5b4a9a8e8377580028923c4a6a3c4d14d0aa3fd7bfd83439ceb9d2b954afb222377a1503291fccda6c9de55deef0518d4a
|
||||
DIST sqlite-amalgamation-3430200.zip 2676699 BLAKE2B b09c59772c920ddef7ba0b15b1721645541678bad9ecb23fb8ecfbb1733177cad836d1d75db8e0722ea7ab4701cfaca187b72c127e9959f7e4f116f1ec7fe41c SHA512 5ef0e65ee92a088187376fa82ccb182dffa35391dd4dbcb3fafeb0a6f1602ced1e212753837079a9cad007d73d3f5b8a67ca1a6596eba6cf0c695052fa307392
|
||||
|
||||
13
sci-libs/rocThrust/files/rocThrust-6.4.1-fix-libcxx.patch
Normal file
13
sci-libs/rocThrust/files/rocThrust-6.4.1-fix-libcxx.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/thrust/type_traits/is_contiguous_iterator.h b/thrust/type_traits/is_contiguous_iterator.h
|
||||
index 252ed69..c542929 100644
|
||||
--- a/thrust/type_traits/is_contiguous_iterator.h
|
||||
+++ b/thrust/type_traits/is_contiguous_iterator.h
|
||||
@@ -131,7 +131,7 @@ struct is_libcxx_wrap_iter : false_type {};
|
||||
#if defined(_LIBCPP_VERSION)
|
||||
template <typename Iterator>
|
||||
struct is_libcxx_wrap_iter<
|
||||
-# if _LIBCPP_VERSION < 14000 || THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_HIP
|
||||
+# if _LIBCPP_VERSION < 14000
|
||||
_VSTD::__wrap_iter<Iterator>
|
||||
# else
|
||||
std::__wrap_iter<Iterator>
|
||||
72
sci-libs/rocThrust/rocThrust-6.4.1.ebuild
Normal file
72
sci-libs/rocThrust/rocThrust-6.4.1.ebuild
Normal file
@@ -0,0 +1,72 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ROCM_VERSION=${PV}
|
||||
|
||||
inherit cmake rocm
|
||||
|
||||
DESCRIPTION="HIP back-end for the parallel algorithm library Thrust"
|
||||
HOMEPAGE="https://github.com/ROCm/rocThrust"
|
||||
SRC_URI="
|
||||
https://github.com/ROCm/rocThrust/archive/rocm-${PV}.tar.gz -> rocThrust-${PV}.tar.gz
|
||||
test? ( https://www.sqlite.org/2023/sqlite-amalgamation-3430200.zip )
|
||||
"
|
||||
S="${WORKDIR}/rocThrust-rocm-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0/$(ver_cut 1-2)"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="benchmark test"
|
||||
REQUIRED_USE="
|
||||
benchmark? ( ${ROCM_REQUIRED_USE} )
|
||||
test? ( ${ROCM_REQUIRED_USE} )
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="dev-util/hip
|
||||
sci-libs/rocPRIM:${SLOT}
|
||||
test? ( dev-cpp/gtest )
|
||||
benchmark? (
|
||||
dev-cpp/benchmark
|
||||
sci-libs/rocRAND:${SLOT}
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
>=dev-build/cmake-3.22
|
||||
test? ( app-arch/unzip )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.0-operator_new.patch"
|
||||
"${FILESDIR}/${PN}-6.4.1-fix-libcxx.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
rocm_use_hipcc
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_SKIP_RPATH=ON
|
||||
-DAMDGPU_TARGETS="$(get_amdgpu_flags)"
|
||||
-DBUILD_TEST=$(usex test ON OFF)
|
||||
-DBUILD_BENCHMARKS=$(usex benchmark ON OFF)
|
||||
-DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF
|
||||
)
|
||||
|
||||
if use test; then
|
||||
mycmakeargs+=(
|
||||
-DFETCHCONTENT_SOURCE_DIR_SQLITE_LOCAL="${WORKDIR}"/sqlite-amalgamation-3430200
|
||||
)
|
||||
fi
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
check_amdgpu
|
||||
# uses HMM to fit tests to default <512M iGPU VRAM
|
||||
ROCTHRUST_USE_HMM="1" cmake_src_test -j1
|
||||
}
|
||||
Reference in New Issue
Block a user