@@ -343,6 +343,9 @@ typedef enum ur_context_info_t {
343343 UR_CONTEXT_INFO_DEVICES = 1 , ///< [::ur_context_handle_t...] The array of the device handles in the
344344 ///< context
345345 UR_CONTEXT_INFO_REFERENCE_COUNT = 2 , ///< [uint32_t] Reference count of the context object.
346+ ///< The reference count returned should be considered immediately stale.
347+ ///< It is unsuitable for general use in applications. This feature is
348+ ///< provided for identifying memory leaks.
346349 UR_CONTEXT_INFO_USM_MEMCPY2D_SUPPORT = 3 , ///< [bool] to indicate if the ::urEnqueueUSMMemcpy2D entrypoint is
347350 ///< supported.
348351 UR_CONTEXT_INFO_USM_FILL2D_SUPPORT = 4 , ///< [bool] to indicate if the ::urEnqueueUSMFill2D entrypoint is
@@ -1617,7 +1620,10 @@ typedef enum ur_event_info_t {
16171620 UR_EVENT_INFO_CONTEXT = 1 , ///< [::ur_context_handle_t] Context information of an event object
16181621 UR_EVENT_INFO_COMMAND_TYPE = 2 , ///< [::ur_command_t] Command type information of an event object
16191622 UR_EVENT_INFO_COMMAND_EXECUTION_STATUS = 3 , ///< [::ur_event_status_t] Command execution status of an event object
1620- UR_EVENT_INFO_REFERENCE_COUNT = 4 , ///< [uint32_t] Reference count of an event object
1623+ UR_EVENT_INFO_REFERENCE_COUNT = 4 , ///< [uint32_t] Reference count of the event object.
1624+ ///< The reference count returned should be considered immediately stale.
1625+ ///< It is unsuitable for general use in applications. This feature is
1626+ ///< provided for identifying memory leaks.
16211627 /// @cond
16221628 UR_EVENT_INFO_FORCE_UINT32 = 0x7fffffff
16231629 /// @endcond
@@ -2325,14 +2331,15 @@ urTearDown(
23252331///////////////////////////////////////////////////////////////////////////////
23262332/// @brief Query queue info
23272333typedef enum ur_queue_info_t {
2328- UR_QUEUE_INFO_CONTEXT = 0 , ///< ::ur_queue_handle_t: context associated with this queue.
2329- UR_QUEUE_INFO_DEVICE = 1 , ///< ::ur_device_handle_t: device associated with this queue.
2330- UR_QUEUE_INFO_DEVICE_DEFAULT = 2 , ///< ::ur_queue_handle_t: the current default queue of the underlying
2331- ///< device.
2332- UR_QUEUE_INFO_PROPERTIES = 3 , ///< ::ur_queue_flags_t: the properties associated with
2333- ///< ::UR_QUEUE_PROPERTIES_FLAGS.
2334- UR_QUEUE_INFO_REFERENCE_COUNT = 4 , ///< Queue reference count
2335- UR_QUEUE_INFO_SIZE = 5 , ///< uint32_t: The size of the queue
2334+ UR_QUEUE_INFO_CONTEXT = 0 , ///< Queue context info
2335+ UR_QUEUE_INFO_DEVICE = 1 , ///< Queue device info
2336+ UR_QUEUE_INFO_DEVICE_DEFAULT = 2 , ///< Queue device default info
2337+ UR_QUEUE_INFO_PROPERTIES = 3 , ///< Queue properties info
2338+ UR_QUEUE_INFO_REFERENCE_COUNT = 4 , ///< [uint32_t] Reference count of the queue object.
2339+ ///< The reference count returned should be considered immediately stale.
2340+ ///< It is unsuitable for general use in applications. This feature is
2341+ ///< provided for identifying memory leaks.
2342+ UR_QUEUE_INFO_SIZE = 5 , ///< Queue size info
23362343 /// @cond
23372344 UR_QUEUE_INFO_FORCE_UINT32 = 0x7fffffff
23382345 /// @endcond
@@ -2604,7 +2611,10 @@ urQueueFlush(
26042611///////////////////////////////////////////////////////////////////////////////
26052612/// @brief Get sample object information
26062613typedef enum ur_sampler_info_t {
2607- UR_SAMPLER_INFO_REFERENCE_COUNT = 0 , ///< Sampler reference count info
2614+ UR_SAMPLER_INFO_REFERENCE_COUNT = 0 , ///< [uint32_t] Reference count of the sampler object.
2615+ ///< The reference count returned should be considered immediately stale.
2616+ ///< It is unsuitable for general use in applications. This feature is
2617+ ///< provided for identifying memory leaks.
26082618 UR_SAMPLER_INFO_CONTEXT = 1 , ///< Sampler context info
26092619 UR_SAMPLER_INFO_NORMALIZED_COORDS = 2 , ///< Sampler normalized coordindate setting
26102620 UR_SAMPLER_INFO_ADDRESSING_MODE = 3 , ///< Sampler addressing mode setting
@@ -3121,7 +3131,10 @@ typedef enum ur_device_info_t {
31213131 UR_DEVICE_INFO_QUEUE_ON_HOST_PROPERTIES = 61 , ///< ::ur_queue_flags_t: host queue property bit-field
31223132 UR_DEVICE_INFO_BUILT_IN_KERNELS = 62 , ///< char[]: a semi-colon separated list of built-in kernels
31233133 UR_DEVICE_INFO_PLATFORM = 63 , ///< ::ur_platform_handle_t: the platform associated with the device
3124- UR_DEVICE_INFO_REFERENCE_COUNT = 64 , ///< uint32_t: reference count
3134+ UR_DEVICE_INFO_REFERENCE_COUNT = 64 , ///< [uint32_t] Reference count of the device object.
3135+ ///< The reference count returned should be considered immediately stale.
3136+ ///< It is unsuitable for general use in applications. This feature is
3137+ ///< provided for identifying memory leaks.
31253138 UR_DEVICE_INFO_IL_VERSION = 65 , ///< char[]: IL version
31263139 UR_DEVICE_INFO_NAME = 66 , ///< char[]: Device name
31273140 UR_DEVICE_INFO_VENDOR = 67 , ///< char[]: Device vendor
@@ -3604,7 +3617,10 @@ urKernelSetArgLocal(
36043617typedef enum ur_kernel_info_t {
36053618 UR_KERNEL_INFO_FUNCTION_NAME = 0 , ///< Return Kernel function name, return type char[]
36063619 UR_KERNEL_INFO_NUM_ARGS = 1 , ///< Return Kernel number of arguments
3607- UR_KERNEL_INFO_REFERENCE_COUNT = 2 , ///< Return Kernel reference count
3620+ UR_KERNEL_INFO_REFERENCE_COUNT = 2 , ///< [uint32_t] Reference count of the kernel object.
3621+ ///< The reference count returned should be considered immediately stale.
3622+ ///< It is unsuitable for general use in applications. This feature is
3623+ ///< provided for identifying memory leaks.
36083624 UR_KERNEL_INFO_CONTEXT = 3 , ///< Return Context object associated with Kernel
36093625 UR_KERNEL_INFO_PROGRAM = 4 , ///< Return Program object associated with Kernel
36103626 UR_KERNEL_INFO_ATTRIBUTES = 5 , ///< Return Kernel attributes, return type char[]
@@ -4492,7 +4508,10 @@ urProgramGetFunctionPointer(
44924508///////////////////////////////////////////////////////////////////////////////
44934509/// @brief Get Program object information
44944510typedef enum ur_program_info_t {
4495- UR_PROGRAM_INFO_REFERENCE_COUNT = 0 , ///< Program reference count info
4511+ UR_PROGRAM_INFO_REFERENCE_COUNT = 0 , ///< [uint32_t] Reference count of the program object.
4512+ ///< The reference count returned should be considered immediately stale.
4513+ ///< It is unsuitable for general use in applications. This feature is
4514+ ///< provided for identifying memory leaks.
44964515 UR_PROGRAM_INFO_CONTEXT = 1 , ///< Program context info
44974516 UR_PROGRAM_INFO_NUM_DEVICES = 2 , ///< Return number of devices associated with Program
44984517 UR_PROGRAM_INFO_DEVICES = 3 , ///< Return list of devices associated with Program, return type
0 commit comments