fpmas 1.6
hard_data_sync.h
Go to the documentation of this file.
1#ifndef FPMAS_HARD_DATA_SYNC_H
2#define FPMAS_HARD_DATA_SYNC_H
3
9#include "server_pack.h"
10
11namespace fpmas { namespace synchro { namespace hard {
12
22 template<typename T>
26
28 ServerPackBase& server_pack;
30
31 public:
41 ServerPackBase& server_pack,
43 : comm(comm), server_pack(server_pack), graph(graph) {
44 }
45
63 void synchronize() override {
64 FPMAS_LOGI(comm.getRank(), "HARD_DATA_SYNC", "Synchronizing data sync...", "");
65 server_pack.terminate();
66 FPMAS_LOGI(comm.getRank(), "HARD_DATA_SYNC", "Synchronized.", "");
67 };
68
81 std::unordered_set<fpmas::api::graph::DistributedNode<T>*>
82 ) override {
84 }
85 };
86
87}}}
88#endif
Definition: communication.h:251
Definition: distributed_graph.h:169
Definition: distributed_node.h:28
Definition: sync_mode.h:26
Definition: hard_data_sync.h:23
void synchronize() override
Definition: hard_data_sync.h:63
void synchronize(std::unordered_set< fpmas::api::graph::DistributedNode< T > * >) override
Definition: hard_data_sync.h:80
HardDataSync(fpmas::api::communication::MpiCommunicator &comm, ServerPackBase &server_pack, fpmas::api::graph::DistributedGraph< T > &graph)
Definition: hard_data_sync.h:39
Definition: server_pack.h:39
void terminate()
Definition: server_pack.h:119
Definition: client_server.h:208
Definition: fpmas.cpp:3