@@ -340,9 +340,13 @@ urContextRetain(
340340///////////////////////////////////////////////////////////////////////////////
341341/// @brief Supported context info
342342typedef enum ur_context_info_t {
343- UR_CONTEXT_INFO_NUM_DEVICES = 1 , ///< [uint32_t] The number of the devices in the context
344- UR_CONTEXT_INFO_DEVICES = 2 , ///< [::ur_context_handle_t...] The array of the device handles in the
343+ UR_CONTEXT_INFO_NUM_DEVICES = 0 , ///< [uint32_t] The number of the devices in the context
344+ UR_CONTEXT_INFO_DEVICES = 1 , ///< [::ur_context_handle_t...] The array of the device handles in the
345345 ///< context
346+ UR_CONTEXT_INFO_REFERENCE_COUNT = 2 , ///< [uint32_t] Reference count of the context object.
347+ ///< The reference count returned should be considered immediately stale.
348+ ///< It is unsuitable for general use in applications. This feature is
349+ ///< provided for identifying memory leaks.
346350 UR_CONTEXT_INFO_USM_MEMCPY2D_SUPPORT = 3 , ///< [bool] to indicate if the ::urEnqueueUSMMemcpy2D entrypoint is
347351 ///< supported.
348352 UR_CONTEXT_INFO_USM_FILL2D_SUPPORT = 4 , ///< [bool] to indicate if the ::urEnqueueUSMFill2D entrypoint is
@@ -1660,7 +1664,10 @@ typedef enum ur_event_info_t {
16601664 UR_EVENT_INFO_CONTEXT = 1 , ///< [::ur_context_handle_t] Context information of an event object
16611665 UR_EVENT_INFO_COMMAND_TYPE = 2 , ///< [::ur_command_t] Command type information of an event object
16621666 UR_EVENT_INFO_COMMAND_EXECUTION_STATUS = 3 , ///< [::ur_event_status_t] Command execution status of an event object
1663- UR_EVENT_INFO_REFERENCE_COUNT = 4 , ///< [uint32_t] Reference count of an event object
1667+ UR_EVENT_INFO_REFERENCE_COUNT = 4 , ///< [uint32_t] Reference count of the event object.
1668+ ///< The reference count returned should be considered immediately stale.
1669+ ///< It is unsuitable for general use in applications. This feature is
1670+ ///< provided for identifying memory leaks.
16641671 /// @cond
16651672 UR_EVENT_INFO_FORCE_UINT32 = 0x7fffffff
16661673 /// @endcond
@@ -2374,7 +2381,10 @@ typedef enum ur_queue_info_t {
23742381 ///< device.
23752382 UR_QUEUE_INFO_PROPERTIES = 3 , ///< ::ur_queue_flags_t: the properties associated with
23762383 ///< ::UR_QUEUE_PROPERTIES_FLAGS.
2377- UR_QUEUE_INFO_REFERENCE_COUNT = 4 , ///< Queue reference count
2384+ UR_QUEUE_INFO_REFERENCE_COUNT = 4 , ///< [uint32_t] Reference count of the queue object.
2385+ ///< The reference count returned should be considered immediately stale.
2386+ ///< It is unsuitable for general use in applications. This feature is
2387+ ///< provided for identifying memory leaks.
23782388 UR_QUEUE_INFO_SIZE = 5 , ///< uint32_t: The size of the queue
23792389 /// @cond
23802390 UR_QUEUE_INFO_FORCE_UINT32 = 0x7fffffff
@@ -2647,7 +2657,10 @@ urQueueFlush(
26472657///////////////////////////////////////////////////////////////////////////////
26482658/// @brief Get sample object information
26492659typedef enum ur_sampler_info_t {
2650- UR_SAMPLER_INFO_REFERENCE_COUNT = 0 , ///< Sampler reference count info
2660+ UR_SAMPLER_INFO_REFERENCE_COUNT = 0 , ///< [uint32_t] Reference count of the sampler object.
2661+ ///< The reference count returned should be considered immediately stale.
2662+ ///< It is unsuitable for general use in applications. This feature is
2663+ ///< provided for identifying memory leaks.
26512664 UR_SAMPLER_INFO_CONTEXT = 1 , ///< Sampler context info
26522665 UR_SAMPLER_INFO_NORMALIZED_COORDS = 2 , ///< Sampler normalized coordindate setting
26532666 UR_SAMPLER_INFO_ADDRESSING_MODE = 3 , ///< Sampler addressing mode setting
@@ -3164,7 +3177,10 @@ typedef enum ur_device_info_t {
31643177 UR_DEVICE_INFO_QUEUE_ON_HOST_PROPERTIES = 61 , ///< ::ur_queue_flags_t: host queue property bit-field
31653178 UR_DEVICE_INFO_BUILT_IN_KERNELS = 62 , ///< char[]: a semi-colon separated list of built-in kernels
31663179 UR_DEVICE_INFO_PLATFORM = 63 , ///< ::ur_platform_handle_t: the platform associated with the device
3167- UR_DEVICE_INFO_REFERENCE_COUNT = 64 , ///< uint32_t: reference count
3180+ UR_DEVICE_INFO_REFERENCE_COUNT = 64 , ///< [uint32_t] Reference count of the device object.
3181+ ///< The reference count returned should be considered immediately stale.
3182+ ///< It is unsuitable for general use in applications. This feature is
3183+ ///< provided for identifying memory leaks.
31683184 UR_DEVICE_INFO_IL_VERSION = 65 , ///< char[]: IL version
31693185 UR_DEVICE_INFO_NAME = 66 , ///< char[]: Device name
31703186 UR_DEVICE_INFO_VENDOR = 67 , ///< char[]: Device vendor
@@ -3647,7 +3663,10 @@ urKernelSetArgLocal(
36473663typedef enum ur_kernel_info_t {
36483664 UR_KERNEL_INFO_FUNCTION_NAME = 0 , ///< Return Kernel function name, return type char[]
36493665 UR_KERNEL_INFO_NUM_ARGS = 1 , ///< Return Kernel number of arguments
3650- UR_KERNEL_INFO_REFERENCE_COUNT = 2 , ///< Return Kernel reference count
3666+ UR_KERNEL_INFO_REFERENCE_COUNT = 2 , ///< [uint32_t] Reference count of the kernel object.
3667+ ///< The reference count returned should be considered immediately stale.
3668+ ///< It is unsuitable for general use in applications. This feature is
3669+ ///< provided for identifying memory leaks.
36513670 UR_KERNEL_INFO_CONTEXT = 3 , ///< Return Context object associated with Kernel
36523671 UR_KERNEL_INFO_PROGRAM = 4 , ///< Return Program object associated with Kernel
36533672 UR_KERNEL_INFO_ATTRIBUTES = 5 , ///< Return Kernel attributes, return type char[]
@@ -4535,7 +4554,10 @@ urProgramGetFunctionPointer(
45354554///////////////////////////////////////////////////////////////////////////////
45364555/// @brief Get Program object information
45374556typedef enum ur_program_info_t {
4538- UR_PROGRAM_INFO_REFERENCE_COUNT = 0 , ///< Program reference count info
4557+ UR_PROGRAM_INFO_REFERENCE_COUNT = 0 , ///< [uint32_t] Reference count of the program object.
4558+ ///< The reference count returned should be considered immediately stale.
4559+ ///< It is unsuitable for general use in applications. This feature is
4560+ ///< provided for identifying memory leaks.
45394561 UR_PROGRAM_INFO_CONTEXT = 1 , ///< Program context info
45404562 UR_PROGRAM_INFO_NUM_DEVICES = 2 , ///< Return number of devices associated with Program
45414563 UR_PROGRAM_INFO_DEVICES = 3 , ///< Return list of devices associated with Program, return type
0 commit comments