From 7e1d3b9024daab501ed097960fa1993f1544df87 Mon Sep 17 00:00:00 2001 From: Marcin Hajder Date: Thu, 29 Aug 2024 18:18:50 +0200 Subject: [PATCH] Device id initialization correction --- layers/11_semaemu/emulate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/11_semaemu/emulate.cpp b/layers/11_semaemu/emulate.cpp index f2bfd53..ef59166 100644 --- a/layers/11_semaemu/emulate.cpp +++ b/layers/11_semaemu/emulate.cpp @@ -174,7 +174,7 @@ typedef struct _cl_semaphore_khr } else { - cl_device_id device=0; + cl_device_id device=nullptr; g_pNextDispatch->clGetContextInfo( context, CL_CONTEXT_DEVICES,