Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
gather_str.hpp
Go to the documentation of this file.
1// -------------------------------------------------------//
2//
3// SHAMROCK code for hydrodynamics
4// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7//
8// -------------------------------------------------------//
9
10#pragma once
11
20#include <string>
21
22namespace shamalgs::collective {
23
37 void gather_str(const std::string &send_vec, std::string &recv_vec);
38
41 const std::basic_string<byte> &send_vec, std::basic_string<byte> &recv_vec);
42
50 void allgather_str(const std::string &send_vec, std::string &recv_vec);
51
54 const std::basic_string<byte> &send_vec, std::basic_string<byte> &recv_vec);
55
56} // namespace shamalgs::collective
void allgather_basic_str(const std::basic_string< byte > &send_vec, std::basic_string< byte > &recv_vec)
same as allgather_str but with std::basic_string
void allgather_str(const std::string &send_vec, std::string &recv_vec)
Allgathers a string from all nodes and concatenates it in a std::string.
void gather_basic_str(const std::basic_string< byte > &send_vec, std::basic_string< byte > &recv_vec)
same as gather_str but with std::basic_string
void gather_str(const std::string &send_vec, std::string &recv_vec)
Gathers a string from all nodes and store the result in a std::string.