diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-08 17:32:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-08 17:32:36 +0100 |
commit | 02f2b9c649c1687088b6ccb6d30b35f519f107cf (patch) | |
tree | 0465ff79d2692a3e01db8bb1ab412adbbf744854 /dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild | |
parent | 74cd29ea4467291ea2c34971de87d6bdc21233e9 (diff) |
gentoo auto-resync : 08:04:2023 - 17:32:35
Diffstat (limited to 'dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild')
-rw-r--r-- | dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild b/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild new file mode 100644 index 000000000000..27388ddaa17b --- /dev/null +++ b/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild @@ -0,0 +1,74 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +inherit python-any-r1 flag-o-matic cmake + +CommitId=03b2046676707da64504e898490ab46104d4682a + +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" + +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 )" + +S="${WORKDIR}"/${PN}-${CommitId} + +python_check_deps() { + python_has_version \ + "dev-python/sphinx[${PYTHON_USEDEP}]" \ + "dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]" \ + "dev-python/breathe[${PYTHON_USEDEP}]" +} + +PATCHES=( + "${FILESDIR}"/${PN}-2022.01.13-gentoo.patch + "${FILESDIR}"/${PN}-2022.07.16-gcc13.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 +} |