head 1.3; access; symbols pkgsrc-2026Q1:1.3.0.4 pkgsrc-2026Q1-base:1.3 pkgsrc-2025Q4:1.3.0.2 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.2.0.6 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.4 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.2 pkgsrc-2025Q1-base:1.2; locks; strict; comment @// @; 1.3 date 2025.09.27.01.19.55; author ryoon; state Exp; branches; next 1.2; commitid QqI5cqSAR7gS3icG; 1.2 date 2025.01.26.12.33.03; author wiz; state Exp; branches; next 1.1; commitid euRchEyMaGc9DZGF; 1.1 date 2025.01.23.14.31.16; author ryoon; state Exp; branches; next ; commitid WHk37Xfa7SZznCGF; desc @@ 1.3 log @math/py-torch: Update to 2.8.0 Changelog: Too long and many changes are not related to CPU backend. @ text @$NetBSD: patch-torch_csrc_distributed_c10d_ProcessGroupGloo.cpp,v 1.2 2025/01/26 12:33:03 wiz Exp $ * Support NetBSD. --- torch/csrc/distributed/c10d/ProcessGroupGloo.cpp.orig 2025-08-06 17:08:06.000000000 +0000 +++ torch/csrc/distributed/c10d/ProcessGroupGloo.cpp @@@@ -21,6 +21,10 @@@@ #include #include #include +#if !defined(HOST_NAME_MAX) +#include +#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX +#endif #endif #include @@@@ -491,7 +495,7 @@@@ std::shared_ptr<::gloo::transport::Devic return ::c10d::GlooDeviceFactory::makeDeviceForHostname(hostname, lazyInit); } -#if defined(__linux__) || defined(_WIN32) +#if defined(__linux__) || defined(_WIN32) || defined(__NetBSD__) std::shared_ptr<::gloo::transport::Device> ProcessGroupGloo:: createDefaultDevice(bool lazyInit) { // Use the hostname to resolve the network address to @ 1.2 log @py-torch: make patch apply @ text @d1 1 a1 1 $NetBSD: patch-torch_csrc_distributed_c10d_ProcessGroupGloo.cpp,v 1.1 2025/01/23 14:31:16 ryoon Exp $ d5 1 a5 1 --- torch/csrc/distributed/c10d/ProcessGroupGloo.cpp.orig 2025-01-21 17:59:06.880466509 +0000 d7 1 a7 1 @@@@ -16,6 +16,10 @@@@ d18 2 a19 2 @@@@ -693,7 +697,7 @@@@ std::shared_ptr<::gloo::transport::Devic return ::c10d::GlooDeviceFactory::makeDeviceForHostname(hostname); d25 1 a25 1 createDefaultDevice() { @ 1.1 log @math/py-torch: Enable distributed API * Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ d5 2 a6 2 --- /usr/tmp/pkgsrc/math/py-torch/work/pytorch-v2.5.1/torch/csrc/distributed/c10d/ProcessGroupGloo.cpp.orig 2025-01-21 17:59:06.880466509 +0000 +++ /usr/tmp/pkgsrc/math/py-torch/work/pytorch-v2.5.1/torch/csrc/distributed/c10d/ProcessGroupGloo.cpp @