FairMQ: Implement simple ofi Send/Receive with meta com only

This commit is contained in:
Dennis Klein
2018-02-20 19:25:55 +01:00
committed by Mohammad Al-Turany
parent eaebfc6933
commit 4250e3d45b
8 changed files with 47 additions and 143 deletions

View File

@@ -30,7 +30,7 @@ class PairLeft : public FairMQDevice
auto Run() -> void override
{
auto msg = FairMQMessagePtr{NewMessage()};
auto msg{NewMessageFor("data", 0)};
Send(msg, "data");
};
};

View File

@@ -30,10 +30,9 @@ class PairRight : public FairMQDevice
auto Run() -> void override
{
auto msg = FairMQMessagePtr{NewMessage()};
MessagePtr msg{NewMessageFor("data", 0)};
if (Receive(msg, "data") >= 0)
{
if (Receive(msg, "data") >= 0) {
LOG(info) << "PAIR test successfull";
}
};