@@ -1639,6 +1639,9 @@ typedef enum ur_device_info_t {
16391639 UR_DEVICE_INFO_GLOBAL_VARIABLE_SUPPORT = 118, ///< [::ur_bool_t] return true if the device supports the
16401640 ///< `EnqueueDeviceGlobalVariableWrite` and
16411641 ///< `EnqueueDeviceGlobalVariableRead` entry points.
1642+ UR_DEVICE_INFO_USM_POOL_SUPPORT = 119, ///< [::ur_bool_t] return true if the device supports USM pooling. Pertains
1643+ ///< to the `USMPool` entry points and usage of the `pool` parameter of the
1644+ ///< USM alloc entry points.
16421645 UR_DEVICE_INFO_COMMAND_BUFFER_SUPPORT_EXP = 0x1000, ///< [::ur_bool_t] Returns true if the device supports the use of
16431646 ///< command-buffers.
16441647 UR_DEVICE_INFO_COMMAND_BUFFER_UPDATE_CAPABILITIES_EXP = 0x1001, ///< [::ur_device_command_buffer_update_capability_flags_t] Command-buffer
@@ -3536,6 +3539,8 @@ typedef struct ur_usm_pool_limits_desc_t {
35363539/// + `size` is greater than ::UR_DEVICE_INFO_MAX_MEM_ALLOC_SIZE.
35373540/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
35383541/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
3542+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
3543+ /// + If any device associated with `hContext` reports `false` for ::UR_DEVICE_INFO_USM_POOL_SUPPORT
35393544UR_APIEXPORT ur_result_t UR_APICALL
35403545urUSMHostAlloc(
35413546 ur_context_handle_t hContext, ///< [in] handle of the context object
@@ -3583,6 +3588,8 @@ urUSMHostAlloc(
35833588/// + `size` is greater than ::UR_DEVICE_INFO_MAX_MEM_ALLOC_SIZE.
35843589/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
35853590/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
3591+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
3592+ /// + If any device associated with `hContext` reports `false` for ::UR_DEVICE_INFO_USM_POOL_SUPPORT
35863593UR_APIEXPORT ur_result_t UR_APICALL
35873594urUSMDeviceAlloc(
35883595 ur_context_handle_t hContext, ///< [in] handle of the context object
@@ -3632,6 +3639,8 @@ urUSMDeviceAlloc(
36323639/// + If `UR_DEVICE_INFO_USM_SINGLE_SHARED_SUPPORT` and `UR_DEVICE_INFO_USM_CROSS_SHARED_SUPPORT` are both false.
36333640/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
36343641/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
3642+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
3643+ /// + If any device associated with `hContext` reports `false` for ::UR_DEVICE_INFO_USM_POOL_SUPPORT
36353644UR_APIEXPORT ur_result_t UR_APICALL
36363645urUSMSharedAlloc(
36373646 ur_context_handle_t hContext, ///< [in] handle of the context object
@@ -3713,6 +3722,8 @@ urUSMGetMemAllocInfo(
37133722/// + `::UR_USM_POOL_FLAGS_MASK & pPoolDesc->flags`
37143723/// - ::UR_RESULT_ERROR_INVALID_VALUE
37153724/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
3725+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
3726+ /// + If any device associated with `hContext` reports `false` for ::UR_DEVICE_INFO_USM_POOL_SUPPORT
37163727UR_APIEXPORT ur_result_t UR_APICALL
37173728urUSMPoolCreate(
37183729 ur_context_handle_t hContext, ///< [in] handle of the context object
@@ -3731,6 +3742,7 @@ urUSMPoolCreate(
37313742/// - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
37323743/// - ::UR_RESULT_ERROR_INVALID_NULL_HANDLE
37333744/// + `NULL == pPool`
3745+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
37343746UR_APIEXPORT ur_result_t UR_APICALL
37353747urUSMPoolRetain(
37363748 ur_usm_pool_handle_t pPool ///< [in][retain] pointer to USM memory pool
@@ -3753,6 +3765,7 @@ urUSMPoolRetain(
37533765/// - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
37543766/// - ::UR_RESULT_ERROR_INVALID_NULL_HANDLE
37553767/// + `NULL == pPool`
3768+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
37563769UR_APIEXPORT ur_result_t UR_APICALL
37573770urUSMPoolRelease(
37583771 ur_usm_pool_handle_t pPool ///< [in][release] pointer to USM memory pool
@@ -3794,6 +3807,7 @@ typedef enum ur_usm_pool_info_t {
37943807/// + `pPropValue == NULL && pPropSizeRet == NULL`
37953808/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
37963809/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
3810+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
37973811UR_APIEXPORT ur_result_t UR_APICALL
37983812urUSMPoolGetInfo(
37993813 ur_usm_pool_handle_t hPool, ///< [in] handle of the USM memory pool
0 commit comments