diff --git a/sycl/plugins/unified_runtime/pi2ur.hpp b/sycl/plugins/unified_runtime/pi2ur.hpp index d8c526e289855..a3040a61e9c69 100644 --- a/sycl/plugins/unified_runtime/pi2ur.hpp +++ b/sycl/plugins/unified_runtime/pi2ur.hpp @@ -4496,8 +4496,8 @@ piextCommandBufferCreate(pi_context Context, pi_device Device, ur_device_handle_t UrDevice = reinterpret_cast(Device); ur_exp_command_buffer_desc_t UrDesc; UrDesc.stype = UR_STRUCTURE_TYPE_EXP_COMMAND_BUFFER_DESC; - UrDesc.isInOrder = Desc->is_in_order; - UrDesc.enableProfiling = Desc->enable_profiling; + UrDesc.isInOrder = ur_bool_t(Desc->is_in_order); + UrDesc.enableProfiling = ur_bool_t(Desc->enable_profiling); UrDesc.isUpdatable = Desc->is_updatable; ur_exp_command_buffer_handle_t *UrCommandBuffer = reinterpret_cast(RetCommandBuffer);