summaryrefslogtreecommitdiff
path: root/sci-ml/gloo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2025-03-16 00:29:23 +0000
committerV3n3RiX <venerix@koprulu.sector>2025-03-16 00:29:23 +0000
commit18f850bb4cedde39678b12a67f82f29eef2dab63 (patch)
tree2f545c16653e3357cfdd14bf26b623d62cc18eba /sci-ml/gloo
parentbcdfc870ecd1de7eea04df21ec3a069328b2e29f (diff)
gentoo auto-resync : 16:03:2025 - 00:29:23
Diffstat (limited to 'sci-ml/gloo')
-rw-r--r--sci-ml/gloo/Manifest9
-rw-r--r--sci-ml/gloo/files/gloo-2022.05.18-gentoo.patch94
-rw-r--r--sci-ml/gloo/files/gloo-2023.01.17-cuda.patch13
-rw-r--r--sci-ml/gloo/files/gloo-2023.01.17-ssl3.patch19
-rw-r--r--sci-ml/gloo/files/gloo-2023.12.03-gcc15.patch10
-rw-r--r--sci-ml/gloo/gloo-2023.07.19.ebuild67
-rw-r--r--sci-ml/gloo/gloo-2023.12.03.ebuild68
-rw-r--r--sci-ml/gloo/metadata.xml15
8 files changed, 295 insertions, 0 deletions
diff --git a/sci-ml/gloo/Manifest b/sci-ml/gloo/Manifest
new file mode 100644
index 000000000000..8f0b2daf3cb5
--- /dev/null
+++ b/sci-ml/gloo/Manifest
@@ -0,0 +1,9 @@
+AUX gloo-2022.05.18-gentoo.patch 3073 BLAKE2B 0d6b4b4f87d8b8507b8ed06b3ea1548f750eac0bbebb1618950ea2fc4c0eff98b46d5561d2eb8b1011e6ea87a1d51d2791c712fc46192f8957652a2017876dc9 SHA512 5b3ee22b5e4d08002798cdd940b962f179b24cce02fc5b1d3e1d42d8fb747381b5932467c0dbda12a2e37eeb85154198d53ec734256a820111e7e929762a841e
+AUX gloo-2023.01.17-cuda.patch 460 BLAKE2B 646004184eed2acbfb0cb54bdfadaa6cb4b3ac51b4323a6e16e825a3eabf0274061dcd8c1cfc996c72d75645176f3f798667caae33006d387bbd6ac1d00d4aa1 SHA512 649969154c42ef381c8220ea891ff3175292b2941efef0ce166bef137b1fb08d2f262de0961e3ce11661307a56c2338e7a7f81944e71b93aa5210bc2a7603caf
+AUX gloo-2023.01.17-ssl3.patch 764 BLAKE2B e4abed8dc9f891da2a97c80e4aa3c7f68beed1143a039f22ed6add80cdb16b0543086b0d3c54628904743dd7901caa11a3281d9e574a256132ee3a1f4d52bb28 SHA512 259048a70a9ae9090b6e6631aba5787ce68b12facbf0d0c0200121ace780ffe30990b9240ba817f361e46025ec2cf22f3b6f06d8df8797848a16f8e4167253d2
+AUX gloo-2023.12.03-gcc15.patch 226 BLAKE2B 342c4ac2ab0b109b50bae1cd72b349399757bd68aa0351ce485e17966eb50ce32c7804ae9f8ee76e21ed3eb290cdd8185db2a4bb3052ee2cc880a51b80803b61 SHA512 5d1ba92714f13fe0785731c18058445de3356d4ba4c5fa81b948ed4dbc39bd4d44ab23fa2b52bc7f0489124081bf984d69defb80ae2757722e628a73523fde2c
+DIST gloo-2023.07.19.tar.gz 260264 BLAKE2B b787794a6b5e791da5f8693ad9a522c8caa5410316d64ad3a2c23ae744ca9f0b45ac6a6f60572049d3e5825a2e29833ff887fc39f6fe6a6efef61d848c225318 SHA512 e84e8a69a8548a8bfcb6044b960fca3204eb358c50fa79f3053779f2a61703d5219ef428f4ba057ed08e6ec437aadb7f8e67565f03f3510e0bf94c6f793af8d9
+DIST gloo-2023.12.03.tar.gz 259857 BLAKE2B b56cbbb0986b70ed327a8d019f140099c5d1d725576120089cd5e640dc42daa6c6bb67de877d540fd2160f5b8d89cf54af7c11a1b81039e62e4de97daa4f63d6 SHA512 597679dd96394e7d0009be34ef9bd6f8446d22e2faa006c0853e055caf0d6d821c7532ff867b4d924197e92ab53c4c7ee9b74f897d6c5a469ee797c11ce0d28d
+EBUILD gloo-2023.07.19.ebuild 1490 BLAKE2B de78e69eb7f8f59ed47fd0803eaeaff3606d297bfc7f7e574271412b39840e2f4b3f41082f96feec450500c1a03f6518ebc263844c774bf72dc0e896088e111f SHA512 81f6546b9e1573d9748f4acfad2f2e6d5fb4e4b5c9eca4ba20b54c579146af4e32a5de58a05c4cdc15de71ba4ef45a134c7a8e46ddeebd82aa8e4fd1a5f93684
+EBUILD gloo-2023.12.03.ebuild 1522 BLAKE2B 260da8d43ab90b429948695451a719ad2dbd17409eb4787e4a34846bdedb078a95f416b0bc6794de26249a3e395ff331dd6f7fbae6e105d0c8a1460600a9e2dd SHA512 559239a286de2342374b1f010fda846c65b20bcffab9eb9ff38e01bc106f597dc0a8a914606e8938b2e7da812673b6b5ffce9ff0fa0e07212526b915513fe4f7
+MISC metadata.xml 492 BLAKE2B be64dabc0bd193d99c4458e6bad8c78042ef1d65800ebd3a3818ffdac3b361f18011ae044036e3c73deba03886e8aa6ffdcb5c2a66b635ecc2f29d636c660227 SHA512 e342a7d570f7ff12718f51e91fd6d359d038670dfb3b679a4cd8d7de61bef8d4b048e2362303bb925eddfd7c40e67f4179e89c24dc2f9b5c21e5a220bf9d4aa2
diff --git a/sci-ml/gloo/files/gloo-2022.05.18-gentoo.patch b/sci-ml/gloo/files/gloo-2022.05.18-gentoo.patch
new file mode 100644
index 000000000000..1344d42a0c3f
--- /dev/null
+++ b/sci-ml/gloo/files/gloo-2022.05.18-gentoo.patch
@@ -0,0 +1,94 @@
+--- a/CMakeLists.txt 2022-06-09 08:29:13.172119535 +0200
++++ b/CMakeLists.txt 2022-06-09 08:29:27.474929097 +0200
+@@ -2,6 +2,9 @@
+
+ project(gloo CXX C)
+
++include(GNUInstallDirs)
++include(CTest)
++
+ set(GLOO_VERSION_MAJOR 0)
+ set(GLOO_VERSION_MINOR 5)
+ set(GLOO_VERSION_PATCH 0)
+--- a/gloo/CMakeLists.txt 2022-06-09 08:41:09.883773600 +0200
++++ b/gloo/CMakeLists.txt 2022-06-09 08:42:39.045637103 +0200
+@@ -181,7 +181,7 @@
+ # want to statically link with Gloo and not install any artifacts.
+ if(GLOO_INSTALL)
+ install(TARGETS gloo EXPORT GlooTargets
+- DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++ DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ if(USE_CUDA)
+ install(TARGETS gloo_cuda EXPORT GlooTargets
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
+--- a/gloo/test/CMakeLists.txt 2022-06-10 22:17:03.682856314 +0200
++++ b/gloo/test/CMakeLists.txt 2022-06-10 22:17:49.671242697 +0200
+@@ -73,3 +73,4 @@
+ gloo_hip_add_executable(gloo_test_hip ${GLOO_TEST_HIP_SRCS})
+ target_link_libraries(gloo_test_hip gloo_hip gtest OpenSSL::SSL OpenSSL::Crypto)
+ endif()
++add_test(NAME gloo_test COMMAND gloo_test)
+--- a/gloo/test/memory_test.cc 2022-06-10 22:28:53.815371465 +0200
++++ b/gloo/test/memory_test.cc 2022-06-10 22:29:14.504094854 +0200
+@@ -52,7 +52,7 @@
+ class MemoryTest : public BaseTest,
+ public ::testing::WithParamInterface<Param> {};
+
+-TEST_P(MemoryTest, ManySlotsNoLeaks) {
++TEST_P(MemoryTest, DISABLED_ManySlotsNoLeaks) {
+ const auto transport = GetParam();
+ spawn(transport, 2, [&](std::shared_ptr<Context> context) {
+ size_t tmp0;
+--- a/cmake/Dependencies.cmake 2022-06-11 23:38:57.367089917 +0200
++++ b/cmake/Dependencies.cmake 2022-06-11 23:48:57.690866797 +0200
+@@ -81,7 +81,7 @@
+ pkg_search_module(libuv REQUIRED libuv>=1.26)
+ find_file(
+ libuv_LIBRARY
+- NAMES libuv.a libuv_a.a
++ NAMES libuv.so
+ PATHS ${libuv_LIBDIR}
+ NO_DEFAULT_PATH)
+ if(NOT EXISTS ${libuv_LIBRARY})
+@@ -90,10 +90,7 @@
+ endif()
+
+ add_library(uv_a INTERFACE IMPORTED)
+- set_target_properties(uv_a PROPERTIES
+- INTERFACE_INCLUDE_DIRECTORIES ${libuv_INCLUDE_DIRS}
+- INTERFACE_LINK_LIBRARIES ${libuv_LIBRARY}
+- )
++ list(APPEND gloo_DEPENDENCY_LIBS -luv)
+ endif()
+ endif()
+
+--- a/gloo/transport/tcp/tls/pair.cc 2022-10-04 21:14:04.099150060 +0200
++++ b/gloo/transport/tcp/tls/pair.cc 2022-10-04 21:14:22.330886610 +0200
+@@ -17,6 +17,7 @@
+
+ #include <cstring>
+ #include <poll.h>
++#include <array>
+
+ namespace gloo {
+ namespace transport {
+--- a/gloo/common/linux.cc 2022-10-04 21:20:21.401691929 +0200
++++ b/gloo/common/linux.cc 2022-10-04 21:23:13.924192100 +0200
+@@ -198,7 +198,7 @@
+ } ecmd;
+ int rv;
+
+- ifr->ifr_data = (__caddr_t)&ecmd;
++ ifr->ifr_data = (char *)&ecmd;
+ memset(&ecmd, 0, sizeof(ecmd));
+ ecmd.req.cmd = ETHTOOL_GLINKSETTINGS;
+
+@@ -226,7 +226,7 @@
+ struct ethtool_cmd edata;
+ int rv;
+
+- ifr->ifr_data = (__caddr_t)&edata;
++ ifr->ifr_data = (char *)&edata;
+ memset(&edata, 0, sizeof(edata));
+ edata.cmd = ETHTOOL_GSET;
+
diff --git a/sci-ml/gloo/files/gloo-2023.01.17-cuda.patch b/sci-ml/gloo/files/gloo-2023.01.17-cuda.patch
new file mode 100644
index 000000000000..1a894d3e4251
--- /dev/null
+++ b/sci-ml/gloo/files/gloo-2023.01.17-cuda.patch
@@ -0,0 +1,13 @@
+diff --git a/gloo/CMakeLists.txt b/gloo/CMakeLists.txt
+index 9ee82df..3b3affb 100644
+--- a/gloo/CMakeLists.txt
++++ b/gloo/CMakeLists.txt
+@@ -184,7 +184,7 @@ if(GLOO_INSTALL)
+ DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ if(USE_CUDA)
+ install(TARGETS gloo_cuda EXPORT GlooTargets
+- DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++ DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ endif()
+ if(USE_ROCM)
+ install(TARGETS gloo_hip EXPORT GlooTargets
diff --git a/sci-ml/gloo/files/gloo-2023.01.17-ssl3.patch b/sci-ml/gloo/files/gloo-2023.01.17-ssl3.patch
new file mode 100644
index 000000000000..f01beafa4596
--- /dev/null
+++ b/sci-ml/gloo/files/gloo-2023.01.17-ssl3.patch
@@ -0,0 +1,19 @@
+--- a/gloo/CMakeLists.txt 2023-11-27 22:39:53.709670525 +0100
++++ b/gloo/CMakeLists.txt 2023-11-27 22:42:29.784250524 +0100
+@@ -77,7 +77,7 @@
+ if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
+ set(GLOO_HAVE_TRANSPORT_TCP 1)
+ if(${USE_TCP_OPENSSL_LINK} OR ${USE_TCP_OPENSSL_LOAD})
+- find_package(OpenSSL 1.1 REQUIRED EXACT)
++ find_package(OpenSSL 1.1...<4 REQUIRED)
+ set(GLOO_HAVE_TRANSPORT_TCP_TLS 1)
+ else()
+ set(GLOO_HAVE_TRANSPORT_TCP_TLS 0)
+--- a/gloo/test/CMakeLists.txt 2023-11-27 22:42:55.969844380 +0100
++++ b/gloo/test/CMakeLists.txt 2023-11-27 22:43:14.873551147 +0100
+@@ -1,4 +1,4 @@
+-find_package(OpenSSL 1.1 REQUIRED EXACT)
++find_package(OpenSSL 1.1...<4 REQUIRED)
+
+ set(GLOO_TEST_SRCS
+ "${CMAKE_CURRENT_SOURCE_DIR}/allgather_test.cc"
diff --git a/sci-ml/gloo/files/gloo-2023.12.03-gcc15.patch b/sci-ml/gloo/files/gloo-2023.12.03-gcc15.patch
new file mode 100644
index 000000000000..d68b4e551053
--- /dev/null
+++ b/sci-ml/gloo/files/gloo-2023.12.03-gcc15.patch
@@ -0,0 +1,10 @@
+--- a/gloo/types.h 2024-09-06 22:05:07.308213847 +0200
++++ b/gloo/types.h 2024-09-06 22:05:32.598941783 +0200
+@@ -5,6 +5,7 @@
+ #pragma once
+
+ #include <iostream>
++#include <cstdint>
+
+ #ifdef __CUDA_ARCH__
+ #include <cuda.h>
diff --git a/sci-ml/gloo/gloo-2023.07.19.ebuild b/sci-ml/gloo/gloo-2023.07.19.ebuild
new file mode 100644
index 000000000000..799ab0e7fd1c
--- /dev/null
+++ b/sci-ml/gloo/gloo-2023.07.19.ebuild
@@ -0,0 +1,67 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit cmake cuda
+
+CommitId=cf1e1abc95d0b961222ee82b6935f76250fbcf16
+
+DESCRIPTION="library of floating-point neural network inference operators"
+HOMEPAGE="https://github.com/facebookincubator/gloo/"
+SRC_URI="https://github.com/facebookincubator/${PN}/archive/${CommitId}.tar.gz
+ -> ${P}.tar.gz"
+
+S="${WORKDIR}"/${PN}-${CommitId}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="cuda libuv mpi redis ssl test"
+
+RDEPEND="
+ cuda? ( dev-util/nvidia-cuda-toolkit:= )
+ libuv? ( dev-libs/libuv )
+ mpi? ( virtual/mpi )
+ redis? (
+ dev-db/redis
+ dev-libs/hiredis
+ )
+ ssl? ( dev-libs/openssl:= )
+"
+DEPEND="${RDEPEND}
+"
+
+BDEPEND="test? ( dev-cpp/gtest )"
+RESTRICT="test" # For some test the network is needed
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2022.05.18-gentoo.patch
+ "${FILESDIR}"/${PN}-2023.01.17-cuda.patch
+ "${FILESDIR}"/${PN}-2023.01.17-ssl3.patch
+)
+
+src_prepare() {
+ eapply_user
+ cmake_src_prepare
+ use cuda && cuda_add_sandbox
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TEST=$(usex test ON OFF)
+ -DUSE_CUDA=$(usex cuda ON OFF)
+ -DGLOO_USE_CUDA_TOOLKIT=$(usex cuda ON OFF)
+ -DUSE_LIBUV=$(usex libuv ON OFF)
+ -DUSE_MPI=$(usex mpi ON OFF)
+ -DUSE_REDIS=$(usex redis ON OFF)
+ -DUSE_TCP_OPENSSL_LINK=$(usex ssl ON OFF)
+ )
+ if use cuda; then
+ addpredict "/proc/self/task"
+
+ mycmakeargs+=(
+ -DCMAKE_CUDA_FLAGS="$(cuda_gccdir -f | tr -d \")"
+ )
+ fi
+ cmake_src_configure
+}
diff --git a/sci-ml/gloo/gloo-2023.12.03.ebuild b/sci-ml/gloo/gloo-2023.12.03.ebuild
new file mode 100644
index 000000000000..0d848c6124d3
--- /dev/null
+++ b/sci-ml/gloo/gloo-2023.12.03.ebuild
@@ -0,0 +1,68 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit cmake cuda
+
+CommitId=5354032ea08eadd7fc4456477f7f7c6308818509
+
+DESCRIPTION="library of floating-point neural network inference operators"
+HOMEPAGE="https://github.com/facebookincubator/gloo/"
+SRC_URI="https://github.com/facebookincubator/${PN}/archive/${CommitId}.tar.gz
+ -> ${P}.tar.gz"
+
+S="${WORKDIR}"/${PN}-${CommitId}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="cuda libuv mpi redis ssl test"
+
+RDEPEND="
+ cuda? ( dev-util/nvidia-cuda-toolkit:= )
+ libuv? ( dev-libs/libuv )
+ mpi? ( virtual/mpi )
+ redis? (
+ dev-db/redis
+ dev-libs/hiredis
+ )
+ ssl? ( dev-libs/openssl:= )
+"
+DEPEND="${RDEPEND}
+"
+
+BDEPEND="test? ( dev-cpp/gtest )"
+RESTRICT="test" # For some test the network is needed
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2022.05.18-gentoo.patch
+ "${FILESDIR}"/${PN}-2023.01.17-cuda.patch
+ "${FILESDIR}"/${PN}-2023.01.17-ssl3.patch
+ "${FILESDIR}"/${P}-gcc15.patch
+)
+
+src_prepare() {
+ eapply_user
+ cmake_src_prepare
+ use cuda && cuda_add_sandbox
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TEST=$(usex test ON OFF)
+ -DUSE_CUDA=$(usex cuda ON OFF)
+ -DGLOO_USE_CUDA_TOOLKIT=$(usex cuda ON OFF)
+ -DUSE_LIBUV=$(usex libuv ON OFF)
+ -DUSE_MPI=$(usex mpi ON OFF)
+ -DUSE_REDIS=$(usex redis ON OFF)
+ -DUSE_TCP_OPENSSL_LINK=$(usex ssl ON OFF)
+ )
+ if use cuda; then
+ addpredict "/proc/self/task"
+
+ mycmakeargs+=(
+ -DCMAKE_CUDA_FLAGS="$(cuda_gccdir -f | tr -d \")"
+ )
+ fi
+ cmake_src_configure
+}
diff --git a/sci-ml/gloo/metadata.xml b/sci-ml/gloo/metadata.xml
new file mode 100644
index 000000000000..453b2878b484
--- /dev/null
+++ b/sci-ml/gloo/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tupone@gentoo.org</email>
+ <name>Tupone Alfredo</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">facebookincubator/gloo</remote-id>
+ </upstream>
+ <use>
+ <flag name="libuv">Enable libuv support</flag>
+ <flag name="redis">Enable Redis backend for storage via <pkg>dev-libs/hiredis</pkg></flag>
+ </use>
+</pkgmetadata>