From 3fd24e9b4ca44ed2db3e9add67f5da5af516027d Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Tue, 5 Sep 2023 10:08:22 +0300 Subject: [PATCH 1/2] Add --track-origins=yes to track memory issues. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10f8b26c5..c331acd32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -223,7 +223,7 @@ jobs: cmake --build . --target check-cppinterop --parallel $(nproc --all) cppyy_on="${{ matrix.cppyy }}" if [[ "${cppyy_on^^}" != "ON" ]]; then - valgrind --error-exitcode=1 unittests/CppInterOp/CppInterOpTests 2>&1 >/dev/null + valgrind --track-origins=yes --error-exitcode=1 unittests/CppInterOp/CppInterOpTests 2>&1 >/dev/null fi cd .. # We need CB_PYTHON_DIR later From 4db350af77566fa1fed7542816209314eb8f58f6 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Mon, 4 Sep 2023 17:37:32 +0000 Subject: [PATCH 2/2] Revert "Debug" This reverts commit bcd51b7b00a9df4121f86673b552241d6a0c93b4 which was accidentally merged. --- unittests/CppInterOp/CUDATest.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/unittests/CppInterOp/CUDATest.cpp b/unittests/CppInterOp/CUDATest.cpp index dfa27f814..aced45f94 100644 --- a/unittests/CppInterOp/CUDATest.cpp +++ b/unittests/CppInterOp/CUDATest.cpp @@ -1,4 +1,3 @@ -#if 0 #include "Utils.h" #include "clang/Basic/Version.h" @@ -65,4 +64,3 @@ TEST(CUDATest, CUDARuntime) { EXPECT_TRUE(HasCudaRuntime()); } -#endif