Build Information
Failed to build mlx-swift, reference main (b4f768), with Swift 6.3 for Linux on 16 Oct 2026 02:35:52 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/crabel99/mlx-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/crabel99/mlx-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at b4f7684 Fix attention mask for `float16` (#496)
Submodule path 'Source/Cmlx/mlx': checked out '1f8e74e3f12f31365464a6867c6579f0e9b29d85'
Submodule path 'Source/Cmlx/mlx-c': checked out 'ebc88f10caa1b625e6b581437a8dea6df8a70085'
Submodule 'submodules/mlx' (https://github.com/ml-explore/mlx) registered for path 'Source/Cmlx/mlx'
Submodule 'submodules/mlx-c' (https://github.com/ml-explore/mlx-c) registered for path 'Source/Cmlx/mlx-c'
Cloning into '/host/spi-builder-workspace/Source/Cmlx/mlx'...
Cloning into '/host/spi-builder-workspace/Source/Cmlx/mlx-c'...
Cloned https://github.com/crabel99/mlx-swift.git
Revision (git rev-parse @):
b4f768435b15f9d6f09ca02a0037a36f9bd3690e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/crabel99/mlx-swift.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.3
Building package at path: $PWD
https://github.com/crabel99/mlx-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:1b75f3338690e1611bd07d393b988f1cb6c72bd2655b61306c710afc67bb9c44
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.3-latest
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-argument-parser
[1/6756] Fetching swift-numerics
[6690/25870] Fetching swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-numerics from cache (0.55s)
[1147/19114] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.80s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.97s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.15s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Source/Cmlx/mlx/build': File not found.
[0/9] Write sources
[3/9] Write swift-version-24593BA9C3E375BF.txt
[5/11] Compiling ArgumentParserToolInfo ToolInfo.swift
[6/11] Emitting module ArgumentParserToolInfo
[7/12] Wrapping AST for ArgumentParserToolInfo for debugging
[9/59] Emitting module ArgumentParser
[10/59] Compiling ArgumentParser ParentCommand.swift
[11/59] Compiling ArgumentParser AsyncParsableCommand.swift
[12/59] Compiling ArgumentParser CommandConfiguration.swift
[13/59] Compiling ArgumentParser CommandGroup.swift
[14/59] Compiling ArgumentParser EnumerableFlag.swift
[15/59] Compiling ArgumentParser ExpressibleByArgument.swift
[16/59] Compiling ArgumentParser ParsableArguments.swift
[17/65] Compiling ArgumentParser ArgumentVisibility.swift
[18/65] Compiling ArgumentParser CompletionKind.swift
[19/65] Compiling ArgumentParser Errors.swift
[20/65] Compiling ArgumentParser Flag.swift
[21/65] Compiling ArgumentParser NameSpecification.swift
[22/65] Compiling ArgumentParser Option.swift
[23/65] Compiling ArgumentParser OptionGroup.swift
[24/65] Compiling ArgumentParser BashCompletionsGenerator.swift
[25/65] Compiling ArgumentParser CompletionsGenerator.swift
[26/65] Compiling ArgumentParser FishCompletionsGenerator.swift
[27/65] Compiling ArgumentParser ZshCompletionsGenerator.swift
[28/65] Compiling ArgumentParser Argument.swift
[29/65] Compiling ArgumentParser ArgumentDiscussion.swift
[30/65] Compiling ArgumentParser ArgumentHelp.swift
[31/65] Compiling ArgumentParser AsyncCompletionsValidator.swift
[32/65] Compiling ArgumentParser CodingKeyValidator.swift
[33/65] Compiling ArgumentParser NonsenseFlagsValidator.swift
[34/65] Compiling ArgumentParser ParsableArgumentsValidation.swift
[35/65] Compiling ArgumentParser PositionalArgumentsValidator.swift
[36/65] Compiling ArgumentParser UniqueNamesValidator.swift
[37/65] Compiling ArgumentParser Name.swift
[38/65] Compiling ArgumentParser Parsed.swift
[39/65] Compiling ArgumentParser ParsedValues.swift
[40/65] Compiling ArgumentParser ParserError.swift
[41/65] Compiling ArgumentParser SplitArguments.swift
[42/65] Compiling ArgumentParser DumpHelpGenerator.swift
[43/65] Compiling ArgumentParser Mutex.swift
[44/65] Compiling ArgumentParser Platform.swift
[45/65] Compiling ArgumentParser SequenceExtensions.swift
[46/65] Compiling ArgumentParser StringExtensions.swift
[47/65] Compiling ArgumentParser SwiftExtensions.swift
[48/65] Compiling ArgumentParser Tree.swift
[49/65] Compiling ArgumentParser HelpCommand.swift
[50/65] Compiling ArgumentParser HelpGenerator.swift
[51/65] Compiling ArgumentParser MessageInfo.swift
[52/65] Compiling ArgumentParser UsageGenerator.swift
[53/65] Compiling ArgumentParser CollectionExtensions.swift
[54/65] Compiling ArgumentParser Foundation.swift
[55/65] Compiling ArgumentParser ParsableCommand.swift
[56/65] Compiling ArgumentParser ArgumentDecoder.swift
[57/65] Compiling ArgumentParser ArgumentDefinition.swift
[58/65] Compiling ArgumentParser ArgumentSet.swift
[59/65] Compiling ArgumentParser CommandParser.swift
[60/65] Compiling ArgumentParser InputKey.swift
[61/65] Compiling ArgumentParser InputOrigin.swift
[62/66] Wrapping AST for ArgumentParser for debugging
[64/72] Compiling encuda encuda.swift
[65/72] Compiling encuda encuda-utils.swift
[66/72] Compiling encuda encuda-error.swift
[67/72] Compiling encuda encuda-link.swift
[68/72] Compiling encuda encuda-compile.swift
[69/72] Emitting module encuda
[70/73] Wrapping AST for encuda for debugging
[71/73] Write Objects.LinkFileList
[72/73] Linking encuda-tool
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Source/Examples/Example1.swift
/host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
/host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Source/Examples/Tutorial.swift
/host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
/host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Source/Examples/Example1.swift
/host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
/host/spi-builder-workspace/Source/Examples/Tutorial.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Source/Examples/Example1.swift
/host/spi-builder-workspace/Source/Examples/Tutorial.swift
/host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
[1/1] Compiling plugin CudaBuild
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/430] Write swift-version-24593BA9C3E375BF.txt
[4/430] Write sources
[6/430] Compiling cLogSupport cLogSupport.c
[7/430] Compiling _NumericsShims _NumericsShims.c
[8/430] Write sources
[11/441] Compiling RealModule RealFunctions.swift
[12/442] Compiling RealModule RelaxedArithmetic.swift
[13/442] Compiling RealModule Real.swift
[14/442] Compiling RealModule AlgebraicField.swift
[15/442] Compiling RealModule ApproximateEquality.swift
[16/442] Compiling RealModule Float16+Real.swift
[17/442] Compiling RealModule Float80+Real.swift
[18/442] Compiling RealModule ElementaryFunctions.swift
[19/442] Compiling RealModule Float+Real.swift
[20/442] Emitting module RealModule
[21/442] Compiling RealModule AugmentedArithmetic.swift
[22/442] Compiling RealModule Double+Real.swift
[23/443] Wrapping AST for RealModule for debugging
[24/443] Write sources
[38/454] Compiling ComplexModule Polar.swift
[39/454] Compiling ComplexModule Complex+Hashable.swift
[40/454] Compiling ComplexModule Complex+IntegerLiteral.swift
[41/455] Compiling ComplexModule Complex.swift
[42/455] Compiling ComplexModule Complex+StringConvertible.swift
[43/455] Compiling ComplexModule Complex+Numeric.swift
[44/455] Compiling ComplexModule Scale.swift
[45/455] Compiling ComplexModule Complex+Codable.swift
[46/455] Compiling ComplexModule Complex+ElementaryFunctions.swift
[47/455] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[48/455] Compiling ComplexModule Complex+AlgebraicField.swift
[49/455] Emitting module ComplexModule
[51/458] Emitting module Numerics
[52/458] Compiling Numerics Numerics.swift
[53/459] Wrapping AST for ComplexModule for debugging
[54/459] Wrapping AST for Numerics for debugging
[55/459] Compiling version.cpp
[56/459] Compiling distributed_group.cpp
[57/459] Compiling distributed.cpp
[58/459] Compiling compile.cpp
[59/459] Compiling cuda.cpp
[60/459] Compiling device.cpp
[61/459] Compiling utils.cpp
[62/459] Compiling closure.cpp
[63/459] Compiling array.cpp
[64/459] Compiling stream.cpp
[65/459] Compiling scheduler.cpp
[66/459] Compiling linalg.cpp
[67/459] Compiling no_gguf.cpp
[68/459] Compiling random.cpp
[69/459] Compiling transforms.cpp
[70/459] Compiling load.cpp
[71/459] Compiling primitives.cpp
[72/459] Compiling graph_utils.cpp
[73/459] Compiling fft.cpp
[74/459] Compiling safetensors.cpp
[75/459] Compiling dtype_utils.cpp
[76/459] Compiling dtype.cpp
[77/459] Compiling fast.cpp
[78/459] Compiling utils.cpp
[79/459] Compiling einsum.cpp
[80/459] Compiling no_mpi.cpp
[81/459] Compiling no_nccl.cpp
[82/459] Compiling ops.cpp
[83/459] Compiling primitives.cpp
[84/459] Compiling ops.cpp
[85/459] Compiling device.cpp
[86/459] Compiling no_jaccl.cpp
[87/459] Compiling no_metal.cpp
[88/459] Compiling distributed.cpp
[89/459] Compiling slicing.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cuda/worker.cpp:3:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cuda/worker.h:5:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cuda/event.h:6:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cuda/utils.h:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cuda/allocator.h:7:
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cuda/cuda_utils.h:5:10: error: 'cuda.h' file not found with <angled> include; use "quotes" instead
5 | #include <cuda.h>
| ^~~~~~~~
| "cuda.h"
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cuda/cuda_utils.h:6:10: fatal error: 'cuda_runtime.h' file not found
6 | #include <cuda_runtime.h>
| ^~~~~~~~~~~~~~~~
2 errors generated.
[90/459] Compiling worker.cpp
[90/459] Compiling slicing.cpp
[90/459] Compiling utils.cpp
[90/459] Compiling copy.cpp
[90/459] Compiling primitives.cpp
[90/459] Compiling compile.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
555 | template<typename _CallArgs>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)> ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)>>' requested here
65 | std::bind(std::forward<F>(f), std::forward<Args>(args)...));
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)>>' requested here
611 | all_sums.emplace_back(pool_.enqueue(
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<bool, mlx::core::distributed::detail::SumOp<bool>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)> &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
586 | typename _Result = _Res_type<tuple<_Args...>>>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)> ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)>>' requested here
65 | std::bind(std::forward<F>(f), std::forward<Args>(args)...));
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)>>' requested here
611 | all_sums.emplace_back(pool_.enqueue(
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<bool, mlx::core::distributed::detail::SumOp<bool>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)> &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
555 | template<typename _CallArgs>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/encoder.h:46:22: note: in instantiation of function template specialization 'std::bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
46 | auto task = std::bind(std::forward<F>(f), std::forward<Args>(args)...);
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:13: note: in instantiation of function template specialization 'mlx::core::cpu::CommandEncoder::dispatch<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
565 | encoder.dispatch([in_ptr, out_ptr, size = input.size(), this, reduce_op]() {
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<bool, mlx::core::distributed::detail::SumOp<bool>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
586 | typename _Result = _Res_type<tuple<_Args...>>>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/encoder.h:46:22: note: in instantiation of function template specialization 'std::bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
46 | auto task = std::bind(std::forward<F>(f), std::forward<Args>(args)...);
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:13: note: in instantiation of function template specialization 'mlx::core::cpu::CommandEncoder::dispatch<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
565 | encoder.dispatch([in_ptr, out_ptr, size = input.size(), this, reduce_op]() {
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<bool, mlx::core::distributed::detail::SumOp<bool>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
555 | template<typename _CallArgs>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)> ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)>>' requested here
65 | std::bind(std::forward<F>(f), std::forward<Args>(args)...));
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)>>' requested here
611 | all_sums.emplace_back(pool_.enqueue(
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<signed char, mlx::core::distributed::detail::SumOp<signed char>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)> &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
586 | typename _Result = _Res_type<tuple<_Args...>>>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)> ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)>>' requested here
65 | std::bind(std::forward<F>(f), std::forward<Args>(args)...));
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)>>' requested here
611 | all_sums.emplace_back(pool_.enqueue(
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<signed char, mlx::core::distributed::detail::SumOp<signed char>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)> &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
555 | template<typename _CallArgs>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/encoder.h:46:22: note: in instantiation of function template specialization 'std::bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
46 | auto task = std::bind(std::forward<F>(f), std::forward<Args>(args)...);
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:13: note: in instantiation of function template specialization 'mlx::core::cpu::CommandEncoder::dispatch<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
565 | encoder.dispatch([in_ptr, out_ptr, size = input.size(), this, reduce_op]() {
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<signed char, mlx::core::distributed::detail::SumOp<signed char>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
586 | typename _Result = _Res_type<tuple<_Args...>>>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/encoder.h:46:22: note: in instantiation of function template specialization 'std::bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
46 | auto task = std::bind(std::forward<F>(f), std::forward<Args>(args)...);
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:13: note: in instantiation of function template specialization 'mlx::core::cpu::CommandEncoder::dispatch<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
565 | encoder.dispatch([in_ptr, out_ptr, size = input.size(), this, reduce_op]() {
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<signed char, mlx::core::distributed::detail::SumOp<signed char>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
555 | template<typename _CallArgs>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)> ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)>>' requested here
65 | std::bind(std::forward<F>(f), std::forward<Args>(args)...));
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)>>' requested here
611 | all_sums.emplace_back(pool_.enqueue(
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<short, mlx::core::distributed::detail::SumOp<short>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)> &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
586 | typename _Result = _Res_type<tuple<_Args...>>>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)> ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)>>' requested here
65 | std::bind(std::forward<F>(f), std::forward<Args>(args)...));
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)>>' requested here
611 | all_sums.emplace_back(pool_.enqueue(
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<short, mlx::core::distributed::detail::SumOp<short>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)> &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
555 | template<typename _CallArgs>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/encoder.h:46:22: note: in instantiation of function template specialization 'std::bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
46 | auto task = std::bind(std::forward<F>(f), std::forward<Args>(args)...);
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:13: note: in instantiation of function template specialization 'mlx::core::cpu::CommandEncoder::dispatch<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
565 | encoder.dispatch([in_ptr, out_ptr, size = input.size(), this, reduce_op]() {
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<short, mlx::core::distributed::detail::SumOp<short>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
586 | typename _Result = _Res_type<tuple<_Args...>>>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/encoder.h:46:22: note: in instantiation of function template specialization 'std::bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
46 | auto task = std::bind(std::forward<F>(f), std::forward<Args>(args)...);
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:13: note: in instantiation of function template specialization 'mlx::core::cpu::CommandEncoder::dispatch<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
565 | encoder.dispatch([in_ptr, out_ptr, size = input.size(), this, reduce_op]() {
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<short, mlx::core::distributed::detail::SumOp<short>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>))(int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
555 | template<typename _CallArgs>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>))(int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>)> ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>))(int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>)>>' requested here
65 | std::bind(std::forward<F>(f), std::forward<Args>(args)...));
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>))(int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>)>>' requested here
611 | all_sums.emplace_back(pool_.enqueue(
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<int, mlx::core::distributed::detail::SumOp<int>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>))(int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>)> &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>))(int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
586 | typename _Result = _Res_type<tuple<_Args...>>>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>))(int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>)> ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>))(int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>)>>' requested here
65 | std::bind(std::forward<F>(f), std::forward<Args>(args)...));
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>))(int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>)>>' requested here
611 | all_sums.emplace_back(pool_.enqueue(
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<int, mlx::core::distributed::detail::SumOp<int>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>))(int *, int *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<int>)> &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
555 | template<typename _CallArgs>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/encoder.h:46:22: note: in instantiation of function template specialization 'std::bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
46 | auto task = std::bind(std::forward<F>(f), std::forward<Args>(args)...);
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:13: note: in instantiation of function template specialization 'mlx::core::cpu::CommandEncoder::dispatch<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
565 | encoder.dispatch([in_ptr, out_ptr, size = input.size(), this, reduce_op]() {
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<int, mlx::core::distributed::detail::SumOp<int>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
586 | typename _Result = _Res_type<tuple<_Args...>>>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/encoder.h:46:22: note: in instantiation of function template specialization 'std::bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
46 | auto task = std::bind(std::forward<F>(f), std::forward<Args>(args)...);
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:13: note: in instantiation of function template specialization 'mlx::core::cpu::CommandEncoder::dispatch<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
565 | encoder.dispatch([in_ptr, out_ptr, size = input.size(), this, reduce_op]() {
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<int, mlx::core::distributed::detail::SumOp<int>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>))(long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
555 | template<typename _CallArgs>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>))(long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>)> ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>))(long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>)>>' requested here
65 | std::bind(std::forward<F>(f), std::forward<Args>(args)...));
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>))(long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>)>>' requested here
611 | all_sums.emplace_back(pool_.enqueue(
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<long, mlx::core::distributed::detail::SumOp<long>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>))(long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>)> &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>))(long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
586 | typename _Result = _Res_type<tuple<_Args...>>>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>))(long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>)> ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>))(long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>)>>' requested here
65 | std::bind(std::forward<F>(f), std::forward<Args>(args)...));
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>))(long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>)>>' requested here
611 | all_sums.emplace_back(pool_.enqueue(
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<long, mlx::core::distributed::detail::SumOp<long>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>))(long *, long *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<long>)> &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
555 | template<typename _CallArgs>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/encoder.h:46:22: note: in instantiation of function template specialization 'std::bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
46 | auto task = std::bind(std::forward<F>(f), std::forward<Args>(args)...);
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:13: note: in instantiation of function template specialization 'mlx::core::cpu::CommandEncoder::dispatch<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
565 | encoder.dispatch([in_ptr, out_ptr, size = input.size(), this, reduce_op]() {
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<long, mlx::core::distributed::detail::SumOp<long>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
586 | typename _Result = _Res_type<tuple<_Args...>>>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/encoder.h:46:22: note: in instantiation of function template specialization 'std::bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
46 | auto task = std::bind(std::forward<F>(f), std::forward<Args>(args)...);
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:13: note: in instantiation of function template specialization 'mlx::core::cpu::CommandEncoder::dispatch<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
565 | encoder.dispatch([in_ptr, out_ptr, size = input.size(), this, reduce_op]() {
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<long, mlx::core::distributed::detail::SumOp<long>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>))(unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
555 | template<typename _CallArgs>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>))(unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>)> ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>))(unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>)>>' requested here
65 | std::bind(std::forward<F>(f), std::forward<Args>(args)...));
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>))(unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>)>>' requested here
611 | all_sums.emplace_back(pool_.enqueue(
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<unsigned char, mlx::core::distributed::detail::SumOp<unsigned char>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>))(unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>)> &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>))(unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
586 | typename _Result = _Res_type<tuple<_Args...>>>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>))(unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>)> ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>))(unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>)>>' requested here
65 | std::bind(std::forward<F>(f), std::forward<Args>(args)...));
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>))(unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>)>>' requested here
611 | all_sums.emplace_back(pool_.enqueue(
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<unsigned char, mlx::core::distributed::detail::SumOp<unsigned char>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>))(unsigned char *, unsigned char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<unsigned char>)> &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
555 | template<typename _CallArgs>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/encoder.h:46:22: note: in instantiation of function template specialization 'std::bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
46 | auto task = std::bind(std::forward<F>(f), std::forward<Args>(args)...);
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:13: note: in instantiation of function template specialization 'mlx::core::cpu::CommandEncoder::dispatch<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
565 | encoder.dispatch([in_ptr, out_ptr, size = input.size(), this, reduce_op]() {
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<unsigned char, mlx::core::distributed::detail::SumOp<unsigned char>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
586 | typename _Result = _Res_type<tuple<_Args...>>>
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) ()>' requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/encoder.h:46:22: note: in instantiation of function template specialization 'std::bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
46 | auto task = std::bind(std::forward<F>(f), std::forward<Args>(args)...);
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:13: note: in instantiation of function template specialization 'mlx::core::cpu::CommandEncoder::dispatch<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
565 | encoder.dispatch([in_ptr, out_ptr, size = input.size(), this, reduce_op]() {
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<unsigned char, mlx::core::distributed::detail::SumOp<unsigned char>>' requested here
446 | all_reduce<T>(input, output, stream, detail::SumOp<T>());
| ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
444 | dispatch_all_types(output.dtype(), [&](auto type_tag) {
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
[90/459] Compiling ring.cpp
[90/459] Compiling export.cpp
BUILD FAILURE 6.3 linux