Skip to content

Commit

Permalink
Merge pull request #943 from hdelan/re-add-extended-deleters
Browse files Browse the repository at this point in the history
[HIP] Re add extended deleters
  • Loading branch information
kbenzie committed Oct 17, 2023
2 parents 1f149fb + 496d694 commit f0de2f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions source/adapters/hip/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ urContextGetInfo(ur_context_handle_t hContext, ur_context_info_t propName,
UR_APIEXPORT ur_result_t UR_APICALL
urContextRelease(ur_context_handle_t hContext) {
if (hContext->decrementReferenceCount() == 0) {
hContext->invokeExtendedDeleters();
delete hContext;
}
return UR_RESULT_SUCCESS;
Expand Down
1 change: 0 additions & 1 deletion test/conformance/context/context_adapter_hip.match
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
urContextCreateWithNativeHandleTest.Success/AMD_HIP_BACKEND___{{.*}}_
urContextSetExtendedDeleterTest.Success/AMD_HIP_BACKEND___{{.*}}_

0 comments on commit f0de2f4

Please sign in to comment.