diff options
Diffstat (limited to 'dev-libs/rccl')
-rw-r--r-- | dev-libs/rccl/Manifest | 4 | ||||
-rw-r--r-- | dev-libs/rccl/files/rccl-2.7.0-change_install_location.patch | 33 | ||||
-rw-r--r-- | dev-libs/rccl/metadata.xml | 19 | ||||
-rw-r--r-- | dev-libs/rccl/rccl-4.0.0-r1.ebuild | 39 |
4 files changed, 95 insertions, 0 deletions
diff --git a/dev-libs/rccl/Manifest b/dev-libs/rccl/Manifest new file mode 100644 index 000000000000..af9c2795d93a --- /dev/null +++ b/dev-libs/rccl/Manifest @@ -0,0 +1,4 @@ +AUX rccl-2.7.0-change_install_location.patch 894 BLAKE2B b38635d2eaa2e3f342c9db7ede66eb91a6170cc486ce90f487820895879ad6666a35ffe3673dcc2ee610ade9c8b5fcb6a65f0469aa971aa3c0994ee347d22eae SHA512 97b1d3799e3eb105045d1c29df498c1255bd008433f56dd53cedd602fef77d9cee61b3b9db9281d72ec297da19058e86e74b66380b321f1727053e8c6148e698 +DIST rccl-4.0.0.tar.gz 741814 BLAKE2B c20178e45fb7787ef7f5e20326f91f11a1b2a575277b5f28591b0be6efa6730c3509b11255372648f1df50e33b5e593dbe9c3334c5001f39423fc70acfa49d07 SHA512 d25754895d7b5695e46031642c2550cf2b6b5c42628d8381a23d6d1a48699a14a4fdf842205a14b96bdd1339341f9e558492ef9366a63036d8a8a7011d2c1b05 +EBUILD rccl-4.0.0-r1.ebuild 790 BLAKE2B 8d4729fbc4699c6a49e44b3a5c9575a18da303757c5b9ffb0d9794897c5f6a92540936c2552e326e77c1660e22f2c9204f0dc879595a60a900ab21577390feb2 SHA512 1764142493266f7a0ab869abf951deed99cc8f01b75d81e1396eb48f186944b440644fa67c6e8e4f47a679474bf37ba5694d096e6a477d245a70c2cc6b638e40 +MISC metadata.xml 583 BLAKE2B 74c041b3ca69729d6be7b81ee439c0a51aaf24dd72de8e2b75878b07b48def0d2ef6509f8bd5dab1fc92301c6ceee350d05b2dfa5cc16c08e0bdf6d7c2e59e9d SHA512 4aef286c591d749a019ab3f9db5542a4b05569d53429522b5c5acac48383513599ef5e5f75254297c5b30a71db7a3b43f0aca53b50bacd46db206243f58edd2a 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 +} |