From 65c8a3914aca7aeeb28548ee0b1ce12910e5c15d Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 2 Feb 2024 15:32:37 +0000 Subject: [PATCH] [L0] Always initialized ZeKernel --- source/adapters/level_zero/kernel.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/adapters/level_zero/kernel.hpp b/source/adapters/level_zero/kernel.hpp index b6ded8d604..1cc146d262 100644 --- a/source/adapters/level_zero/kernel.hpp +++ b/source/adapters/level_zero/kernel.hpp @@ -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; }