[gentoo-commits] repo/gentoo:master commit in: dev-libs/FBGEMM/

2024-05-01 Thread Alfredo Tupone
commit: 6f8b247d389a1f4c1077faaaf205e839ae8a35ad
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Wed May  1 11:38:52 2024 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Wed May  1 11:38:52 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f8b247d

dev-libs/FBGEMM: add 2023.12.04

Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-libs/FBGEMM/FBGEMM-2023.12.04.ebuild | 79 
 dev-libs/FBGEMM/Manifest |  1 +
 2 files changed, 80 insertions(+)

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 ..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 edf24ff03da4..5b052896fa9b 100644
--- a/dev-libs/FBGEMM/Manifest
+++ b/dev-libs/FBGEMM/Manifest
@@ -1,2 +1,3 @@
 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



[gentoo-commits] repo/gentoo:master commit in: dev-libs/FBGEMM/files/

2024-02-25 Thread Alfredo Tupone
commit: 570d840a744777aef8ffe02d3990ed8d9fc92f4f
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Sun Feb 25 17:13:02 2024 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Sun Feb 25 17:22:53 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=570d840a

dev-libs/FBGEMM: rm unused file

Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-libs/FBGEMM/files/FBGEMM-2023.02.10-test.patch | 11 ---
 1 file changed, 11 deletions(-)

diff --git a/dev-libs/FBGEMM/files/FBGEMM-2023.02.10-test.patch 
b/dev-libs/FBGEMM/files/FBGEMM-2023.02.10-test.patch
deleted file mode 100644
index 062887a01819..
--- a/dev-libs/FBGEMM/files/FBGEMM-2023.02.10-test.patch
+++ /dev/null
@@ -1,11 +0,0 @@
 a/test/CMakeLists.txt  2023-04-12 07:53:37.904871157 +0200
-+++ b/test/CMakeLists.txt  2023-04-12 07:53:56.597572954 +0200
-@@ -39,7 +39,7 @@
- QuantizationHelpers.cc
- TestUtils.cc)
-   set_target_properties(${TESTNAME} PROPERTIES
--  CXX_STANDARD 11
-+  CXX_STANDARD 14
-   CXX_EXTENSIONS NO)
-   #To compile test files with AVX2 turned on
-   #For static build, defining FBGEMM_STATIC to avoid generating



[gentoo-commits] repo/gentoo:master commit in: dev-libs/FBGEMM/, dev-libs/FBGEMM/files/

2024-02-23 Thread Alfredo Tupone
commit: dcf7a0395989c3c40a72f9e2f30916334aefdfae
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Sat Feb 24 07:00:12 2024 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Sat Feb 24 07:00:12 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcf7a039

dev-libs/FBGEMM: add 2023.12.01, drop 2023.02.10

Signed-off-by: Alfredo Tupone  gentoo.org>

 ...-2023.02.10.ebuild => FBGEMM-2023.12.01.ebuild} | 10 ++--
 dev-libs/FBGEMM/Manifest   |  2 +-
 .../FBGEMM/files/FBGEMM-2022.01.13-gentoo.patch| 65 --
 .../FBGEMM/files/FBGEMM-2022.07.16-gcc13.patch | 10 
 4 files changed, 5 insertions(+), 82 deletions(-)

diff --git a/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild 
b/dev-libs/FBGEMM/FBGEMM-2023.12.01.ebuild
similarity index 85%
rename from dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
rename to dev-libs/FBGEMM/FBGEMM-2023.12.01.ebuild
index f9344e4d5411..0d2e34d143c4 100644
--- a/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
+++ b/dev-libs/FBGEMM/FBGEMM-2023.12.01.ebuild
@@ -1,12 +1,12 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{9..12} )
+PYTHON_COMPAT=( python3_{10..12} )
 inherit python-any-r1 flag-o-matic cmake
 
-CommitId=03b2046676707da64504e898490ab46104d4682a
+CommitId=88fc6e741bc03e09fcdc3cd365fa3aafddb7ec24
 
 DESCRIPTION="Facebook GEneral Matrix Multiplication"
 HOMEPAGE="https://github.com/pytorch/FBGEMM";
