diff options
author | 2023-02-25 12:24:12 +0100 | |
---|---|---|
committer | 2023-02-25 12:24:12 +0100 | |
commit | f02b5564d73f8718665690b4dd0ba9b89b6524d7 (patch) | |
tree | ef6945d2ad8891abebe8b19cb631284c4c957bd3 /dev-libs | |
parent | dev-libs/oneCCL: add 2021.8 (diff) | |
download | sci-f02b5564d73f8718665690b4dd0ba9b89b6524d7.tar.gz sci-f02b5564d73f8718665690b4dd0ba9b89b6524d7.tar.bz2 sci-f02b5564d73f8718665690b4dd0ba9b89b6524d7.zip |
dev-libs/oneDNN: add 3.0.1
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/oneDNN/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/oneDNN/oneDNN-3.0.1.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-libs/oneDNN/Manifest b/dev-libs/oneDNN/Manifest index 3f702434b..b66805cea 100644 --- a/dev-libs/oneDNN/Manifest +++ b/dev-libs/oneDNN/Manifest @@ -1 +1,2 @@ DIST oneDNN-2.7.2.tar.gz 6409290 BLAKE2B 8e6fb262a77469cfaddd633bf11334d04ffb641fa798f0de23e458086c66c9b7e932d45d52baf8a93453495df9280f6a97dc3f220d7674850d1ca6c525ce2a7f SHA512 faf8ea953f552afaafcc597f647a98187c8c6dabd8a532fc1b8037626fa77a8a6543dce3247d953a470391d39189ba421ab7de589a8bb7c4c38e22327ab1c401 +DIST oneDNN-3.0.1.tar.gz 7189577 BLAKE2B e55798bb3ab921945873040876514c0b22a77edce34d4bba249537cc56bbcd846eecb461dc22d2ea3bf4b1c47f9079a9c876307f3044e059f71e69b5669886aa SHA512 ca7d7d97469c878953507ddd7c4e3a09bb9955f160ce57529b5a943afd08db0ff82755ffded857518193fcab0e0be2b4ebe45f5e8bfba1a53006b0f161ac15b5 diff --git a/dev-libs/oneDNN/oneDNN-3.0.1.ebuild b/dev-libs/oneDNN/oneDNN-3.0.1.ebuild new file mode 100644 index 000000000..1c66ec72c --- /dev/null +++ b/dev-libs/oneDNN/oneDNN-3.0.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DOCS_BUILDER="doxygen" +DOCS_DIR="${WORKDIR}/${P}_build" +# There is additional sphinx documentation but we are missing dependency doxyrest. +inherit cmake docs + +DESCRIPTION="oneAPI Deep Neural Network Library" +HOMEPAGE="https://github.com/oneapi-src/oneDNN" +SRC_URI="https://github.com/oneapi-src/oneDNN/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="test" +# TODO: get the tests up and running +#RESTRICT="!test? ( test )" +RESTRICT="test" + +BDEPEND="sys-devel/DPC++" + +DEPEND=" + dev-cpp/tbb:= + dev-libs/level-zero:= + virtual/opencl +" +RDEPEND="${DEPEND}" + +src_prepare() { + # 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=( + -DDNNL_CPU_RUNTIME=DPCPP + -DDNNL_GPU_RUNTIME=DPCPP + -DDNNL_BUILD_TESTS="$(usex test)" + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + docs_compile +} + +src_install() { + cmake_src_install + # Correct docdir + mv "${ED}/usr/share/doc/dnnl/"* "${ED}/usr/share/doc/${PF}" || die + rm -r "${ED}/usr/share/doc/dnnl" || die +} |