1 #include <THD/base/data_channels/DataChannelMPI.hpp> 8 constexpr
int WORKERS_NUM = 2;
10 int main(
int argc,
char** argv) {
16 std::to_string(WORKERS_NUM + 1).data(),
22 auto dataChannel = std::make_shared<thd::DataChannelMPI>();
23 assert(dataChannel->init());
24 assert(dataChannel->getNumProcesses() == (WORKERS_NUM + 1));
25 std::cout <<
"OK (id: " << dataChannel->getRank() <<
")" << std::endl;