@@ -48,9 +48,7 @@ python_check_deps() {
 }
 
 PATCHES=(
-   "${FILESDIR}"/${PN}-2022.01.13-gentoo.patch
-   "${FILESDIR}"/${PN}-2022.07.16-gcc13.patch
-   "${FILESDIR}"/${P}-test.patch
+   "${FILESDIR}"/${PN}-2023.11.02-gentoo.patch
 )
 
 src_prepare() {

diff --git a/dev-libs/FBGEMM/Manifest b/dev-libs/FBGEMM/Manifest
index 537d3f459c6a..edf24ff03da4 100644
--- a/dev-libs/FBGEMM/Manifest
+++ b/dev-libs/FBGEMM/Manifest
@@ -1,2 +1,2 @@
-DIST FBGEMM-2023.02.10.tar.gz 854918 BLAKE2B 
2af11baf95c1f33e1b1dd6f2a51dde2c991ff0f606402a7aaa539b7bc505c3707cafaa96d8f742c91672ec09a1f18a69f0e69c012b6db11d5297d602b8f4860c
 SHA512 
a59d928150d674c56b5d38f73e62b5f4e2b527ea1f7ebb891ea1d3356e4183e0f469d145fca37fcb1c85f8773cf54226a8e41389fe9783474c457a7bd31846d6
 DIST FBGEMM-2023.11.02.tar.gz 895265 BLAKE2B 
0f884147a86881159485680f1cb0c7b7e65bba5a98e62c38534041264f920e08a268e348e3d82ba3d246226a10f592d86dc37bce0cfa42c72dad478041a6c807
 SHA512 
030f27a120586240c5f80026bd033cf6fedbe1ae12a667308d33d6321f2334021d474a3625795d1f34734336b688b19c09134e10d5cc8dec86e84485de298584
+DIST FBGEMM-2023.12.01.tar.gz 1004090 BLAKE2B 
dc19ebee06bccb888e5d03606168c7439ce8c96303a697056edd22d3a3a6ff4f4f3ddf5371d50aa774890ca1ad66d665f5e54976dc1b8da841759a3f4d64c4d7
 SHA512 
ab37964326d2cbbcbf0f2c722675d1f059407fc3185275d37f2e04f3e516fe0733ac1fb35351fc7e7c308e9c0da40811d3657a10a3696cb7648494df79408aab

diff --git a/dev-libs/FBGEMM/files/FBGEMM-2022.01.13-gentoo.patch 
b/dev-libs/FBGEMM/files/FBGEMM-2022.01.13-gentoo.patch
deleted file mode 100644
index 9ff87d5b6cb4..
--- a/dev-libs/FBGEMM/files/FBGEMM-2022.01.13-gentoo.patch
+++ /dev/null
@@ -1,65 +0,0 @@
 a/CMakeLists.txt   2022-05-21 13:13:50.806813151 +0200
-+++ b/CMakeLists.txt   2022-05-21 13:16:46.448969453 +0200
-@@ -187,7 +187,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"
-@@ -216,7 +216,7 @@
-   endif()
- 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"
-@@ -293,7 +293,6 @@
- 
- target_link_libraries(fbgemm $
-   $)
--add_dependencies(fbgemm asmjit cpuinfo)
- 
- install(TARGETS fbgemm EXPORT fbgemmLibraryConfig
-   ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
-@@ -302,6 +301,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)
-@@ -67,7 +67,6 @@
- target_link_libraries(${TESTNAME} ${OpenMP_CXX_LIBRARIES})
-   endif()
- 
--  add_depen

[gentoo-commits] repo/gentoo:master commit in: dev-libs/FBGEMM/

2023-12-28 Thread Alfredo Tupone
commit: eb4787c67b48af431a85621cc124288cecf16407
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Thu Dec 28 21:03:45 2023 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Thu Dec 28 21:03:45 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb4787c6

dev-libs/FBGEMM: enable py3.12

Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild | 2 +-
 dev-libs/FBGEMM/FBGEMM-2023.11.02.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild 
b/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
index 22674b795e6c..f9344e4d5411 100644
--- a/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
+++ b/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{9..12} )
 inherit python-any-r1 flag-o-matic cmake
 
 CommitId=03b2046676707da64504e898490ab46104d4682a

