Skip to content

Commit

Permalink
Merge pull request #1315 from kbenzie/benie/l0-fix-uninit
Browse files Browse the repository at this point in the history
[L0] Always initialized ZeKernel
  • Loading branch information
pbalcer authored Feb 7, 2024
2 parents 3943e7e + 65c8a39 commit 3a1c48c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/adapters/level_zero/kernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

struct ur_kernel_handle_t_ : _ur_object {
ur_kernel_handle_t_(bool OwnZeHandle, ur_program_handle_t Program)
: Context{nullptr}, Program{Program}, SubmissionsCount{0}, MemAllocs{} {
: Context{nullptr}, Program{Program}, ZeKernel{nullptr},
SubmissionsCount{0}, MemAllocs{} {
OwnNativeHandle = OwnZeHandle;
}

Expand Down

0 comments on commit 3a1c48c

Please sign in to comment.