Skip to content

Commit

Permalink
[L0] Make destructor of the context virtual
Browse files Browse the repository at this point in the history
to make sure that v2::context will release all the resources
on context destruction.
  • Loading branch information
igchor authored and kbenzie committed Aug 23, 2024
1 parent c43da0d commit d040a8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/adapters/level_zero/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ struct ur_context_handle_t_ : _ur_object {

ur_context_handle_t_(ze_context_handle_t ZeContext) : ZeContext{ZeContext} {}

virtual ~ur_context_handle_t_() {}

// A L0 context handle is primarily used during creation and management of
// resources that may be used by multiple devices.
// This field is only set at ur_context_handle_t creation time, and cannot
Expand Down

0 comments on commit d040a8f

Please sign in to comment.