Skip to content
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

Merged
merged 3 commits into from
Jun 12, 2019

Conversation

yosefe
Copy link
Contributor

@yosefe yosefe commented Jun 11, 2019

No description provided.

#endif
return cq;
{
return ibv_create_cq(context, cqe, NULL, channel, comp_vector);
Copy link
Contributor

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

Copy link
Contributor

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);

@yosefe yosefe changed the title UCT/IB: Fallback to ibv_create_cq() if ibv_create_cq_ex() returns ENOSYS UCT/IB: Fallback to ibv_create_cq() if ibv_create_cq_ex() returns ENOSYS - v1.5.x Jun 11, 2019
@mellanox-github
Copy link
Contributor

Test FAILed.
See http://hpc-master.lab.mtl.com:8080/job/hpc-ucx-pr/10607/ for details (Mellanox internal link).

@swx-jenkins1
Copy link

Test PASSed.
See http://bgate.mellanox.com/jenkins/job/gh-ucx-pr/7638/ for details.

@swx-jenkins1
Copy link

Test PASSed.
See http://bgate.mellanox.com/jenkins/job/gh-ucx-pr/7639/ for details.

@mellanox-github
Copy link
Contributor

Test FAILed.
See http://hpc-master.lab.mtl.com:8080/job/hpc-ucx-pr/10608/ for details (Mellanox internal link).

@mellanox-github
Copy link
Contributor

Test PASSed.
See http://hpc-master.lab.mtl.com:8080/job/hpc-ucx-pr/10612/ for details (Mellanox internal link).

@yosefe
Copy link
Contributor Author

yosefe commented Jun 12, 2019

bot:pipe:retest

@yosefe yosefe merged commit 195f046 into openucx:v1.5.x Jun 12, 2019
@yosefe yosefe deleted the topic/ibv-create-cq-ex-fallback-v1.5.x branch June 12, 2019 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants