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

Avoid compiler warnings #518

Merged

Conversation

dagardner-nv
Copy link
Contributor

@dagardner-nv dagardner-nv commented Nov 8, 2024

Description

  • Set -lto=auto to avoid a warning about [falling back to serialized compilation (cpp/mrc/CMakeLists.txt)
  • Ensure we never pass a capacity value larger than PTRDIFF_MAX to boost::fibers::buffered_channel avoids a -Walloc-size-larger-than compiler warning (cpp/mrc/include/mrc/channel/buffered_channel.hpp).
  • Ensure tags are fetched for local CI builds (fixes version number for local conda builds).

Everything else is an IWYU fix

Part of nv-morpheus/Morpheus#1988
Closes #516

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

… compiler macro, avoids a build warning:

```
/home/dagardner/work/conda/envs/mrc2/include/boost/fiber/buffered_channel.hpp:71:18: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
   71 |         slots_ = new slot_type[capacity_];
```

Remove unused macros
…r than a compiler macro, avoids a build warning:"

This reverts commit 136d27d.
@dagardner-nv dagardner-nv added improvement Improvement to existing functionality non-breaking Non-breaking change labels Nov 8, 2024
@dagardner-nv dagardner-nv self-assigned this Nov 8, 2024
@dagardner-nv dagardner-nv requested a review from a team as a code owner November 8, 2024 23:35
@dagardner-nv dagardner-nv requested a review from a team as a code owner November 8, 2024 23:53
@dagardner-nv dagardner-nv requested a review from a team as a code owner November 12, 2024 16:47
@dagardner-nv
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 10439b3 into nv-morpheus:branch-25.02 Nov 20, 2024
17 checks passed
@dagardner-nv dagardner-nv deleted the david-build-warnings-1988 branch November 20, 2024 22:34
rapids-bot bot pushed a commit to nv-morpheus/Morpheus that referenced this pull request Nov 20, 2024
* Set CMake policy #`CMP0144` to `NEW` in C++ examples, avoids a deprecation warning
* Set `-lto=auto` to avoid a warning about falling back to serialized compilation.

Related to nv-morpheus/MRC#518 .

Closes #1988

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/nv-morpheus/Morpheus/blob/main/docs/source/developer_guide/contributing.md).
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - David Gardner (https://github.com/dagardner-nv)

Approvers:
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: #2054
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.18%. Comparing base (0b9cede) to head (7779c57).
Report is 2 commits behind head on branch-25.02.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##           branch-25.02     #518   +/-   ##
=============================================
  Coverage         74.17%   74.18%           
=============================================
  Files               407      407           
  Lines             15049    15051    +2     
  Branches           1192     1192           
=============================================
+ Hits              11163    11165    +2     
  Misses             3886     3886           
Flag Coverage Δ
cpp 70.72% <100.00%> (+<0.01%) ⬆️
py 44.24% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cpp/mrc/include/mrc/benchmarking/tracer.hpp 76.74% <ø> (ø)
cpp/mrc/include/mrc/channel/buffered_channel.hpp 52.17% <100.00%> (+4.55%) ⬆️
cpp/mrc/src/internal/codable/codable_storage.cpp 37.23% <ø> (ø)
...ternal/control_plane/server/connection_manager.cpp 79.27% <ø> (ø)
cpp/mrc/src/internal/memory/device_resources.cpp 67.64% <ø> (ø)
cpp/mrc/src/internal/memory/host_resources.cpp 74.28% <ø> (ø)
cpp/mrc/src/public/benchmarking/tracer.cpp 86.31% <ø> (ø)
cpp/mrc/src/public/core/logging.cpp 100.00% <ø> (ø)
...pp/mrc/src/tests/test_control_plane_components.cpp 90.32% <ø> (ø)
cpp/mrc/src/tests/test_memory.cpp 100.00% <ø> (ø)
... and 7 more

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0b9cede...7779c57. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement to existing functionality non-breaking Non-breaking change
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[BUG]: Multiple build warnings when performing a non-debug build
2 participants