From 91f19a3f41e80c4ab434a07636edb90912ef7556 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 6 Apr 2023 23:28:41 +0100 Subject: gentoo auto-resync : 06:04:2023 - 23:28:41 --- sci-libs/XNNPACK/Manifest | 2 + sci-libs/XNNPACK/XNNPACK-2022.12.22.ebuild | 84 ++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 sci-libs/XNNPACK/XNNPACK-2022.12.22.ebuild (limited to 'sci-libs/XNNPACK') diff --git a/sci-libs/XNNPACK/Manifest b/sci-libs/XNNPACK/Manifest index efba28139b7c..f86265b358d7 100644 --- a/sci-libs/XNNPACK/Manifest +++ b/sci-libs/XNNPACK/Manifest @@ -1,4 +1,6 @@ AUX XNNPACK-2022.02.17-gentoo.patch 434 BLAKE2B 23c3f9b2f368c827f9ee13da6bec050aeeb2caf7c9ff17bd1b3a4ece60f15d2e0cbfd2aab655d643e85dc0ee0b7514834d487bf1befa68331aee86ca51530e61 SHA512 38f42606a83d6fc8ee74c2ca547c9bdad9c4e38393efa22757716b76c7f527a4648f67828bb39b9e7cf044860b087fce174eea156dc8cd54907d3e863f264bdc DIST XNNPACK-2022.02.17.tar.gz 6761154 BLAKE2B 59be5d9efe6f46d22bc41d3152e6cd3103f6dfafd94cdf3229b86ecf44a46175c613760f3de35c98a24ccdec1783f205c1eceaf21133706fedd5f384529748eb SHA512 aacbe907bb2b7429143f4ec612881fb709fe37e7b3a7f4fd68193dee6bbe82e17d20b2c6f5a8025845a09f8269c1dfeaebfc5bd64ef196fa376d82ac9a44cb8f +DIST XNNPACK-2022.12.22.tar.gz 8342018 BLAKE2B 50426a47121418ef00a29b390ab4bb28211c17faaa7f4eacbf3a363fc3511b8655687e7f7f93f13b06a72ff9bcbde033305372687b6f2df1e1d5abaa910fe8be SHA512 1742ad4de3aa1a67cd5a3cbf15d82afc2cc8569a2abac92542f748a440ef37fef4e9d9c302b7b2813e3176934b637c761c1c0956d20ab1ba28b280d9b121d91b EBUILD XNNPACK-2022.02.17-r1.ebuild 1754 BLAKE2B 4808696f0afe4219972c3e40feb86b9227f031b584a68753ae1fd48daea983737350a8f3bdb32e954f53109b134195b0e8931ebf4a3ecd05b51ebd16c33d806e SHA512 a1cc06d2885731684d16f4ddb1fe55a85212130ae0b09118dd66226f54e2b70643399110057f425a907b05aeafed1b4b7b5eefb2d9fd325d5b2172319a3349ee +EBUILD XNNPACK-2022.12.22.ebuild 1829 BLAKE2B e228b0be6a4781adb1a70c5f9ba6e312b2d72b6713c654f7163b4bcd8f86d7f6cedbbde59878544abbb8e0721f64fc371a7924600aa4aec50aeb02457f3f0860 SHA512 e60ab6ded7802b1a10b39845e0627ec10b580b362b3502efa1f9ee083053c5bcbd782f3dc6987e9108d9a7a225d65cf9c4b24d0420f49a44c5c6eff7790288f4 MISC metadata.xml 614 BLAKE2B 4f33a22a79f975aaf528ba53bf6e26aeb91af4244f7aac4259a61033c0841f2ea3c29a62c6a984429bf2a87b8e8173df7481079e3438e76d2d7050a31856501a SHA512 e55c7b603f37211338d1472796015a24ff2d034339461eb67411ed4d59202ed52a9e8d554de5cd72636e35875421f983dee12b7173056c806cd9541148ca0f71 diff --git a/sci-libs/XNNPACK/XNNPACK-2022.12.22.ebuild b/sci-libs/XNNPACK/XNNPACK-2022.12.22.ebuild new file mode 100644 index 000000000000..c30a840eaf57 --- /dev/null +++ b/sci-libs/XNNPACK/XNNPACK-2022.12.22.ebuild @@ -0,0 +1,84 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit cmake + +CommitId=51a987591a6fc9f0fc0707077f53d763ac132cbf + +DESCRIPTION="library of floating-point neural network inference operators" +HOMEPAGE="https://github.com/google/XNNPACK/" +SRC_URI="https://github.com/google/${PN}/archive/${CommitId}.tar.gz + -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+assembly jit +memopt +sparse static-libs test" + +RDEPEND=" + dev-libs/cpuinfo + dev-libs/pthreadpool +" +DEPEND="${RDEPEND} + dev-libs/FP16 + dev-libs/FXdiv +" + +BDEPEND="test? ( dev-cpp/gtest )" +RESTRICT="!test? ( test )" +REQUIRED_USE="test? ( static-libs )" + +S="${WORKDIR}"/${PN}-${CommitId} + +PATCHES=( + "${FILESDIR}"/${PN}-2022.02.17-gentoo.patch +) + +src_prepare() { + sed -i \ + -e "/PRIVATE fp16)/d" \ + -e "/PRIVATE fxdiv)/d" \ + -e "/PRIVATE clog)/d" \ + -e "/TARGET_LINK_LIBRARIES/s: fp16::" \ + CMakeLists.txt \ + || die + dropTest=( + "add-nd-test" + "subtract-nd-test" + "f32-velu-test" + "qc8-dwconv-minmax-fp32-test" + "qs8-dwconv-minmax-fp32-test" + "qs8-vadd-minmax-test" + "qs8-vaddc-minmax-test" + "qu8-dwconv-minmax-fp32-test" + "qu8-vadd-minmax-test" + "qu8-vaddc-minmax-test" + ) + for id in ${dropTest[@]} + do + sed -i \ + -e "/ADD_TEST(${id}/d" \ + CMakeLists.txt \ + || die + done + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DXNNPACK_BUILD_BENCHMARKS=OFF + -DXNNPACK_USE_SYSTEM_LIBS=ON + -DXNNPACK_BUILD_TESTS=$(usex test ON OFF) + -DXNNPACK_LIBRARY_TYPE=$(usex static-libs static shared) + -DXNNPACK_ENABLE_ASSEMBLY=$(usex assembly ON OFF) + -DXNNPACK_ENABLE_JIT=$(usex jit ON OFF) + -DXNNPACK_ENABLE_MEMOPT=$(usex memopt ON OFF) + -DXNNPACK_ENABLE_SPARSE=$(usex sparse ON OFF) + -DCMAKE_POSITION_INDEPENDENT_CODE=ON + ) + + cmake_src_configure + cd "${BUILD_DIR}" +} -- cgit v1.2.3