diff --git a/dev-libs/FBGEMM/FBGEMM-2023.11.02.ebuild 
b/dev-libs/FBGEMM/FBGEMM-2023.11.02.ebuild
index e4307e16afe8..ce3c44e805d1 100644
--- a/dev-libs/FBGEMM/FBGEMM-2023.11.02.ebuild
+++ b/dev-libs/FBGEMM/FBGEMM-2023.11.02.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{9..12} )
 inherit python-any-r1 flag-o-matic cmake
 
 CommitId=cdae5d97e3aa9fda4222f31c04dbd80249c918d1



[gentoo-commits] repo/gentoo:master commit in: dev-libs/FBGEMM/files/, dev-libs/FBGEMM/

2023-12-02 Thread Alfredo Tupone
commit: a18e19013d93822a2dffc221dc3d9bf5285db7e8
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Sat Dec  2 20:57:26 2023 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Sat Dec  2 20:59:21 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a18e1901

dev-libs/FBGEMM: add 2023.11.02

Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-libs/FBGEMM/FBGEMM-2023.11.02.ebuild   | 79 ++
 dev-libs/FBGEMM/Manifest   |  1 +
 .../FBGEMM/files/FBGEMM-2023.11.02-gentoo.patch| 69 +++
 3 files changed, 149 insertions(+)

diff --git a/dev-libs/FBGEMM/FBGEMM-2023.11.02.ebuild 
b/dev-libs/FBGEMM/FBGEMM-2023.11.02.ebuild
new file mode 100644
index ..e4307e16afe8
--- /dev/null
+++ b/dev-libs/FBGEMM/FBGEMM-2023.11.02.ebuild
@@ -0,0 +1,79 @@
+# 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=cdae5d97e3aa9fda4222f31c04dbd80249c918d1
+
+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() {
+   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}"/${P}-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 5ca7cee0d7e4..537d3f459c6a 100644
--- a/dev-libs/FBGEMM/Manifest
+++ b/dev-libs/FBGEMM/Manifest
@@ -1 +1,2 @@
 DIST FBGEMM-2023.02.10.tar.gz 854918 BLAKE2B 
2af11baf95c1f33e1b1dd6f2a51dde2c991ff0f606402a7aaa539b7bc505c3707cafaa96d8f742c91672ec09a1f18a69f0e69c012b6db11d5297d602b8f4860c
 SHA512 
a59d928150d674c56b5d38f73e62b5f4e2b527ea1f7ebb891ea1d3356e4183e0f469d145fca37fcb1c85f8773cf54226a8e41389fe9783474c457a7bd31846d6
+DIST FBGEMM-2023.11.02.tar.gz 895265 BLAKE2B 
0f884147a86881159485680f1cb0c7b7e65bba5a98e62c38534041264f920e08a268e348e3d82ba3d246226a10f592d86dc37bce0cfa42c72dad478041a6c807
 SHA512 
030f27a120586240c5f80026bd033cf6fedbe1ae12a667308d33d6321f2334021d474a3625795d1f34734336b688b19c09134e10d5cc8dec86e84485de298584

diff --git a/dev-libs/FBGEMM/files/FBGEMM-2023.11.02-gentoo.patch 
b/dev-libs/FBGEMM/files/FBGEMM-2023.11.02-gentoo.patch
new file mode 100644
index ..6ff4950211a2
--- /dev/null
+++ b/dev-libs/FBGEMM/files/FBGEMM-2023.11.02-gentoo.patch
@@ -0,0 +1,69 @@
+--- a/CMakeLists.txt   2022-05-21 13:13:50.806813151 +0200
 b/CMakeLists.txt   2022-05-21 13:16:46.448969453 +0200
