@@ -510,6 +510,7 @@ typedef enum ur_result_t {
510510 UR_RESULT_ERROR_LAYER_NOT_PRESENT = 67, ///< A requested layer was not found by the loader.
511511 UR_RESULT_ERROR_IN_EVENT_LIST_EXEC_STATUS = 68, ///< An event in the provided wait list has ::UR_EVENT_STATUS_ERROR.
512512 UR_RESULT_ERROR_DEVICE_NOT_AVAILABLE = 69, ///< Device in question has `::UR_DEVICE_INFO_AVAILABLE == false`
513+ UR_RESULT_ERROR_INVALID_SPEC_ID = 70, ///< A specialization constant identifier is not valid.
513514 UR_RESULT_ERROR_INVALID_COMMAND_BUFFER_EXP = 0x1000, ///< Invalid Command-Buffer
514515 UR_RESULT_ERROR_INVALID_COMMAND_BUFFER_SYNC_POINT_EXP = 0x1001, ///< Sync point is not valid for the command-buffer
515516 UR_RESULT_ERROR_INVALID_COMMAND_BUFFER_SYNC_POINT_WAIT_LIST_EXP = 0x1002, ///< Sync point wait list is invalid
@@ -4651,6 +4652,11 @@ typedef struct ur_specialization_constant_info_t {
46514652/// + `NULL == pSpecConstants`
46524653/// - ::UR_RESULT_ERROR_INVALID_SIZE
46534654/// + `count == 0`
4655+ /// - ::UR_RESULT_ERROR_INVALID_VALUE
4656+ /// + A pSpecConstant entry contains a size that does not match that of the specialization constant in the module.
4657+ /// + A pSpecConstant entry contains a nullptr pValue.
4658+ /// - ::UR_RESULT_ERROR_INVALID_SPEC_ID
4659+ /// + Any id specified in a pSpecConstant entry is not a valid specialization constant identifier.
46544660UR_APIEXPORT ur_result_t UR_APICALL
46554661urProgramSetSpecializationConstants(
46564662 ur_program_handle_t hProgram, ///< [in] handle of the Program object
@@ -5242,6 +5248,11 @@ urKernelSetArgMemObj(
52425248/// + `count == 0`
52435249/// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
52445250/// + If ::UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS query is false
5251+ /// - ::UR_RESULT_ERROR_INVALID_VALUE
5252+ /// + A pSpecConstant entry contains a size that does not match that of the specialization constant in the module.
5253+ /// + A pSpecConstant entry contains a nullptr pValue.
5254+ /// - ::UR_RESULT_ERROR_INVALID_SPEC_ID
5255+ /// + Any id specified in a pSpecConstant entry is not a valid specialization constant identifier.
52455256UR_APIEXPORT ur_result_t UR_APICALL
52465257urKernelSetSpecializationConstants(
52475258 ur_kernel_handle_t hKernel, ///< [in] handle of the kernel object
0 commit comments