Skip to content

Commit

Permalink
use unreachable for UR_KERNEL_SUB_GROUP_INFO_FORCE_UINT32
Browse files Browse the repository at this point in the history
  • Loading branch information
wenju-he committed Nov 23, 2023
1 parent 82d4cef commit d0319b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/adapters/native_cpu/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d0319b2

Please sign in to comment.