-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UCT/IB: Fallback to ibv_create_cq() if ibv_create_cq_ex() returns ENOSYS - v1.5.x #3688
UCT/IB: Fallback to ibv_create_cq() if ibv_create_cq_ex() returns ENOSYS - v1.5.x #3688
Conversation
src/uct/ib/base/ib_iface.c
Outdated
#endif | ||
return cq; | ||
{ | ||
return ibv_create_cq(context, cqe, NULL, channel, comp_vector); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: why not just leave this line without { }
? as I can see there is return from function if cq_ex is completed successfully or failed due to error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like
if (cq_ex) {
return ibv_cq_ex_to_cq(cq_ex);
} else if (errno != ENOSYS) {
return NULL;
}
/* if ibv_create_cq_ex returns ENOSYS, fallback to ibv_create_cq */
#endif
return ibv_create_cq(context, cqe, NULL, channel, comp_vector);
Test FAILed. |
Test PASSed. |
Test PASSed. |
Test FAILed. |
Test PASSed. |
bot:pipe:retest |
No description provided.