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

Apply IWYU changes and fix deprecated GTest usage #1821

Merged
merged 2 commits into from
Feb 11, 2025

Conversation

bdice
Copy link
Contributor

@bdice bdice commented Feb 11, 2025

Description

This is a cleanup PR. I found that we were extraneously including <thrust/optional.h> in the pool memory resource (also thrust::optional is deprecated in favor of cuda::std::optional in the upcoming major release of CCCL). I did a pass with IWYU to see what else could be fixed. IWYU could only really analyze our tests, since RMM is header-only. There are a lot of false positives/negatives, so I don't think it is appropriate to automate IWYU in our CI. I did a second pass within VSCode with clangd which helped identify more extraneous headers in our RMM header files.

I also updated some deprecated GTest code which was using TYPED_TEST_CASE instead of TYPED_TEST_SUITE and replaced some uses of ::value with the corresponding _v STL features.

Checklist

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

@bdice bdice requested a review from a team as a code owner February 11, 2025 14:05
@bdice bdice requested review from rongou and vyasr February 11, 2025 14:05
@github-actions github-actions bot added the cpp Pertains to C++ code label Feb 11, 2025
@bdice bdice self-assigned this Feb 11, 2025
@bdice bdice added non-breaking Non-breaking change improvement Improvement / enhancement to an existing function labels Feb 11, 2025
@bdice
Copy link
Contributor Author

bdice commented Feb 11, 2025

/merge

@rapids-bot rapids-bot bot merged commit 6e8539e into rapidsai:branch-25.04 Feb 11, 2025
62 checks passed
VenkateshJaya pushed a commit to VenkateshJaya/rmm that referenced this pull request Feb 11, 2025
This is a cleanup PR. I found that we were extraneously including `<thrust/optional.h>` in the pool memory resource (also `thrust::optional` is deprecated in favor of `cuda::std::optional` in the upcoming major release of CCCL). I did a pass with IWYU to see what else could be fixed. IWYU could only really analyze our tests, since RMM is header-only. There are a lot of false positives/negatives, so I don't think it is appropriate to automate IWYU in our CI. However, this felt valuable enough to open a refactoring PR.

I also updated some deprecated GTest code which was using `TYPED_TEST_CASE` instead of `TYPED_TEST_SUITE` and replaced some uses of `::value` with the corresponding `_v` STL features.

Authors:
  - Bradley Dice (https://github.com/bdice)

Approvers:
  - Lawrence Mitchell (https://github.com/wence-)

URL: rapidsai#1821
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp Pertains to C++ code improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants