Skip to content

master: portals4: fix compiler warnings in all the Portals4 components #9391

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

Conversation

tkordenbrock
Copy link
Member

@tkordenbrock tkordenbrock commented Sep 17, 2021

btl-portals4:

  • move recv init inside the interface init loop
  • fix uninitialized variable compiler warnings
  • fix unused variable compiler warnings
  • fix undefined variable failures in debug builds

mtl-portals4:

  • move verbose output to the end of open() to avoid complicated message generation
  • use opal_atomic_int32_t instead of bare int32_t
  • remove unneeded cast to bare int32_t
  • cast to opal_atomic_int64_t instead of bare int64_t
  • there is no function to add-fetch uint32_t, so change event_count type to opal_atomic_int32_t

coll-portals4:

  • move declaration of loop index variables into the loop
  • fix hidden loop index compiler warnings
  • use REQUEST_COMPLETE to mark ompi_request_t complete
  • remove incorrect req_complete initialization

osc-portals4:

  • replace nonstatndard __FUNCTION__ references with __FILE__
  • use REQUEST_COMPLETE to mark ompi_request_t complete
  • remove incorrect req_complete initialization
  • add atomic compatible bytes_committed member to ompi_osc_portals4_request_t
  • the request status _ucount member shouldn't be incremented with opal_atomic_add_fetch_32() because it isn't declared with _Atomic
  • instead increment bytes_committed and assigned the result to _ucount

Signed-off-by: Todd Kordenbrock thkgcode@gmail.com

Closes #9390

    - move recv init inside the interface init loop
    - fix uninitialized variable compiler warnings
    - fix unused variable compiler warnings
    - fix undefined variable failures in debug builds
mtl-portals4:
    - move verbose output to the end of open() to avoid complicated message generation
    - use opal_atomic_int32_t instead of bare int32_t
    - remove unneeded cast to bare int32_t
    - cast to opal_atomic_int64_t instead of bare int64_t
    - there is no function to add-fetch uint32_t, so change event_count type to opal_atomic_int32_t
coll-portals4:
    - move declaration of loop index variables into the loop
    - fix hidden loop index compiler warnings
    - use REQUEST_COMPLETE to mark ompi_request_t complete
    - remove incorrect req_complete initialization
osc-portals4:
    - replace nonstatndard __FUNCTION__ references with __FILE__
    - use REQUEST_COMPLETE to mark ompi_request_t complete
    - remove incorrect req_complete initialization
    - add atomic compatible bytes_committed member to ompi_osc_portals4_request_t
    - the request status _ucount member shouldn't be incremented with opal_atomic_add_fetch_32() because it isn't declared with _Atomic.
    - instead increment bytes_committed and assigned the result to _ucount.

Signed-off-by: Todd Kordenbrock <thkgcode@gmail.com>
Copy link
Contributor

@mdosanjh mdosanjh left a comment

Choose a reason for hiding this comment

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

All of these changes look good to me.

@tkordenbrock tkordenbrock merged commit 18579b7 into open-mpi:master Sep 28, 2021
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.

portals4: fix compiler warnings in all the Portals4 components
2 participants