1 |
commit: 3b89366daa39042e92cf3a2577c3a3328070f573 |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 2 02:56:49 2022 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 02:56:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b89366d |
7 |
|
8 |
dev-libs/rccl: bump to 5.0.2. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/831662 |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
13 |
|
14 |
dev-libs/rccl/Manifest | 1 + |
15 |
.../files/rccl-5.0.2-change_install_location.patch | 31 ++++++++++++++++ |
16 |
dev-libs/rccl/rccl-5.0.2.ebuild | 41 ++++++++++++++++++++++ |
17 |
3 files changed, 73 insertions(+) |
18 |
|
19 |
diff --git a/dev-libs/rccl/Manifest b/dev-libs/rccl/Manifest |
20 |
index ef9abc099a66..b50fab6d5c7b 100644 |
21 |
--- a/dev-libs/rccl/Manifest |
22 |
+++ b/dev-libs/rccl/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST rccl-4.0.0.tar.gz 741814 BLAKE2B c20178e45fb7787ef7f5e20326f91f11a1b2a575277b5f28591b0be6efa6730c3509b11255372648f1df50e33b5e593dbe9c3334c5001f39423fc70acfa49d07 SHA512 d25754895d7b5695e46031642c2550cf2b6b5c42628d8381a23d6d1a48699a14a4fdf842205a14b96bdd1339341f9e558492ef9366a63036d8a8a7011d2c1b05 |
25 |
DIST rccl-4.3.0.tar.gz 836631 BLAKE2B c7fede9cf92d3e75b79da2874c0a1e45c5fd4ad9d24b11c9870e9fdef8d571a286cbf54ae0a033f2aec3d21b06cafc2b1c097aaf87ecd628f0c33e9267103be1 SHA512 1a27e6441955f01c853861f83743da2fc9597978c3ff99f238734d4bafb1e277d626811b72c6a12563d69b2b8265960b8a2566df618921557837035b92993f0e |
26 |
+DIST rccl-5.0.2.tar.gz 888060 BLAKE2B f75d83b0f52487b4f7a2d30763ae4fb0d216fc353e62de981057cb855d5b26c7b846622c76330029c1ed5bd195695308bcef5c67d39526032dfee254084a40f7 SHA512 ee62720926008f67fcae0fc9a6ace23ca593a156f74fce6012ff2a6fcffdc2e2dc70d48cd3830b217e68449ba3e677b4005d20bd4554aeccf17cba56713cb00f |
27 |
|
28 |
diff --git a/dev-libs/rccl/files/rccl-5.0.2-change_install_location.patch b/dev-libs/rccl/files/rccl-5.0.2-change_install_location.patch |
29 |
new file mode 100644 |
30 |
index 000000000000..11e3fea312de |
31 |
--- /dev/null |
32 |
+++ b/dev-libs/rccl/files/rccl-5.0.2-change_install_location.patch |
33 |
@@ -0,0 +1,31 @@ |
34 |
+Index: rccl-rocm-5.0.2/CMakeLists.txt |
35 |
+=================================================================== |
36 |
+--- rccl-rocm-5.0.2.orig/CMakeLists.txt |
37 |
++++ rccl-rocm-5.0.2/CMakeLists.txt |
38 |
+@@ -268,16 +268,12 @@ target_link_libraries(rccl INTERFACE hip |
39 |
+ rocm_set_soversion(rccl "1.0") |
40 |
+ |
41 |
+ rocm_install_targets(TARGETS |
42 |
+- rccl |
43 |
+- PREFIX |
44 |
+ rccl) |
45 |
+ rocm_install(FILES ${PROJECT_BINARY_DIR}/rccl.h |
46 |
+- DESTINATION rccl/${CMAKE_INSTALL_INCLUDEDIR}) |
47 |
++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) |
48 |
+ |
49 |
+ rocm_export_targets(NAMESPACE |
50 |
+ roc:: |
51 |
+- PREFIX |
52 |
+- rccl |
53 |
+ TARGETS |
54 |
+ rccl |
55 |
+ DEPENDS |
56 |
+@@ -329,8 +325,6 @@ rocm_create_package( |
57 |
+ "RCCL Maintainer <rccl-maintainer@×××.com>" |
58 |
+ LDCONFIG) |
59 |
+ |
60 |
+-rocm_install_symlink_subdir(rccl) |
61 |
+- |
62 |
+ if(BUILD_TESTS) |
63 |
+ add_subdirectory(test) |
64 |
+ endif() |
65 |
|
66 |
diff --git a/dev-libs/rccl/rccl-5.0.2.ebuild b/dev-libs/rccl/rccl-5.0.2.ebuild |
67 |
new file mode 100644 |
68 |
index 000000000000..045b52b33b0f |
69 |
--- /dev/null |
70 |
+++ b/dev-libs/rccl/rccl-5.0.2.ebuild |
71 |
@@ -0,0 +1,41 @@ |
72 |
+# Copyright 1999-2022 Gentoo Authors |
73 |
+# Distributed under the terms of the GNU General Public License v2 |
74 |
+ |
75 |
+EAPI=7 |
76 |
+ |
77 |
+inherit cmake |
78 |
+ |
79 |
+DESCRIPTION="ROCm Communication Collectives Library (RCCL)" |
80 |
+HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rccl" |
81 |
+SRC_URI="https://github.com/ROCmSoftwarePlatform/rccl/archive/rocm-${PV}.tar.gz -> rccl-${PV}.tar.gz" |
82 |
+ |
83 |
+LICENSE="BSD" |
84 |
+KEYWORDS="~amd64" |
85 |
+SLOT="0/$(ver_cut 1-2)" |
86 |
+ |
87 |
+RDEPEND="dev-util/hip:${SLOT}" |
88 |
+DEPEND="${RDEPEND}" |
89 |
+BDEPEND=">=dev-util/cmake-3.22 |
90 |
+ >=dev-util/rocm-cmake-5.0.2-r1" |
91 |
+ |
92 |
+S="${WORKDIR}/rccl-rocm-${PV}" |
93 |
+ |
94 |
+PATCHES=( |
95 |
+ "${FILESDIR}/rccl-5.0.2-change_install_location.patch" |
96 |
+) |
97 |
+ |
98 |
+src_configure() { |
99 |
+ addwrite /dev/kfd |
100 |
+ addpredict /dev/dri/ |
101 |
+ |
102 |
+ export DEVICE_LIB_PATH="${EPREFIX}/usr/lib/amdgcn/bitcode/" |
103 |
+ export CXX=hipcc |
104 |
+ |
105 |
+ local mycmakeargs=( |
106 |
+ -DBUILD_TESTS=OFF |
107 |
+ -Wno-dev |
108 |
+ ${AMDGPU_TARGETS+-DAMDGPU_TARGETS="${AMDGPU_TARGETS}"} |
109 |
+ ) |
110 |
+ |
111 |
+ cmake_src_configure |
112 |
+} |