Skip to content

Conversation

@aravindksg
Copy link
Contributor

Currently, the progress function is incorrectly interpreting any error
value other than a positive value or -FI_EAVAIL to mean CQ is empty.
CQ is empty only if fi_cq_read() call returned -EAGAIN error
code. Fix that here.

While at it, fix help text output for calls made to OFI API.

Signed-off-by: Aravind Gopalakrishnan [email protected]
(cherry picked from commit 285fc42)

Currently, the progress function is incorrectly interpreting any error
value other than a positive value or -FI_EAVAIL to mean CQ is empty.
CQ is empty only if fi_cq_read() call returned -EAGAIN error
code. Fix that here.

While at it, fix help text output for calls made to OFI API.

Signed-off-by: Aravind Gopalakrishnan <[email protected]>
(cherry picked from commit 285fc42)
Copy link
Contributor

@rhc54 rhc54 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the one I reviewed for v2.1

@open-mpi open-mpi deleted a comment from ibm-ompi Nov 7, 2017
@aravindksg
Copy link
Contributor Author

aravindksg commented Nov 10, 2017

bot:ompi:retest

@jsquyres jsquyres mentioned this pull request Nov 11, 2017
Copy link
Member

@jsquyres jsquyres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see #4494.

No code or logic changes.

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit bed1930)
No code or logic changes.

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit e8c13ef)
The value of ret is negative (e.g., -61), but it is displayed in the
help message as `%zd`, which renders as unsigned (i.e., a giant
positive value).  So make sure to negate the negative value before
rendering it (e.g., so we display "61", not "4294967235").

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit f910f55)
Before this commit, the presence of usNIC devices -- which will
(currently) return no data when fi_getinfo() is queried for tagged
matching providers -- would cause an error message to be displayed.

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit 5a6ddf4)
gcc 5.2 complains:

```
mtl_ofi_component.c: In function ‘ompi_mtl_ofi_finalize’:
mtl_ofi_component.c:613:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
     if (ret = fi_close((fid_t)ompi_mtl_ofi.fabric)) {
     ^
```

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit a8686a6)
@ompiteam-bot
Copy link

All Tests Passed!

Copy link
Member

@jsquyres jsquyres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @aravindksg

@bwbarrett bwbarrett merged commit b11c8e2 into open-mpi:v3.1.x Nov 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants