Skip to content

Commit

Permalink
Enable gtests previously disabled for compute-sanitizer bug (#16581)
Browse files Browse the repository at this point in the history
Enables tests disable in #15259 due to a `compute-sanitizer` bug. This has been fixed in the CUDA 12.5 release and the nightly memchecks should pass again with these enabled.

Authors:
  - David Wendt (https://github.com/davidwendt)

Approvers:
  - Nghia Truong (https://github.com/ttnghia)
  - Bradley Dice (https://github.com/bdice)

URL: #16581
  • Loading branch information
davidwendt authored Aug 20, 2024
1 parent e450baf commit 28fee97
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 41 deletions.
16 changes: 2 additions & 14 deletions cpp/tests/iterator/value_iterator_test_numeric.cu
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,5 @@ template <typename T>
struct NumericValueIteratorTest : public IteratorTest<T> {};

TYPED_TEST_SUITE(NumericValueIteratorTest, TestingTypes);
TYPED_TEST(NumericValueIteratorTest, non_null_iterator)
{
if constexpr (std::is_same_v<TypeParam, int16_t> || std::is_same_v<TypeParam, uint16_t>) {
if (getenv("LIBCUDF_MEMCHECK_ENABLED")) { return; }
}
non_null_iterator(*this);
}
TYPED_TEST(NumericValueIteratorTest, null_iterator)
{
if constexpr (std::is_same_v<TypeParam, int16_t> || std::is_same_v<TypeParam, uint16_t>) {
if (getenv("LIBCUDF_MEMCHECK_ENABLED")) { return; }
}
null_iterator(*this);
}
TYPED_TEST(NumericValueIteratorTest, non_null_iterator) { non_null_iterator(*this); }
TYPED_TEST(NumericValueIteratorTest, null_iterator) { null_iterator(*this); }
3 changes: 0 additions & 3 deletions cpp/tests/reductions/reduction_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,6 @@ TYPED_TEST_SUITE(ReductionTest, cudf::test::NumericTypes);
TYPED_TEST(ReductionTest, Product)
{
using T = TypeParam;
if constexpr (std::is_same_v<T, int16_t> || std::is_same_v<T, uint16_t>) {
if (getenv("LIBCUDF_MEMCHECK_ENABLED")) { return; }
}

std::vector<int> int_values({5, -1, 1, 0, 3, 2, 4});
std::vector<bool> host_bools({true, true, false, false, true, true, true});
Expand Down
24 changes: 0 additions & 24 deletions cpp/tests/reductions/segmented_reduction_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ TYPED_TEST(SegmentedReductionTest, SumExcludeNulls)

TYPED_TEST(SegmentedReductionTest, ProductExcludeNulls)
{
if constexpr (std::is_same_v<TypeParam, int16_t> || std::is_same_v<TypeParam, uint16_t>) {
if (getenv("LIBCUDF_MEMCHECK_ENABLED")) { return; }
}

// [1, 3, 5], [null, 3, 5], [1], [null], [null, null], []
// values: {1, 3, 5, XXX, 3, 5, 1, XXX, XXX, XXX}
// offsets: {0, 3, 6, 7, 8, 10, 10}
Expand Down Expand Up @@ -141,10 +137,6 @@ TYPED_TEST(SegmentedReductionTest, ProductExcludeNulls)

TYPED_TEST(SegmentedReductionTest, MaxExcludeNulls)
{
if constexpr (std::is_same_v<TypeParam, int16_t> || std::is_same_v<TypeParam, uint16_t>) {
if (getenv("LIBCUDF_MEMCHECK_ENABLED")) { return; }
}

// [1, 2, 3], [1, null, 3], [1], [null], [null, null], []
// values: {1, 2, 3, 1, XXX, 3, 1, XXX, XXX, XXX}
// offsets: {0, 3, 6, 7, 8, 10, 10}
Expand Down Expand Up @@ -193,10 +185,6 @@ TYPED_TEST(SegmentedReductionTest, MaxExcludeNulls)

TYPED_TEST(SegmentedReductionTest, MinExcludeNulls)
{
if constexpr (std::is_same_v<TypeParam, int16_t> || std::is_same_v<TypeParam, uint16_t>) {
if (getenv("LIBCUDF_MEMCHECK_ENABLED")) { return; }
}

// [1, 2, 3], [1, null, 3], [1], [null], [null, null], []
// values: {1, 2, 3, 1, XXX, 3, 1, XXX, XXX, XXX}
// offsets: {0, 3, 6, 7, 8, 10, 10}
Expand Down Expand Up @@ -388,10 +376,6 @@ TYPED_TEST(SegmentedReductionTest, SumIncludeNulls)

TYPED_TEST(SegmentedReductionTest, ProductIncludeNulls)
{
if constexpr (std::is_same_v<TypeParam, int16_t> || std::is_same_v<TypeParam, uint16_t>) {
if (getenv("LIBCUDF_MEMCHECK_ENABLED")) { return; }
}

// [1, 3, 5], [null, 3, 5], [1], [null], [null, null], []
// values: {1, 3, 5, XXX, 3, 5, 1, XXX, XXX, XXX}
// offsets: {0, 3, 6, 7, 8, 10, 10}
Expand Down Expand Up @@ -445,10 +429,6 @@ TYPED_TEST(SegmentedReductionTest, ProductIncludeNulls)

TYPED_TEST(SegmentedReductionTest, MaxIncludeNulls)
{
if constexpr (std::is_same_v<TypeParam, int16_t> || std::is_same_v<TypeParam, uint16_t>) {
if (getenv("LIBCUDF_MEMCHECK_ENABLED")) { return; }
}

// [1, 2, 3], [1, null, 3], [1], [null], [null, null], []
// values: {1, 2, 3, 1, XXX, 3, 1, XXX, XXX, XXX}
// offsets: {0, 3, 6, 7, 8, 10, 10}
Expand Down Expand Up @@ -500,10 +480,6 @@ TYPED_TEST(SegmentedReductionTest, MaxIncludeNulls)

TYPED_TEST(SegmentedReductionTest, MinIncludeNulls)
{
if constexpr (std::is_same_v<TypeParam, int16_t> || std::is_same_v<TypeParam, uint16_t>) {
if (getenv("LIBCUDF_MEMCHECK_ENABLED")) { return; }
}

// [1, 2, 3], [1, null, 3], [1], [null], [null, null], []
// values: {1, 2, 3, 1, XXX, 3, 1, XXX, XXX}
// offsets: {0, 3, 6, 7, 8, 10, 10}
Expand Down

0 comments on commit 28fee97

Please sign in to comment.