diff options
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/oneCCL/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/oneCCL/oneCCL-2021.10.ebuild | 62 |
2 files changed, 63 insertions, 0 deletions
diff --git a/dev-libs/oneCCL/Manifest b/dev-libs/oneCCL/Manifest index 95c5b9e72..2eb21d0f6 100644 --- a/dev-libs/oneCCL/Manifest +++ b/dev-libs/oneCCL/Manifest @@ -1,2 +1,3 @@ +DIST oneCCL-2021.10.tar.gz 37777252 BLAKE2B fb8d4429cbd7366efdd6e392d8132631c4dbc770962781a49b5b2df6e0c0a9b9b6c97043997066879b22ea85bf76e507bdcc27a78e40beffa7520d2a420b35ef SHA512 3ff845bf28e18c195411f5ed4542f172648feeb385fc456b6222d527018f48625c9be7e96a0f9b973f8af7ad1cc122a83ac8e169eeb59d5a35ed901910fdbace DIST oneCCL-2021.7.1.tar.gz 35807233 BLAKE2B 0608b548f42c28983453a1e693c922aff0f6c77ffbf35f92b69113ba9fb02263bf8e1efa94ba47330559bb97b81493923cac10ce2c68c5fb50181677152fcc28 SHA512 e77d836afdcccbc2a1d2f9903916f17698a0d5ad795cd76dbb19a835375e89d0ecfa4695d87758e1ca6078bc23e30416d0a228ad3060816409b91851ad0b0790 DIST oneCCL-2021.8.tar.gz 36868388 BLAKE2B b27f04efaddf2c31befd70388f0aa84b9cb5266b5d4e4a300064e0dc98e4d7eee3590288dc0b8cc1640fe0a9b928a0dfdf16a2ea45db9bd1517a8ca2dd00bdfe SHA512 879d1b73e594d5ff2c5a5aee08dfb4aded11c4974a9efcc199e7c2ee87b00c2441edb1dcb073bb4ed2587d752efcafe338072959b7b0f89fc1692dc377f748c2 diff --git a/dev-libs/oneCCL/oneCCL-2021.10.ebuild b/dev-libs/oneCCL/oneCCL-2021.10.ebuild new file mode 100644 index 000000000..a67659f4a --- /dev/null +++ b/dev-libs/oneCCL/oneCCL-2021.10.ebuild @@ -0,0 +1,62 @@ +# 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:= + sys-devel/ittapi + sys-cluster/pmix + mpi? ( virtual/mpi ) +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-2021.8-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/* || die + + # DPC++ compiler required for full functionality + export CC="${ESYSROOT}/usr/lib/llvm/intel/bin/clang" + 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" + ) + cmake_src_configure +} |