diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
commit | 752d6256e5204b958b0ef7905675a940b5e9172f (patch) | |
tree | 330d16e6362a49cbed8875a777fe641a43376cd3 /dev-libs/rccl/rccl-4.3.0-r1.ebuild | |
parent | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff) |
gentoo resync : 12.05.2022
Diffstat (limited to 'dev-libs/rccl/rccl-4.3.0-r1.ebuild')
-rw-r--r-- | dev-libs/rccl/rccl-4.3.0-r1.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-libs/rccl/rccl-4.3.0-r1.ebuild b/dev-libs/rccl/rccl-4.3.0-r1.ebuild new file mode 100644 index 000000000000..f5615cc20d0e --- /dev/null +++ b/dev-libs/rccl/rccl-4.3.0-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2022 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="${RDEPEND}" +BDEPEND=">=dev-util/cmake-3.22 + 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 + ${AMDGPU_TARGETS+-DAMDGPU_TARGETS="${AMDGPU_TARGETS}"} + ) + + cmake_src_configure +} |