We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff512f5 commit a37449aCopy full SHA for a37449a
unified-runtime/source/adapters/offload/event.cpp
@@ -57,12 +57,10 @@ UR_APIEXPORT ur_result_t UR_APICALL urEventRetain(ur_event_handle_t hEvent) {
57
58
UR_APIEXPORT ur_result_t UR_APICALL urEventRelease(ur_event_handle_t hEvent) {
59
if (--hEvent->RefCount == 0) {
60
- // There's a small bug in olDestroyEvent that will crash. Leak the event
61
- // in the meantime.
62
- // auto Res = olDestroyEvent(hEvent->OffloadEvent);
63
- // if (Res) {
64
- // return offloadResultToUR(Res);
65
- // }
+ auto Res = olDestroyEvent(hEvent->OffloadEvent);
+ if (Res) {
+ return offloadResultToUR(Res);
+ }
66
}
67
68
delete hEvent;
0 commit comments