Сравнение rocRAND-5.1.3 с rocRAND-5.6.0

/usr/portage/sci-libs/rocRAND/rocRAND-5.6.0.ebuild 2023-10-09 14:52:35.096368491 +0300
9 9

  
10 10
DESCRIPTION="Generate pseudo-random and quasi-random numbers"
11 11
HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rocRAND"
12
HIPRAND_COMMIT_HASH=de941a7eb9ede2a862d719cd3ca23234a3692d07
13
SRC_URI="https://github.com/ROCmSoftwarePlatform/${PN}/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz
14
https://github.com/ROCmSoftwarePlatform/hipRAND/archive/${HIPRAND_COMMIT_HASH}.tar.gz -> hipRAND-${HIPRAND_COMMIT_HASH}.tar.gz"
12
SRC_URI="https://github.com/ROCmSoftwarePlatform/${PN}/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
15 13

  
16 14
LICENSE="MIT"
17 15
KEYWORDS="~amd64"
......
20 18
REQUIRED_USE="${ROCM_REQUIRED_USE}"
21 19
RESTRICT="!test? ( test )"
22 20

  
23
PATCHES=( "${FILESDIR}"/${PN}-5.1.3_stdint-gcc13.patch
24
	"${FILESDIR}"/${PN}-5.1.3_no-symlink.patch )
21
PATCHES=( "${FILESDIR}"/${PN}-5.4.2_stdint-gcc13.patch )
25 22

  
26 23
RDEPEND="dev-util/hip"
27 24
DEPEND="${RDEPEND}
......
32 29

  
33 30
S="${WORKDIR}/rocRAND-rocm-${PV}"
34 31

  
35
src_prepare() {
36
	rmdir hipRAND || die
37
	mv -v ../hipRAND-${HIPRAND_COMMIT_HASH} hipRAND || die
38
	# change installed include and lib dir, and avoid symlink overwrite the installed headers
39
	# avoid setting RPATH
40
	sed -r -e "s:(hip|roc)rand/lib:\${CMAKE_INSTALL_LIBDIR}:" \
41
		-e "/INSTALL_RPATH/d" -i library/CMakeLists.txt || die
42

  
43
	# remove GIT dependency
44
	sed -e "/find_package(Git/,+4d" -i cmake/Dependencies.cmake || die
45

  
46
	eapply_user
47
	cmake_src_prepare
48
}
49

  
50 32
src_configure() {
51 33
	addpredict /dev/kfd
52 34
	addpredict /dev/dri/
......
54 36
	local mycmakeargs=(
55 37
		-DCMAKE_SKIP_RPATH=On
56 38
		-DAMDGPU_TARGETS="$(get_amdgpu_flags)"
57
		-DBUILD_HIPRAND=ON
39
		-DBUILD_HIPRAND=OFF
40
		-DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF
58 41
		-DROCM_SYMLINK_LIBS=OFF
59 42
		-DBUILD_TEST=$(usex test ON OFF)
60 43
		-DBUILD_BENCHMARK=$(usex benchmark ON OFF)
Спасибо!