+@@ -225,7 +225,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"
+@@ -254,7 +254,7 @@
+   endif()
+ 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"
+@@ -330,9 +330,6 @@
+ target_link_libraries(fbgemm
+   $
+   $)
+-add_dependencies(fbgemm
+-  asmjit
+-  cpuinfo)
+ 
+ if(OpenMP_FOUND)
+   target_link_libraries(fbgemm OpenMP::OpenMP_CXX)
+@@ -349,6 +346,9 @@
+   FILES ${FBGEMM_PUBLIC_HEADERS}
+   DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/fbgemm")
+ 
++install(FILE

[gentoo-commits] repo/gentoo:master commit in: dev-libs/FBGEMM/files/, dev-libs/FBGEMM/

2023-04-11 Thread Alfredo Tupone
commit: 37c1cb1766eec979844d0718a81936797391ed4a
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Wed Apr 12 06:11:34 2023 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Wed Apr 12 06:13:52 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37c1cb17

dev-libs/FBGEMM: test require C++14

Closes: https://bugs.gentoo.org/904134
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild |  1 +
 dev-libs/FBGEMM/files/FBGEMM-2022.01.13-gentoo.patch | 12 ++--
 dev-libs/FBGEMM/files/FBGEMM-2023.02.10-test.patch   | 11 +++
 3 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild 
b/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
index 194619787e6d..22674b795e6c 100644
--- a/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
+++ b/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
@@ -50,6 +50,7 @@ python_check_deps() {
 PATCHES=(
"${FILESDIR}"/${PN}-2022.01.13-gentoo.patch
"${FILESDIR}"/${PN}-2022.07.16-gcc13.patch
+   "${FILESDIR}"/${P}-test.patch
 )
 
 src_prepare() {

diff --git a/dev-libs/FBGEMM/files/FBGEMM-2022.01.13-gentoo.patch 
b/dev-libs/FBGEMM/files/FBGEMM-2022.01.13-gentoo.patch
index e2aacd3f65ef..9ff87d5b6cb4 100644
--- a/dev-libs/FBGEMM/files/FBGEMM-2022.01.13-gentoo.patch
+++ b/dev-libs/FBGEMM/files/FBGEMM-2022.01.13-gentoo.patch
@@ -1,6 +1,6 @@
 --- 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 @@
+@@ -187,7 +187,7 @@
  message(WARNING "CMAKE_CXX_FLAGS_RELEASE is ${CMAKE_CXX_FLAGS_RELEASE}")
  message(WARNING "==")
  
@@ -9,8 +9,8 @@
#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)
+@@ -216,7 +216,7 @@
+   endif()
  endif()
  
 -if(NOT TARGET cpuinfo)
@@ -18,7 +18,7 @@
#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 @@
+@@ -293,7 +293,6 @@
  
  target_link_libraries(fbgemm $
$)
@@ -26,7 +26,7 @@
  
  install(TARGETS fbgemm EXPORT fbgemmLibraryConfig
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
-@@ -268,6 +268,8 @@
+@@ -302,6 +301,8 @@
  
  install(FILES ${FBGEMM_PUBLIC_HEADERS}
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/fbgemm")
@@ -45,7 +45,7 @@
#Download Googletest framework from github if
#GOOGLETEST_SOURCE_DIR is not specified.
if(NOT DEFINED GOOGLETEST_SOURCE_DIR)
-@@ -62,7 +62,6 @@
+@@ -67,7 +67,6 @@
  target_link_libraries(${TESTNAME} ${OpenMP_CXX_LIBRARIES})
endif()
  

diff --git a/dev-libs/FBGEMM/files/FBGEMM-2023.02.10-test.patch 
b/dev-libs/FBGEMM/files/FBGEMM-2023.02.10-test.patch
new file mode 100644
index ..062887a01819
--- /dev/null
+++ b/dev-libs/FBGEMM/files/FBGEMM-2023.02.10-test.patch
@@ -0,0 +1,11 @@
+--- a/test/CMakeLists.txt  2023-04-12 07:53:37.904871157 +0200
 b/test/CMakeLists.txt  2023-04-12 07:53:56.597572954 +0200
+@@ -39,7 +39,7 @@
+ QuantizationHelpers.cc
+ TestUtils.cc)
+   set_target_properties(${TESTNAME} PROPERTIES
+-  CXX_STANDARD 11
++  CXX_STANDARD 14
+   CXX_EXTENSIONS NO)
+   #To compile test files with AVX2 turned on
+   #For static build, defining FBGEMM_STATIC to avoid generating



[gentoo-commits] repo/gentoo:master commit in: dev-libs/FBGEMM/

2023-04-10 Thread Alfredo Tupone
commit: 32917a206bce565e093c8c9bac078ec3d5992fc0
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Mon Apr 10 15:26:51 2023 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Mon Apr 10 15:28:11 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32917a20

dev-libs/FBGEMM: fix test ny increase of stack size

Closes: https://bugs.gentoo.org/864517
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild | 4 
 1 file changed, 4 insertions(+)

diff --git a/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild 
b/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
index d0bf065049d7..194619787e6d 100644
--- a/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
+++ b/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
@@ -74,3 +74,7 @@ src_configure() {
)
cmake_src_configure
 }
+
+src_test() {
+   OMP_STACKSIZE=512k cmake_src_test
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/FBGEMM/

2023-04-08 Thread Alfredo Tupone
commit: dcdd64e286d5424b0801c6c15902abdf9b6b4fb6
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Sat Apr  8 19:26:43 2023 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Sat Apr  8 19:27:45 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcdd64e2

dev-libs/FBGEMM: sphinx check only for doc

Closes: https://bugs.gentoo.org/904045
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild | 10 ++
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild 
b/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
index 27388ddaa17b..d0bf065049d7 100644
--- a/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
+++ b/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
@@ -39,10 +39,12 @@ 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}]"
+   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=(



[gentoo-commits] repo/gentoo:master commit in: dev-libs/FBGEMM/

2023-04-08 Thread Alfredo Tupone
commit: 77bdb5421dd2ed21e44737c41dd1aff645e93a95
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Sat Apr  8 13:21:38 2023 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Sat Apr  8 14:25:01 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77bdb542

dev-libs/FBGEMM: add 2023.02.10, remove old

Signed-off-by: Alfredo Tupone  gentoo.org>

 ...M-2022.07.16.ebuild => FBGEMM-2023.02.10.ebuild} | 21 ++---
 dev-libs/FBGEMM/Manifest|  2 +-
 2 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild 
b/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
similarity index 67%
rename from dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild
rename to dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
index b2c8f05937d7..27388ddaa17b 100644
--- a/dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild
+++ b/dev-libs/FBGEMM/FBGEMM-2023.02.10.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 PYTHON_COMPAT=( python3_{9..11} )
 inherit python-any-r1 flag-o-matic cmake
 
-CommitId=7d59e803359eb323598e572700db27de467b705a
+CommitId=03b2046676707da64504e898490ab46104d4682a
 
 DESCRIPTION="Facebook GEneral Matrix Multiplication"
 HOMEPAGE="https://github.com/pytorch/FBGEMM";
@@ -16,7 +16,7 @@ 
SRC_URI="https://github.com/pytorch/${PN}/archive/${CommitId}.tar.gz
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="test"
+IUSE="doc test"
 
 DEPEND="
>=dev-libs/asmjit-2022.07.02
@@ -25,15 +25,29 @@ DEPEND="
 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}"/${P}-gcc13.patch
+   "${FILESDIR}"/${PN}-2022.07.16-gcc13.patch
 )
 
 src_prepare() {
@@ -53,6 +67,7 @@ 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

diff --git a/dev-libs/FBGEMM/Manifest b/dev-libs/FBGEMM/Manifest
index 70bae9073b04..5ca7cee0d7e4 100644
--- a/dev-libs/FBGEMM/Manifest
+++ b/dev-libs/FBGEMM/Manifest
@@ -1 +1 @@
-DIST FBGEMM-2022.07.16.tar.gz 744470 BLAKE2B 
d1ee51ad72a22fb1b7abaefe330f70e27bc5d6dfda2587373d7e0209aef099ab10c8772612a9786fc2bd760f66154053b9e6c9a6b7f3c82ed2114536f7b30213
 SHA512 
7d245ea47c57c2da0555693624c45c8585aab5d1b171c9f3b909e140d9d0964cb9cf8f029c291c45f8070d5cfad6f7116e606fdd4120b2223279e39d4ba3f189
+DIST FBGEMM-2023.02.10.tar.gz 854918 BLAKE2B 
2af11baf95c1f33e1b1dd6f2a51dde2c991ff0f606402a7aaa539b7bc505c3707cafaa96d8f742c91672ec09a1f18a69f0e69c012b6db11d5297d602b8f4860c
 SHA512 
a59d928150d674c56b5d38f73e62b5f4e2b527ea1f7ebb891ea1d3356e4183e0f469d145fca37fcb1c85f8773cf54226a8e41389fe9783474c457a7bd31846d6



[gentoo-commits] repo/gentoo:master commit in: dev-libs/FBGEMM/, dev-libs/FBGEMM/files/

2023-03-11 Thread Alfredo Tupone
commit: cfba1140f658bf94ac22b666be7c2e630c12a02a
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Sat Mar 11 17:34:22 2023 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Sat Mar 11 17:35:10 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfba1140

dev-libs/FBGEMM: fix build with gcc-13

Closes: https://bugs.gentoo.org/894628
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-libs/FBGEMM/FBGEMM-2022.01.13-r1.ebuild| 54 --
 dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild   |  1 +
 dev-libs/FBGEMM/Manifest   |  1 -
 .../FBGEMM/files/FBGEMM-2022.07.16-gcc13.patch | 10 
 4 files changed, 11 insertions(+), 55 deletions(-)

diff --git a/dev-libs/FBGEMM/FBGEMM-2022.01.13-r1.ebuild 
b/dev-libs/FBGEMM/FBGEMM-2022.01.13-r1.ebuild
deleted file mode 100644
index a505928cb56c..
--- a/dev-libs/FBGEMM/FBGEMM-2022.01.13-r1.ebuild
+++ /dev/null
@@ -1,54 +0,0 @@
-# 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=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-2021.11.13
-   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() {
-   # 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
-}

diff --git a/dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild 
b/dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild
index 9a2f09a92e45..b2c8f05937d7 100644
--- a/dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild
+++ b/dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild
@@ -33,6 +33,7 @@ S="${WORKDIR}"/${PN}-${CommitId}
 
 PATCHES=(
"${FILESDIR}"/${PN}-2022.01.13-gentoo.patch
+   "${FILESDIR}"/${P}-gcc13.patch
 )
 
 src_prepare() {

diff --git a/dev-libs/FBGEMM/Manifest b/dev-libs/FBGEMM/Manifest
index 5fd675cbb2ad..70bae9073b04 100644
--- a/dev-libs/FBGEMM/Manifest
+++ b/dev-libs/FBGEMM/Manifest
@@ -1,2 +1 @@
-DIST FBGEMM-2022.01.13.tar.gz 532297 BLAKE2B 
bced7e1a1712351a87762e8d0a28ed3bbc5678c8ce70b440e769e53dc15f68e3ec8c89df9307f33da788bd376613720892493c0b519d3860a6e2edb48de1fdba
 SHA512 
a416c2c11b0e6798e0dbb376050ead79cb602cd4f0e41b6109eeefe3e939e410adf0ce828d1224a358eb8245a935cc431d8023ccc396f08ca88276fb91c66157
 DIST FBGEMM-2022.07.16.tar.gz 744470 BLAKE2B 
d1ee51ad72a22fb1b7abaefe330f70e27bc5d6dfda2587373d7e0209aef099ab10c8772612a9786fc2bd760f66154053b9e6c9a6b7f3c82ed2114536f7b30213
 SHA512 
7d245ea47c57c2da0555693624c45c8585aab5d1b171c9f3b909e140d9d0964cb9cf8f029c291c45f8070d5cfad6f7116e606fdd4120b2223279e39d4ba3f189

diff --git a/dev-libs/FBGEMM/files/FBGEMM-2022.07.16-gcc13.patch 
b/dev-libs/FBGEMM/files/FBGEMM-2022.07.16-gcc13.patch
new file mode 100644
index ..cba259688d96
--- /dev/null
+++ b/dev-libs/FBGEMM/files/FBGEMM-2022.07.16-gcc13.patch
@@ -0,0 +1,10 @@
+--- a/include/fbgemm/UtilsAvx2.h   2023-03-11 17:17:28.365325199 +0100
 b/include/fbgemm/UtilsAvx2.h   2023-03-11 17:18:06.076766162 +0100
+@@ -9,6 +9,7 @@
+ // flags.
+ 
+ #include 
++#include 
+ 
+ namespace fbgemm {
+ 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/FBGEMM/

2022-07-20 Thread Alfredo Tupone
commit: f486186d35943e5afe95478dfa1bdd36ea8426b2
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Wed Jul 20 18:29:38 2022 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Wed Jul 20 18:29:38 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f486186d

dev-libs/FBGEMM: drop Werror

Closes: https://bugs.gentoo.org/859511
Closes: https://bugs.gentoo.org/859562
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild | 4 
 1 file changed, 4 insertions(+)

diff --git a/dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild 
b/dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild
index 0abbaeb568c3..c707cf7f6354 100644
--- a/dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild
+++ b/dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild
@@ -41,6 +41,10 @@ src_prepare() {
 
rm test/RowWiseSparseAdagradFusedTest.cc || die
rm test/SparseAdagradTest.cc || die
+   sed -i \
+   -e "/-Werror/d" \
+   CMakeLists.txt \
+   || die
cmake_src_prepare
 }
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/FBGEMM/

2022-07-20 Thread Alfredo Tupone
commit: 59d13125a121b7b2fd7da19781a34e707d00890a
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Mon Jul 18 08:12:42 2022 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Wed Jul 20 11:53:14 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59d13125

dev-libs/FBGEMM: version bump

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-libs/FBGEMM/FBGEMM-2022.07.16.ebuild | 54 
 dev-libs/FBGEMM/Manifest |  1 +
 2 files changed, 55 insertions(+)

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 ..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
+}

diff --git a/dev-libs/FBGEMM/Manifest b/dev-libs/FBGEMM/Manifest
index 397db1e2a3bd..5fd675cbb2ad 100644
--- a/dev-libs/FBGEMM/Manifest
+++ b/dev-libs/FBGEMM/Manifest
@@ -1 +1,2 @@
 DIST FBGEMM-2022.01.13.tar.gz 532297 BLAKE2B 
bced7e1a1712351a87762e8d0a28ed3bbc5678c8ce70b440e769e53dc15f68e3ec8c89df9307f33da788bd376613720892493c0b519d3860a6e2edb48de1fdba
 SHA512 
a416c2c11b0e6798e0dbb376050ead79cb602cd4f0e41b6109eeefe3e939e410adf0ce828d1224a358eb8245a935cc431d8023ccc396f08ca88276fb91c66157
+DIST FBGEMM-2022.07.16.tar.gz 744470 BLAKE2B 
d1ee51ad72a22fb1b7abaefe330f70e27bc5d6dfda2587373d7e0209aef099ab10c8772612a9786fc2bd760f66154053b9e6c9a6b7f3c82ed2114536f7b30213
 SHA512 
7d245ea47c57c2da0555693624c45c8585aab5d1b171c9f3b909e140d9d0964cb9cf8f029c291c45f8070d5cfad6f7116e606fdd4120b2223279e39d4ba3f189



[gentoo-commits] repo/gentoo:master commit in: dev-libs/FBGEMM/

2022-07-18 Thread Alfredo Tupone
commit: 92824dd3fe15c3e0eeed181d178f83330aeedac3
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Mon Jul 18 08:09:07 2022 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Mon Jul 18 08:09:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92824dd3

dev-libs/FBGEMM: fix deps on asmjit

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alfredo Tupone  gentoo.org>

 .../FBGEMM/{FBGEMM-2022.01.13.ebuild => FBGEMM-2022.01.13-r1.ebuild}| 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild 
b/dev-libs/FBGEMM/FBGEMM-2022.01.13-r1.ebuild
similarity index 97%
rename from dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild
rename to dev-libs/FBGEMM/FBGEMM-2022.01.13-r1.ebuild
index f4d49e6550eb..6f20c2c90406 100644
--- a/dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild
+++ b/dev-libs/FBGEMM/FBGEMM-2022.01.13-r1.ebuild
@@ -19,7 +19,7 @@ KEYWORDS="~amd64"
 IUSE="test"
 
 DEPEND="
-   dev-libs/asmjit
+   ~dev-libs/asmjit-2021.11.13
dev-libs/cpuinfo
 "
 RDEPEND="${DEPEND}"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/FBGEMM/

2022-07-02 Thread Alfredo Tupone
commit: ffdd869c7bc64182c5fe1f05b5b6cfd04c3ee884
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Sat Jul  2 17:10:15 2022 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Sat Jul  2 17:10:15 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffdd869c

dev-libs/FBGEMM: filter-lto

Closes: https://bugs.gentoo.org/855668
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild 
b/dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild
index 1ecfb6cc82f6..f4d49e6550eb 100644
--- a/dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild
+++ b/dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{8..11} )
-inherit python-any-r1 cmake
+inherit python-any-r1 flag-o-matic cmake
 
 CommitId=135412d2646f3bd753c8f1cfd33616110bbccd27
 
@@ -36,6 +36,9 @@ PATCHES=(
 )
 
 src_prepare() {
+   # Bug #855668
+   filter-lto
+
rm test/RowWiseSparseAdagradFusedTest.cc || die
rm test/SparseAdagradTest.cc || die
cmake_src_prepare



[gentoo-commits] repo/gentoo:master commit in: dev-libs/FBGEMM/

2022-05-25 Thread Alfredo Tupone
commit: 99edaaec410b3218a4ffc890db1b7b790759e25a
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Thu May 26 05:32:15 2022 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Thu May 26 05:32:15 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99edaaec

dev-libs/FBGEMM: use python-any-r1

Closes: https://bugs.gentoo.org/847247
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild | 8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild 
b/dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild
index 51c233d44e8d..1ecfb6cc82f6 100644
--- a/dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild
+++ b/dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild
@@ -3,7 +3,8 @@
 
 EAPI=8
 
-inherit cmake
+PYTHON_COMPAT=( python3_{8..11} )
+inherit python-any-r1 cmake
 
 CommitId=135412d2646f3bd753c8f1cfd33616110bbccd27
 
@@ -22,7 +23,10 @@ DEPEND="
dev-libs/cpuinfo
 "
 RDEPEND="${DEPEND}"
-BDEPEND="test? ( dev-cpp/gtest )"
+BDEPEND="
+   test? ( dev-cpp/gtest )
+   ${PYTHON_DEPS}
+"
 RESTRICT="!test? ( test )"
 
 S="${WORKDIR}"/${PN}-${CommitId}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/FBGEMM/, dev-libs/FBGEMM/files/

2022-05-24 Thread Alfredo Tupone
commit: ff3bb714f637923918628adf1a7395df9101a55c
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Tue May 24 07:01:02 2022 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Tue May 24 07:01:39 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff3bb714

dev-libs/FBGEMM: add to tree

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild   | 47 
 dev-libs/FBGEMM/Manifest   |  1 +
 .../FBGEMM/files/FBGEMM-2022.01.13-gentoo.patch| 65 ++
 dev-libs/FBGEMM/metadata.xml   | 11 
 4 files changed, 124 insertions(+)

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 ..51c233d44e8d
--- /dev/null
+++ b/dev-libs/FBGEMM/FBGEMM-2022.01.13.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit 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 )"
+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 ..397db1e2a3bd
--- /dev/null
+++ b/dev-libs/FBGEMM/Manifest
@@ -0,0 +1 @@
+DIST FBGEMM-2022.01.13.tar.gz 532297 BLAKE2B 
bced7e1a1712351a87762e8d0a28ed3bbc5678c8ce70b440e769e53dc15f68e3ec8c89df9307f33da788bd376613720892493c0b519d3860a6e2edb48de1fdba
 SHA512 
a416c2c11b0e6798e0dbb376050ead79cb602cd4f0e41b6109eeefe3e939e410adf0ce828d1224a358eb8245a935cc431d8023ccc396f08ca88276fb91c66157

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 ..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.cc2022-05-24 08:19:00.639462626 +0200
 b/src/PackMatrix.cc2022-05-24 08:27:59.127720548 +0200
+@@ -30,6 +30,7 @@
+ }
+ 
+ template 
++FBGEMM_API
+ int PackMatrix::packedBufferSize(
+ int rows,