From 0f558761aa2dee1017b4751e4017205e015a9560 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 29 Jun 2022 12:04:12 +0100 Subject: gentoo resync : 29.12.2022 --- dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild | 51 +++++++++++++++++ dev-libs/FBGEMM/Manifest | 4 ++ .../FBGEMM/files/FBGEMM-2022.01.13-gentoo.patch | 65 ++++++++++++++++++++++ dev-libs/FBGEMM/metadata.xml | 11 ++++ 4 files changed, 131 insertions(+) create mode 100644 dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild create mode 100644 dev-libs/FBGEMM/Manifest create mode 100644 dev-libs/FBGEMM/files/FBGEMM-2022.01.13-gentoo.patch create mode 100644 dev-libs/FBGEMM/metadata.xml (limited to 'dev-libs/FBGEMM') diff --git a/dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild b/dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild new file mode 100644 index 000000000000..1ecfb6cc82f6 --- /dev/null +++ b/dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild @@ -0,0 +1,51 @@ +# 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 cmake + +CommitId=135412d2646f3bd753c8f1cfd33616110bbccd27 + +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 + dev-libs/cpuinfo +" +RDEPEND="${DEPEND}" +BDEPEND=" + test? ( dev-cpp/gtest ) + ${PYTHON_DEPS} +" +RESTRICT="!test? ( test )" + +S="${WORKDIR}"/${PN}-${CommitId} + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch +) + +src_prepare() { + 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 +} diff --git a/dev-libs/FBGEMM/Manifest b/dev-libs/FBGEMM/Manifest new file mode 100644 index 000000000000..856f5b98ba80 --- /dev/null +++ b/dev-libs/FBGEMM/Manifest @@ -0,0 +1,4 @@ +AUX FBGEMM-2022.01.13-gentoo.patch 2260 BLAKE2B c3c690490b200e1191013259872ef826b63012161cb5664f11f2e838a632fd010a17d6913bd89c7fc45850c5e3273a0d087081b63964483fefd21f02fee60403 SHA512 f4c7c58e45568303aa2d9308586adb544185f30f72d989928889ef46c9ec44342272a865185cdeef761e5ce4e44299a08de4aff2a7b30efa4cc90a26cca14861 +DIST FBGEMM-2022.01.13.tar.gz 532297 BLAKE2B bced7e1a1712351a87762e8d0a28ed3bbc5678c8ce70b440e769e53dc15f68e3ec8c89df9307f33da788bd376613720892493c0b519d3860a6e2edb48de1fdba SHA512 a416c2c11b0e6798e0dbb376050ead79cb602cd4f0e41b6109eeefe3e939e410adf0ce828d1224a358eb8245a935cc431d8023ccc396f08ca88276fb91c66157 +EBUILD FBGEMM-2022.01.13.ebuild 983 BLAKE2B 44094d63d2d8c51858b34781f3642ead1632d28dce6e79ef7f315e3c81159e85b069d6e85f39445a6302f254c427d68d9ac901cae91784fd716b6ac65fc171b4 SHA512 6d79751622cbb80afe0467fbc22eb7fdce7d175ea11eaf42ffd18fad845db492de2eaefe83ab282606fc24ac7be872dc735589b0bebf45e433393d2fbe478260 +MISC metadata.xml 327 BLAKE2B 860b9c0ecb3b0029c855db0a0054590135f3bd6ec9dad20cdf433fc70c119354518eea50fdbb2a204eb8cc6621de23e6928a2f9ec961ac0c51fd9dae22fa8488 SHA512 3a0d5a69421a41e62ce134636025e0024010c1938ee35f7489d8d870d915a66cd526aa60d107a378dc4522ff71b7f10486e20867c8b424b1b47e458988ebff58 diff --git a/dev-libs/FBGEMM/files/FBGEMM-2022.01.13-gentoo.patch b/dev-libs/FBGEMM/files/FBGEMM-2022.01.13-gentoo.patch new file mode 100644 index 000000000000..e2aacd3f65ef --- /dev/null +++ b/dev-libs/FBGEMM/files/FBGEMM-2022.01.13-gentoo.patch @@ -0,0 +1,65 @@ +--- a/CMakeLists.txt 2022-05-21 13:13:50.806813151 +0200 ++++ b/CMakeLists.txt 2022-05-21 13:16:46.448969453 +0200 +@@ -165,7 +165,7 @@ + message(WARNING "CMAKE_CXX_FLAGS_RELEASE is ${CMAKE_CXX_FLAGS_RELEASE}") + message(WARNING "==========") + +-if(NOT TARGET asmjit) ++if(FALSE) + #Download asmjit from github if ASMJIT_SRC_DIR is not specified. + if(NOT DEFINED ASMJIT_SRC_DIR) + set(ASMJIT_SRC_DIR "${FBGEMM_SOURCE_DIR}/third_party/asmjit" +@@ -184,7 +184,7 @@ + set_property(TARGET asmjit PROPERTY POSITION_INDEPENDENT_CODE ON) + endif() + +-if(NOT TARGET cpuinfo) ++if(FALSE) + #Download cpuinfo from github if CPUINFO_SOURCE_DIR is not specified. + if(NOT DEFINED CPUINFO_SOURCE_DIR) + set(CPUINFO_SOURCE_DIR "${FBGEMM_SOURCE_DIR}/third_party/cpuinfo" +@@ -261,7 +261,6 @@ + + target_link_libraries(fbgemm $ + $) +-add_dependencies(fbgemm asmjit cpuinfo) + + install(TARGETS fbgemm EXPORT fbgemmLibraryConfig + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} +@@ -268,6 +268,8 @@ + + install(FILES ${FBGEMM_PUBLIC_HEADERS} + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/fbgemm") ++install(FILES src/RefImplementations.h ++ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/fbgemm/src") + + install(EXPORT fbgemmLibraryConfig DESTINATION share/cmake/fbgemm + FILE fbgemmLibraryConfig.cmake) +--- a/test/CMakeLists.txt 2022-05-21 13:15:34.140135199 +0200 ++++ b/test/CMakeLists.txt 2022-05-21 13:17:59.170813431 +0200 +@@ -1,6 +1,6 @@ + cmake_minimum_required(VERSION 3.5 FATAL_ERROR) + +-if(FBGEMM_BUILD_TESTS AND NOT TARGET gtest) ++if(FALSE) + #Download Googletest framework from github if + #GOOGLETEST_SOURCE_DIR is not specified. + if(NOT DEFINED GOOGLETEST_SOURCE_DIR) +@@ -62,7 +62,6 @@ + target_link_libraries(${TESTNAME} ${OpenMP_CXX_LIBRARIES}) + endif() + +- add_dependencies(${TESTNAME} gtest fbgemm) + add_test(${TESTNAME} ${TESTNAME}) + set_target_properties(${TESTNAME} PROPERTIES FOLDER test) + endmacro() +--- a/src/PackMatrix.cc 2022-05-24 08:19:00.639462626 +0200 ++++ b/src/PackMatrix.cc 2022-05-24 08:27:59.127720548 +0200 +@@ -30,6 +30,7 @@ + } + + template ++FBGEMM_API + int PackMatrix::packedBufferSize( + int rows, + int cols, diff --git a/dev-libs/FBGEMM/metadata.xml b/dev-libs/FBGEMM/metadata.xml new file mode 100644 index 000000000000..b13a1c693d1f --- /dev/null +++ b/dev-libs/FBGEMM/metadata.xml @@ -0,0 +1,11 @@ + + + + + tupone@gentoo.org + Tupone Alfredo + + + pytorch/FBGEMM + + -- cgit v1.2.3