14 #include <rapidsmpf/config.hpp>
15 #include <rapidsmpf/utils.hpp>
23 using rapidsmpf::Duration;
120 void put(
Context const& ctx, std::string
const& key, std::string
const& value);
135 std::string
const& key,
136 Duration timeout = std::chrono::seconds{30}
void broadcast(Context const &ctx, void *data, std::size_t size, Rank root=0)
Broadcast data from root rank to all other ranks.
void put(Context const &ctx, std::string const &key, std::string const &value)
Store a key-value pair in the coordination backend.
std::string get(Context const &ctx, std::string const &key, Duration timeout=std::chrono::seconds{30})
Retrieve a value from the coordination backend.
std::int32_t Rank
Type alias for communicator::Rank.
void barrier(Context const &ctx)
Perform a barrier synchronization across all ranks.
Context init(Backend backend=Backend::AUTO)
Initialize the bootstrap context from environment variables.
Backend
Backend types for process coordination and bootstrapping.
@ FILE
File-based coordination using a shared directory.
@ AUTO
Automatically detect the best backend based on environment.
Context information for the current process/rank.
std::optional< std::string > coord_dir
Coordination directory (for FILE backend).
Rank nranks
Total number of ranks in the job.
Backend backend
Backend used for coordination.
Rank rank
This process's rank (0-indexed).