Skip to content

Commit

Permalink
Reset exception holder immediately (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
pxl-th authored Dec 1, 2023
1 parent 1919d96 commit 85c4969
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/exception_handler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ function throw_if_exception(dev::HIPDevice)

exception_str = get_exception_string(dev)
exception_str = isempty(exception_str) ? "" : "\n$exception_str"
reset_exception_holder!(dev)
error("GPU Kernel Exception$exception_str")
end

Expand Down

0 comments on commit 85c4969

Please sign in to comment.