Skip to content

Commit

Permalink
feat(dipu,droplet): add error message when tangEventQuery failed (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
lljbash authored Apr 3, 2024
1 parent a0c3c33 commit 8542a62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dipu/torch_dipu/csrc_dipu/vendor/droplet/deviceimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ EventStatus getEventStatus(deviceEvent_t event) {
::tangGetLastError(); /* reset internal error state*/
return devapis::EventStatus::PENDING;
} else {
printf("call a tangrt function (tangEventQuery) failed. return code=%d",
ret);
throw std::runtime_error("dipu device error");
}
}
Expand Down

0 comments on commit 8542a62

Please sign in to comment.