blob: b9c1fda6b863575ee96241d8bb82937d4eca9d03 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="oneAPI Collective Communications Library"
HOMEPAGE="https://github.com/oneapi-src/oneCCL"
SRC_URI="https://github.com/oneapi-src/oneCCL/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="mpi"
BDEPEND="sys-devel/DPC++"
DEPEND="
dev-libs/level-zero:=
sys-apps/hwloc:=
sys-block/libfabric:=
mpi? ( virtual/mpi )
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${PN}-2021.7.1-use-system-libs.patch"
)
src_prepare() {
# No -Werror
find . -name "CMakeLists.txt" -exec sed -i "s/-Werror//g" {} + || die
# Use system libs instead
rm -r deps/hwloc deps/level_zero deps/mpi deps/ofi || die
# DPC++ compiler required for full functionality
export CXX="${ESYSROOT}/usr/lib/llvm/intel/bin/clang"
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DBUILD_EXAMPLES=OFF
# BUILD_CONFIG causes sandbox violation
-DBUILD_CONFIG=OFF
-DCCL_ENABLE_ZE=ON
# TODO: Find out how to execute the tests
-DBUILD_FT=OFF
-DENABLE_MPI_TESTS=OFF
-DENABLE_MPI="$(usex mpi)"
# Use system fabric
-DLIBFABRIC_DIR="${ESYSROOT}/usr"
# TODO: Unbundle ITT
)
cmake_src_configure
}
|