blob: c909f3d96122d9709159deed2645b94c58d2f6af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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="${RDEPEND}
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
}
|