git: ce5bbabcc8c1 - main - misc/lbann: Attempt to fix build on i386 and other 32-bit architectures

Yuri Victorovich <[email protected]> Mon, 03 Aug 2026 18:00:00 +0000
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ce5bbabcc8c17d5cb5479ec8022995898aeb4053

commit ce5bbabcc8c17d5cb5479ec8022995898aeb4053
Author:     Yuri Victorovich <[email protected]>
AuthorDate: 2026-08-03 15:37:35 +0000
Commit:     Yuri Victorovich <[email protected]>
CommitDate: 2026-08-03 17:59:56 +0000

    misc/lbann: Attempt to fix build on i386 and other 32-bit architectures
    
    Reported by:    fallout
---
 misc/lbann/files/patch-src_execution__algorithms_ltfb.cpp | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/misc/lbann/files/patch-src_execution__algorithms_ltfb.cpp b/misc/lbann/files/patch-src_execution__algorithms_ltfb.cpp
new file mode 100644
index 000000000000..ab0e088a894b
--- /dev/null
+++ b/misc/lbann/files/patch-src_execution__algorithms_ltfb.cpp
@@ -0,0 +1,12 @@
+-- fix failure on i386 - this is likely needed on all 32-bit architectures
+
+--- src/execution_algorithms/ltfb.cpp.orig	2026-08-03 15:32:23 UTC
++++ src/execution_algorithms/ltfb.cpp
+@@ -120,6 +120,6 @@ lbann::make<lbann::LTFB>(google::protobuf::Message con
+     msg.name(),
+     make_abstract<TrainingAlgorithm>(params.local_training_algorithm()),
+     make_abstract<ltfb::MetaLearningStrategy>(params.meta_learning_strategy()),
+-    ltfb::LTFBTerminationCriteria{stopping.max_tournaments()},
++    ltfb::LTFBTerminationCriteria{static_cast<size_t>(stopping.max_tournaments())},
+     params.suppress_timer_output());
+ }