Skip to content

Commit

Permalink
Update cpp/include/cudf/utilities/error.hpp
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Hemstad <[email protected]>
  • Loading branch information
sperlingxx and jrhemstad authored Apr 14, 2022
1 parent 56d00d7 commit 2e5844c
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)};
// 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};
Expand Down

0 comments on commit 2e5844c

Please sign in to comment.