diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-20 14:41:37 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-20 14:41:37 +0100 |
commit | d4b912f35e71cc281dcca92af83eb059d8a0fe0a (patch) | |
tree | 2759e74ab061579d0f6985499279f8aa06adb07f /dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild | |
parent | c915adf64c1415679bfe6b55c95348db2f89202e (diff) |
gentoo auto-resync : 20:07:2022 - 14:41:36
Diffstat (limited to 'dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild')
-rw-r--r-- | dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild b/dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild new file mode 100644 index 000000000000..0abbaeb568c3 --- /dev/null +++ b/dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild @@ -0,0 +1,54 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +inherit python-any-r1 flag-o-matic cmake + +CommitId=7d59e803359eb323598e572700db27de467b705a + +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="test" + +DEPEND=" + >=dev-libs/asmjit-2022.07.02 + dev-libs/cpuinfo +" +RDEPEND="${DEPEND}" +BDEPEND=" + test? ( dev-cpp/gtest ) + ${PYTHON_DEPS} +" +RESTRICT="!test? ( test )" + +S="${WORKDIR}"/${PN}-${CommitId} + +PATCHES=( + "${FILESDIR}"/${PN}-2022.01.13-gentoo.patch +) + +src_prepare() { + # Bug #855668 + filter-lto + + rm test/RowWiseSparseAdagradFusedTest.cc || die + rm test/SparseAdagradTest.cc || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DFBGEMM_LIBRARY_TYPE=shared + -DFBGEMM_BUILD_BENCHMARKS=OFF + -DFBGEMM_BUILD_TESTS=$(usex test ON OFF) + ) + cmake_src_configure +} |