Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sperlingxx committed Apr 14, 2022
1 parent 2e5844c commit 53156c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/include/cudf/utilities/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)};
// Call cudaDeviceSynchronize to ensure `last` did not result from an asynchronous error.
// 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};
Expand Down

0 comments on commit 53156c9

Please sign in to comment.