Skip to content

Commit

Permalink
OFI: Print readable error string when polling fails (#3615)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuch committed Jun 13, 2022
1 parent 3689c0d commit f499fbd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/arch/ofi/machine.C
Original file line number Diff line number Diff line change
Expand Up @@ -1231,6 +1231,13 @@ int process_completion_queue()
}
MACHSTATE2(3, "POLL: error is %d (ret=%d)\n", error.err, ret);
CmiPrintf("POLL: error is %d (ret=%d)\n", error.err, ret);
const char* strerror = fi_cq_strerror(context.cq, error.prov_errno, error.err_data, nullptr, 0);
if (strerror == nullptr)
{
CmiAbort("can't retrieve error string");
}
MACHSTATE1(3, "POLL: error string is \"%s\"\n", strerror);
CmiPrintf("POLL: error string is \"%s\"\n", strerror);
}
CmiAbort("Polling error");
}
Expand Down

0 comments on commit f499fbd

Please sign in to comment.