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

Remove checking for specific tests in memcheck script #16412

Merged
merged 3 commits into from
Jul 31, 2024

Conversation

davidwendt
Copy link
Contributor

Description

Removes the checking for specific gtests in the run_cudf_memcheck_ctests.sh script. Each of those tests can check the LIBCUDF_MEMCHECK_ENABLED environment variable themselves.
This simplifies the script logic and may help with replacing this with ctest logic in the future.

Checklist

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

@davidwendt davidwendt added 3 - Ready for Review Ready for review by team libcudf Affects libcudf (C++/CUDA) code. improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jul 26, 2024
@davidwendt davidwendt self-assigned this Jul 26, 2024
@davidwendt davidwendt requested review from a team as code owners July 26, 2024 21:40
@davidwendt davidwendt requested review from bdice and harrism July 26, 2024 21:40
@@ -50,6 +50,8 @@ CUDF_KERNEL void test_kernel(int* data) { data[threadIdx.x] = threadIdx.x; }
// calls.
TEST(StreamCheck, FailedKernel)
{
if (getenv("LIBCUDF_MEMCHECK_ENABLED")) { return; }
Copy link
Member

Choose a reason for hiding this comment

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

perhaps we should use GTEST_SKIP() rather than just returning?

Suggested change
if (getenv("LIBCUDF_MEMCHECK_ENABLED")) { return; }
if (getenv("LIBCUDF_MEMCHECK_ENABLED")) { GTEST_SKIP(); }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. This works in this file but not in the test_default_stream_identification.cu since that one is not actually a gtest.

@davidwendt davidwendt requested a review from harrism July 30, 2024 21:14
@davidwendt
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 79a1eed into rapidsai:branch-24.10 Jul 31, 2024
80 checks passed
@davidwendt davidwendt deleted the disable-memcheck2 branch July 31, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants