Skip to content

Commit

Permalink
update error handling in flops_achieved function
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravharsha committed Oct 23, 2024
1 parent 48b96be commit 977a924
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gw_gpu_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ namespace green::gpu {
if (!cugw_event.active) {
gpu_time = cugw_event.duration;
} else {
gpu_time = 0.;
cugw_event.active = false;
throw std::runtime_error("'Solve cuGW' event not found");
throw std::runtime_error("'Solve cuGW' still active, but it should not be.");
}
}

Expand Down

0 comments on commit 977a924

Please sign in to comment.