From f5ef7f2371babf22c2c3fad17108692b09e4c98e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 2 May 2024 00:00:17 +0100 Subject: gentoo auto-resync : 02:05:2024 - 00:00:17 --- dev-libs/FBGEMM/FBGEMM-2023.12.04.ebuild | 79 ++++++++++++++++++++++++++++++++ dev-libs/FBGEMM/Manifest | 2 + 2 files changed, 81 insertions(+) create mode 100644 dev-libs/FBGEMM/FBGEMM-2023.12.04.ebuild (limited to 'dev-libs/FBGEMM') diff --git a/dev-libs/FBGEMM/FBGEMM-2023.12.04.ebuild b/dev-libs/FBGEMM/FBGEMM-2023.12.04.ebuild new file mode 100644 index 000000000000..9299ba5bb74c --- /dev/null +++ b/dev-libs/FBGEMM/FBGEMM-2023.12.04.ebuild @@ -0,0 +1,79 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +inherit python-any-r1 flag-o-matic cmake + +CommitId=dbc3157bf256f1339b3fa1fef2be89ac4078be0e + +DESCRIPTION="Facebook GEneral Matrix Multiplication" +HOMEPAGE="https://github.com/pytorch/FBGEMM" +SRC_URI="https://github.com/pytorch/${PN}/archive/${CommitId}.tar.gz + -> ${P}.tar.gz" + +S="${WORKDIR}"/${PN}-${CommitId} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc test" + +DEPEND=" + >=dev-libs/asmjit-2022.07.02 + dev-libs/cpuinfo +" +RDEPEND="${DEPEND}" +BDEPEND=" + test? ( dev-cpp/gtest ) + doc? ( + $(python_gen_any_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}] + dev-python/breathe[${PYTHON_USEDEP}] + ') + ) + ${PYTHON_DEPS} +" +RESTRICT="!test? ( test )" + +python_check_deps() { + if use doc; then + python_has_version \ + "dev-python/sphinx[${PYTHON_USEDEP}]" \ + "dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]" \ + "dev-python/breathe[${PYTHON_USEDEP}]" + fi +} + +PATCHES=( + "${FILESDIR}"/${PN}-2023.11.02-gentoo.patch +) + +src_prepare() { + # Bug #855668 + filter-lto + + rm test/RowWiseSparseAdagradFusedTest.cc || die + rm test/SparseAdagradTest.cc || die + sed -i \ + -e "/-Werror/d" \ + CMakeLists.txt \ + || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DFBGEMM_LIBRARY_TYPE=shared + -DFBGEMM_BUILD_BENCHMARKS=OFF + -DFBGEMM_BUILD_DOCS=$(usex doc ON OFF) + -DFBGEMM_BUILD_TESTS=$(usex test ON OFF) + ) + cmake_src_configure +} + +src_test() { + OMP_STACKSIZE=512k cmake_src_test +} diff --git a/dev-libs/FBGEMM/Manifest b/dev-libs/FBGEMM/Manifest index 9e51f55cbb04..7e9d42df2b07 100644 --- a/dev-libs/FBGEMM/Manifest +++ b/dev-libs/FBGEMM/Manifest @@ -1,6 +1,8 @@ AUX FBGEMM-2023.11.02-gentoo.patch 2162 BLAKE2B c585ac736dc1494820e778dbba951a340b01cc60d99fe5c308bb140d42a0af8f6c05273963e0dd99a7f1ad2dc9af854702bdadf5b2682c5a959a0e742d22c772 SHA512 296d4f15e4047e98a0ccf7a3d23a9661ca2be8f4599d4dd5541f6e728f181cf58e836f09382ef2ed69792d1c9da3146a57cbce9041f7a43ab5354e641551f9fd DIST FBGEMM-2023.11.02.tar.gz 895265 BLAKE2B 0f884147a86881159485680f1cb0c7b7e65bba5a98e62c38534041264f920e08a268e348e3d82ba3d246226a10f592d86dc37bce0cfa42c72dad478041a6c807 SHA512 030f27a120586240c5f80026bd033cf6fedbe1ae12a667308d33d6321f2334021d474a3625795d1f34734336b688b19c09134e10d5cc8dec86e84485de298584 DIST FBGEMM-2023.12.01.tar.gz 1004090 BLAKE2B dc19ebee06bccb888e5d03606168c7439ce8c96303a697056edd22d3a3a6ff4f4f3ddf5371d50aa774890ca1ad66d665f5e54976dc1b8da841759a3f4d64c4d7 SHA512 ab37964326d2cbbcbf0f2c722675d1f059407fc3185275d37f2e04f3e516fe0733ac1fb35351fc7e7c308e9c0da40811d3657a10a3696cb7648494df79408aab +DIST FBGEMM-2023.12.04.tar.gz 1004231 BLAKE2B 930ae36f4761901e1b22d7ce4a341f051158a23646bd1f5309f6eb98c1ca483e8aa4e5a6cfc44ced702f73f84e3398c1439799457a98d0d8a009702e335d5c03 SHA512 3c786572b4a69af2a32b360711014469ded69be580d0079ba79ab81cbaa964aab51e5a189e24f0ec7dc93402d761167898918a0ea0f86d556cad4b99f5858d8c EBUILD FBGEMM-2023.11.02.ebuild 1573 BLAKE2B 88fb8637f4d9b7660a0bcdb3724747deac2082c697bf03d1fd0e281ecf6a81a64d14f040bcf420992f7cbdbc8e0bf7fd9d66decc69ed043cb511497faffb6549 SHA512 946a29d14eb0955a0570ad7122b41bca9c709976fdff9acb6fb06f1045e1d76c98b8b8ffcb6654c7e14610fb669fea9473228897cbff4c4cb0d75478cbbe136e EBUILD FBGEMM-2023.12.01.ebuild 1586 BLAKE2B 2962b4eb6ed5a11c97662d8374ce524fa8ac472c88eb8a2afe6107e290b406e224bb25d853633944c68c53e63c3bcd6580eeadb7b2a24214f759b073d534c2e1 SHA512 6f36f059a3b3ebd5446e0580f039fc4b64a787be322f2c26a5bc5242dc089ad43cdcad9b9c3b563c7fdd9b9f5a90d6a59e5f0b12fada0b12d78dcc9403646ff3 +EBUILD FBGEMM-2023.12.04.ebuild 1586 BLAKE2B eac14882895266fe548272fb1324e181a81303062190f56395e536b9885c5fadc4ff198c8355a17c129a9784e10dd1705108a876cc351b9b022712b01b6cd69a SHA512 1e437cc99eaf30aca8235dc5a3545517066c76757ebdd0766b562dca26a29eaa09b756580359831b40ce8da6e17cd9ba83e3c3c6e6a838a46d3b132cdc87dc81 MISC metadata.xml 327 BLAKE2B 860b9c0ecb3b0029c855db0a0054590135f3bd6ec9dad20cdf433fc70c119354518eea50fdbb2a204eb8cc6621de23e6928a2f9ec961ac0c51fd9dae22fa8488 SHA512 3a0d5a69421a41e62ce134636025e0024010c1938ee35f7489d8d870d915a66cd526aa60d107a378dc4522ff71b7f10486e20867c8b424b1b47e458988ebff58 -- cgit v1.2.3