diff options
author | 2023-08-22 11:22:42 +0200 | |
---|---|---|
committer | 2023-08-22 11:22:42 +0200 | |
commit | 43b0e338e86fd4aecd5e50a691e4fe4600f0e014 (patch) | |
tree | 6b700cef2faacbc79a681089e5a9f7e89f7a22de /dev-libs | |
parent | dev-libs/oneCCL: add 2021.10 (diff) | |
download | sci-43b0e338e86fd4aecd5e50a691e4fe4600f0e014.tar.gz sci-43b0e338e86fd4aecd5e50a691e4fe4600f0e014.tar.bz2 sci-43b0e338e86fd4aecd5e50a691e4fe4600f0e014.zip |
dev-libs/oneDNN: add 3.2.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.2.1.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-libs/oneDNN/Manifest b/dev-libs/oneDNN/Manifest index b66805cea..80f52571c 100644 --- a/dev-libs/oneDNN/Manifest +++ b/dev-libs/oneDNN/Manifest @@ -1,2 +1,3 @@ DIST oneDNN-2.7.2.tar.gz 6409290 BLAKE2B 8e6fb262a77469cfaddd633bf11334d04ffb641fa798f0de23e458086c66c9b7e932d45d52baf8a93453495df9280f6a97dc3f220d7674850d1ca6c525ce2a7f SHA512 faf8ea953f552afaafcc597f647a98187c8c6dabd8a532fc1b8037626fa77a8a6543dce3247d953a470391d39189ba421ab7de589a8bb7c4c38e22327ab1c401 DIST oneDNN-3.0.1.tar.gz 7189577 BLAKE2B e55798bb3ab921945873040876514c0b22a77edce34d4bba249537cc56bbcd846eecb461dc22d2ea3bf4b1c47f9079a9c876307f3044e059f71e69b5669886aa SHA512 ca7d7d97469c878953507ddd7c4e3a09bb9955f160ce57529b5a943afd08db0ff82755ffded857518193fcab0e0be2b4ebe45f5e8bfba1a53006b0f161ac15b5 +DIST oneDNN-3.2.1.tar.gz 9186820 BLAKE2B f85cb1b410c3f57e098106ca13939c8c93c396e012b15a63c4f728ba75138a6f371db5fd182a54711479beca8f215578ea52d9c3d07be36647f6befb6c16746a SHA512 115819dc47fce5ef8fc7403f88e141743b360bc33243c90740d1b3871849ac379930d23e3e1d62d0abaaa3af5d2cdbd4218b80aa1be1edb09d0d949f7532a559 diff --git a/dev-libs/oneDNN/oneDNN-3.2.1.ebuild b/dev-libs/oneDNN/oneDNN-3.2.1.ebuild new file mode 100644 index 000000000..1c66ec72c --- /dev/null +++ b/dev-libs/oneDNN/oneDNN-3.2.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 +} |