From 2e5844cdf634f6d9f742f7669c33bba6f2a885c7 Mon Sep 17 00:00:00 2001 From: Alfred Xu Date: Thu, 14 Apr 2022 09:55:06 +0800 Subject: [PATCH] Update cpp/include/cudf/utilities/error.hpp Co-authored-by: Jake Hemstad --- cpp/include/cudf/utilities/error.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/include/cudf/utilities/error.hpp b/cpp/include/cudf/utilities/error.hpp index 07874ae6ece..9cff693e375 100644 --- a/cpp/include/cudf/utilities/error.hpp +++ b/cpp/include/cudf/utilities/error.hpp @@ -121,7 +121,7 @@ inline void throw_cuda_error(cudaError_t error, const char* file, unsigned int l auto const msg = std::string{"CUDA error encountered at: " + std::string{file} + ":" + std::to_string(line) + ": " + std::to_string(error) + " " + cudaGetErrorName(error) + " " + cudaGetErrorString(error)}; - // Calls cudaDeviceSynchronize to make sure that there is no other asynchronize error occurs + // Call cudaDeviceSynchronize to ensure `last` did not result from an asynchronous error. // between two calls. if (error == last && last == cudaDeviceSynchronize()) { throw fatal_cuda_error{"Fatal " + msg, error};