Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 9a1832b

Browse files
[SYCL] add proper initialization for ze_kernel_properties_t inputs (#460)
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent 5bb592d commit 9a1832b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SYCL/Basic/interop/get_native_ze.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ int main() {
2727

2828
ze_kernel_handle_t Handle = Kernel.get_native<BE>();
2929

30-
ze_kernel_properties_t KernelProperties;
30+
ze_kernel_properties_t KernelProperties = {
31+
ZE_STRUCTURE_TYPE_KERNEL_PROPERTIES, 0};
3132
ze_result_t Err = zeKernelGetProperties(Handle, &KernelProperties);
3233
assert(Err == ZE_RESULT_SUCCESS);
3334

0 commit comments

Comments
 (0)