summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2021-01-21 17:12:48 +0800
committerBenda Xu <heroxbd@gentoo.org>2021-01-24 15:48:27 +0800
commit48544762ef753e69fc2a4c1e7b3adf9ead209683 (patch)
tree6d8f02b4f0cb507fc54e8989cf8d6af5b6e52987 /dev-libs
parentsci-libs/hipSPARSE: SPARSE marshalling library. (diff)
downloadgentoo-48544762ef753e69fc2a4c1e7b3adf9ead209683.tar.gz
gentoo-48544762ef753e69fc2a4c1e7b3adf9ead209683.tar.bz2
gentoo-48544762ef753e69fc2a4c1e7b3adf9ead209683.zip
dev-libs/rccl: ROCm Communication Collectives Library
Closes: https://github.com/gentoo/gentoo/pull/19143 Bug: https://bugs.gentoo.org/650804 Bug: https://github.com/gentoo/gentoo/pull/10724 Suggested-by: Yiyang Wu <xgreenlandforwyy@gmail.com> Suggested-by: Wilfried Holzke <gentoo@holzke.net> Package-Manager: Portage-3.0.12, Repoman-3.0.1 Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/rccl/Manifest1
-rw-r--r--dev-libs/rccl/files/rccl-2.7.0-change_install_location.patch33
-rw-r--r--dev-libs/rccl/metadata.xml19
-rw-r--r--dev-libs/rccl/rccl-4.0.0-r1.ebuild39
4 files changed, 92 insertions, 0 deletions
diff --git a/dev-libs/rccl/Manifest b/dev-libs/rccl/Manifest
new file mode 100644
index 000000000000..19e11e35867a
--- /dev/null
+++ b/dev-libs/rccl/Manifest
@@ -0,0 +1 @@
+DIST rccl-4.0.0.tar.gz 741814 BLAKE2B c20178e45fb7787ef7f5e20326f91f11a1b2a575277b5f28591b0be6efa6730c3509b11255372648f1df50e33b5e593dbe9c3334c5001f39423fc70acfa49d07 SHA512 d25754895d7b5695e46031642c2550cf2b6b5c42628d8381a23d6d1a48699a14a4fdf842205a14b96bdd1339341f9e558492ef9366a63036d8a8a7011d2c1b05
diff --git a/dev-libs/rccl/files/rccl-2.7.0-change_install_location.patch b/dev-libs/rccl/files/rccl-2.7.0-change_install_location.patch
new file mode 100644
index 000000000000..c129e80c62c7
--- /dev/null
+++ b/dev-libs/rccl/files/rccl-2.7.0-change_install_location.patch
@@ -0,0 +1,33 @@
+--- a/CMakeLists.txt 2019-09-02 18:19:53.540736052 +0200
++++ b/CMakeLists.txt 2019-09-02 18:21:14.936735741 +0200
+@@ -162,15 +162,16 @@
+
+ rocm_install_targets(TARGETS
+ rccl
+- PREFIX
+- rccl)
++# PREFIX
++# rccl
++ )
+ install(FILES ${PROJECT_BINARY_DIR}/rccl.h
+- DESTINATION rccl/${CMAKE_INSTALL_INCLUDEDIR})
++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+
+ rocm_export_targets(NAMESPACE
+ roc::
+- PREFIX
+- rccl
++# PREFIX
++# rccl
+ TARGETS
+ rccl
+ DEPENDS
+@@ -190,7 +191,7 @@
+ "<no-reply@amd.com>"
+ LDCONFIG)
+
+-rocm_install_symlink_subdir(rccl)
++#rocm_install_symlink_subdir(rccl)
+
+ if(BUILD_TESTS)
+ add_subdirectory(test)
diff --git a/dev-libs/rccl/metadata.xml b/dev-libs/rccl/metadata.xml
new file mode 100644
index 000000000000..1e0f4fb686b4
--- /dev/null
+++ b/dev-libs/rccl/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>candrews@gentoo.org</email>
+ <name>Craig Andrews</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>gentoo@holzke.net</email>
+ <name>Wilfried Holzke</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ROCm-Developer-Tools/rccl</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-libs/rccl/rccl-4.0.0-r1.ebuild b/dev-libs/rccl/rccl-4.0.0-r1.ebuild
new file mode 100644
index 000000000000..364e12bac665
--- /dev/null
+++ b/dev-libs/rccl/rccl-4.0.0-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="ROCm Communication Collectives Library (RCCL)"
+HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rccl"
+SRC_URI="https://github.com/ROCmSoftwarePlatform/rccl/archive/rocm-${PV}.tar.gz -> rccl-${PV}.tar.gz"
+
+LICENSE="BSD"
+KEYWORDS="~amd64"
+SLOT="0"
+
+RDEPEND="=dev-util/hip-$(ver_cut 1-2)*"
+DEPEND="${RDPEND}
+ dev-util/rocm-cmake"
+
+S="${WORKDIR}/rccl-rocm-${PV}"
+
+PATCHES=(
+ "${FILESDIR}/rccl-2.7.0-change_install_location.patch"
+)
+
+src_configure() {
+ addwrite /dev/kfd
+ addpredict /dev/dri/
+
+ export DEVICE_LIB_PATH="${EPREFIX}/usr/lib/amdgcn/bitcode/"
+ export CXX=hipcc
+
+ local mycmakeargs=(
+ -DBUILD_TESTS=OFF
+ -Wno-dev
+ )
+
+ cmake_src_configure
+}