FairMQ: Switch to verbs:ofi_rxm provider

RDM endpoints seem buggy on pure verbs provider. Switch on RDM emulator
for now.
This commit is contained in:
Dennis Klein
2018-03-13 02:57:49 +01:00
committed by Mohammad Al-Turany
parent 811fe50a48
commit 697c440aa0
2 changed files with 9 additions and 7 deletions

View File

@@ -325,11 +325,13 @@ try {
// Send data
fi_context ctx;
auto ret = fi_send(fDataEndpoint, msg->GetData(), size, nullptr, fRemoteDataAddr, &ctx);
if (ret != FI_SUCCESS)
if (ret < 0)
throw SocketError(tools::ToString("Failed posting ofi send buffer, reason: ", fi_strerror(ret)));
}
if (size) {
fi_cq_err_entry cqEntry;
ret = fi_cq_sread(fDataCompletionQueueTx, &cqEntry, 1, nullptr, -1);
auto ret = fi_cq_sread(fDataCompletionQueueTx, &cqEntry, 1, nullptr, -1);
if (ret != 1)
throw SocketError(tools::ToString("Failed reading ofi tx completion queue event, reason: ", fi_strerror(ret)));
}
@@ -371,7 +373,7 @@ try {
auto buf = msg->GetData();
auto size2 = msg->GetSize();
auto ret = fi_recv(fDataEndpoint, buf, size2, nullptr, fRemoteDataAddr, &ctx);
if (ret != FI_SUCCESS)
if (ret < 0)
throw SocketError(tools::ToString("Failed posting ofi receive buffer, reason: ", fi_strerror(ret)));
// Create and send control message