From d0319b23c6ad2045cf33d9eacf183d7879ae8c78 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Thu, 23 Nov 2023 08:04:57 +0800 Subject: [PATCH] use unreachable for UR_KERNEL_SUB_GROUP_INFO_FORCE_UINT32 --- source/adapters/native_cpu/kernel.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/adapters/native_cpu/kernel.cpp b/source/adapters/native_cpu/kernel.cpp index d1a885203c..cfe5f0a930 100644 --- a/source/adapters/native_cpu/kernel.cpp +++ b/source/adapters/native_cpu/kernel.cpp @@ -173,8 +173,11 @@ urKernelGetSubGroupInfo(ur_kernel_handle_t hKernel, ur_device_handle_t hDevice, return ReturnValue(0); } case UR_KERNEL_SUB_GROUP_INFO_FORCE_UINT32: { - // todo: set proper values - return ReturnValue(0); +#ifdef _MSC_VER + __assume(0); +#else + __builtin_unreachable(); +#endif } } DIE_NO_IMPLEMENTATION;