@@ -1636,6 +1636,9 @@ typedef enum ur_device_info_t {
16361636 UR_DEVICE_INFO_GLOBAL_VARIABLE_SUPPORT = 118, ///< [::ur_bool_t] return true if the device supports the
16371637 ///< `EnqueueDeviceGlobalVariableWrite` and
16381638 ///< `EnqueueDeviceGlobalVariableRead` entry points.
1639+ UR_DEVICE_INFO_USM_POOL_SUPPORT = 119, ///< [::ur_bool_t] return true if the device supports USM pooling. Pertains
1640+ ///< to the `USMPool` entry points and usage of the `pool` parameter of the
1641+ ///< USM alloc entry points.
16391642 UR_DEVICE_INFO_COMMAND_BUFFER_SUPPORT_EXP = 0x1000, ///< [::ur_bool_t] Returns true if the device supports the use of
16401643 ///< command-buffers.
16411644 UR_DEVICE_INFO_COMMAND_BUFFER_UPDATE_CAPABILITIES_EXP = 0x1001, ///< [::ur_device_command_buffer_update_capability_flags_t] Command-buffer
@@ -3533,6 +3536,8 @@ typedef struct ur_usm_pool_limits_desc_t {
35333536/// + `size` is greater than ::UR_DEVICE_INFO_MAX_MEM_ALLOC_SIZE.
35343537/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
35353538/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
3539+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
3540+ /// + If any device associated with `hContext` reports `false` for ::UR_DEVICE_INFO_USM_POOL_SUPPORT
35363541UR_APIEXPORT ur_result_t UR_APICALL
35373542urUSMHostAlloc(
35383543 ur_context_handle_t hContext, ///< [in] handle of the context object
@@ -3580,6 +3585,8 @@ urUSMHostAlloc(
35803585/// + `size` is greater than ::UR_DEVICE_INFO_MAX_MEM_ALLOC_SIZE.
35813586/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
35823587/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
3588+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
3589+ /// + If any device associated with `hContext` reports `false` for ::UR_DEVICE_INFO_USM_POOL_SUPPORT
35833590UR_APIEXPORT ur_result_t UR_APICALL
35843591urUSMDeviceAlloc(
35853592 ur_context_handle_t hContext, ///< [in] handle of the context object
@@ -3629,6 +3636,8 @@ urUSMDeviceAlloc(
36293636/// + If `UR_DEVICE_INFO_USM_SINGLE_SHARED_SUPPORT` and `UR_DEVICE_INFO_USM_CROSS_SHARED_SUPPORT` are both false.
36303637/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
36313638/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
3639+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
3640+ /// + If any device associated with `hContext` reports `false` for ::UR_DEVICE_INFO_USM_POOL_SUPPORT
36323641UR_APIEXPORT ur_result_t UR_APICALL
36333642urUSMSharedAlloc(
36343643 ur_context_handle_t hContext, ///< [in] handle of the context object
@@ -3710,6 +3719,8 @@ urUSMGetMemAllocInfo(
37103719/// + `::UR_USM_POOL_FLAGS_MASK & pPoolDesc->flags`
37113720/// - ::UR_RESULT_ERROR_INVALID_VALUE
37123721/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
3722+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
3723+ /// + If any device associated with `hContext` reports `false` for ::UR_DEVICE_INFO_USM_POOL_SUPPORT
37133724UR_APIEXPORT ur_result_t UR_APICALL
37143725urUSMPoolCreate(
37153726 ur_context_handle_t hContext, ///< [in] handle of the context object
@@ -3728,6 +3739,7 @@ urUSMPoolCreate(
37283739/// - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
37293740/// - ::UR_RESULT_ERROR_INVALID_NULL_HANDLE
37303741/// + `NULL == pPool`
3742+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
37313743UR_APIEXPORT ur_result_t UR_APICALL
37323744urUSMPoolRetain(
37333745 ur_usm_pool_handle_t pPool ///< [in][retain] pointer to USM memory pool
@@ -3750,6 +3762,7 @@ urUSMPoolRetain(
37503762/// - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
37513763/// - ::UR_RESULT_ERROR_INVALID_NULL_HANDLE
37523764/// + `NULL == pPool`
3765+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
37533766UR_APIEXPORT ur_result_t UR_APICALL
37543767urUSMPoolRelease(
37553768 ur_usm_pool_handle_t pPool ///< [in][release] pointer to USM memory pool
@@ -3791,6 +3804,7 @@ typedef enum ur_usm_pool_info_t {
37913804/// + `pPropValue == NULL && pPropSizeRet == NULL`
37923805/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
37933806/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
3807+ /// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
37943808UR_APIEXPORT ur_result_t UR_APICALL
37953809urUSMPoolGetInfo(
37963810 ur_usm_pool_handle_t hPool, ///< [in] handle of the USM memory pool
0 commit comments