From be501f53f19b9e73436f91ed0046ac47d80b1d4a Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Fri, 9 Jun 2023 13:48:39 -0500 Subject: [PATCH] Clarify source of error message in stream testing. (#13541) This PR changes the error message from stream testing to identify that it's being raised by a cudf test utility. I didn't recognize the error text at first, and assumed it was an error from CUDA or nvbench. Authors: - Bradley Dice (https://github.com/bdice) Approvers: - David Wendt (https://github.com/davidwendt) - Vyas Ramasubramani (https://github.com/vyasr) URL: https://github.com/rapidsai/cudf/pull/13541 --- cpp/tests/utilities/identify_stream_usage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/tests/utilities/identify_stream_usage.cpp b/cpp/tests/utilities/identify_stream_usage.cpp index 6ae867a48e5..2ab7fa3844a 100644 --- a/cpp/tests/utilities/identify_stream_usage.cpp +++ b/cpp/tests/utilities/identify_stream_usage.cpp @@ -161,9 +161,9 @@ void check_stream_and_error(cudaStream_t stream) #endif // __GNUC__ char const* env_stream_error_mode{std::getenv("GTEST_CUDF_STREAM_ERROR_MODE")}; if (env_stream_error_mode && !strcmp(env_stream_error_mode, "print")) { - std::cout << "Found unexpected stream!" << std::endl; + std::cout << "cudf_identify_stream_usage found unexpected stream!" << std::endl; } else { - throw std::runtime_error("Found unexpected stream!"); + throw std::runtime_error("cudf_identify_stream_usage found unexpected stream!"); } } }