13 #include <rapidsmpf/bootstrap/backend.hpp>
14 #include <rapidsmpf/bootstrap/types.hpp>
99 void put(
Context const& ctx, std::string
const& key, std::string
const& value);
116 std::string
const& key,
117 Duration timeout = std::chrono::seconds{30}
void put(Context const &ctx, std::string const &key, std::string const &value)
Store a key-value pair in the coordination backend (rank 0 only).
std::string get(Context const &ctx, std::string const &key, Duration timeout=std::chrono::seconds{30})
Retrieve a value from the coordination backend.
Context init(BackendType type=BackendType::AUTO)
Initialize the bootstrap context from environment variables.
std::int32_t Rank
Type alias for communicator::Rank.
void barrier(Context const &ctx)
Perform a barrier synchronization across all ranks.
BackendType
Backend types for process coordination and bootstrapping.
@ AUTO
Automatically detect the best backend based on environment.
std::chrono::duration< double > Duration
Type alias for Duration type.
void sync(Context const &ctx)
Ensure all previous put() operations are globally visible.
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.
std::shared_ptr< detail::Backend > backend
Backend implementation (internal, do not access directly).
BackendType type
Backend type used for coordination.
Rank rank
This process's rank (0-indexed).