Skip to content

Commit abc0a8b

Browse files
committed
Add [release] tag to parameters where appropriate.
1 parent aaf0810 commit abc0a8b

21 files changed

+252
-116
lines changed

include/ur_api.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ urLoaderConfigRetain(
621621
/// + `NULL == hLoaderConfig`
622622
UR_APIEXPORT ur_result_t UR_APICALL
623623
urLoaderConfigRelease(
624-
ur_loader_config_handle_t hLoaderConfig ///< [in] config handle to release
624+
ur_loader_config_handle_t hLoaderConfig ///< [in][release] config handle to release
625625
);
626626

627627
///////////////////////////////////////////////////////////////////////////////
@@ -844,7 +844,7 @@ urAdapterGet(
844844
/// + `NULL == hAdapter`
845845
UR_APIEXPORT ur_result_t UR_APICALL
846846
urAdapterRelease(
847-
ur_adapter_handle_t hAdapter ///< [in] Adapter handle to release
847+
ur_adapter_handle_t hAdapter ///< [in][release] Adapter handle to release
848848
);
849849

850850
///////////////////////////////////////////////////////////////////////////////
@@ -1760,7 +1760,7 @@ urDeviceRetain(
17601760
/// + `NULL == hDevice`
17611761
UR_APIEXPORT ur_result_t UR_APICALL
17621762
urDeviceRelease(
1763-
ur_device_handle_t hDevice ///< [in] handle of the device to release.
1763+
ur_device_handle_t hDevice ///< [in][release] handle of the device to release.
17641764
);
17651765

17661766
///////////////////////////////////////////////////////////////////////////////
@@ -2267,7 +2267,7 @@ typedef enum ur_context_info_t {
22672267
/// + `NULL == hContext`
22682268
UR_APIEXPORT ur_result_t UR_APICALL
22692269
urContextRelease(
2270-
ur_context_handle_t hContext ///< [in] handle of the context to release.
2270+
ur_context_handle_t hContext ///< [in][release] handle of the context to release.
22712271
);
22722272

22732273
///////////////////////////////////////////////////////////////////////////////
@@ -2753,7 +2753,7 @@ urMemRetain(
27532753
/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
27542754
UR_APIEXPORT ur_result_t UR_APICALL
27552755
urMemRelease(
2756-
ur_mem_handle_t hMem ///< [in] handle of the memory object to release
2756+
ur_mem_handle_t hMem ///< [in][release] handle of the memory object to release
27572757
);
27582758

27592759
///////////////////////////////////////////////////////////////////////////////
@@ -3145,7 +3145,7 @@ urSamplerRetain(
31453145
/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
31463146
UR_APIEXPORT ur_result_t UR_APICALL
31473147
urSamplerRelease(
3148-
ur_sampler_handle_t hSampler ///< [in] handle of the sampler object to release
3148+
ur_sampler_handle_t hSampler ///< [in][release] handle of the sampler object to release
31493149
);
31503150

31513151
///////////////////////////////////////////////////////////////////////////////
@@ -3704,7 +3704,7 @@ urUSMPoolRetain(
37043704
/// + `NULL == pPool`
37053705
UR_APIEXPORT ur_result_t UR_APICALL
37063706
urUSMPoolRelease(
3707-
ur_usm_pool_handle_t pPool ///< [in] pointer to USM memory pool
3707+
ur_usm_pool_handle_t pPool ///< [in][release] pointer to USM memory pool
37083708
);
37093709

37103710
///////////////////////////////////////////////////////////////////////////////
@@ -4053,7 +4053,7 @@ urPhysicalMemRetain(
40534053
/// + `NULL == hPhysicalMem`
40544054
UR_APIEXPORT ur_result_t UR_APICALL
40554055
urPhysicalMemRelease(
4056-
ur_physical_mem_handle_t hPhysicalMem ///< [in] handle of the physical memory object to release.
4056+
ur_physical_mem_handle_t hPhysicalMem ///< [in][release] handle of the physical memory object to release.
40574057
);
40584058

40594059
#if !defined(__GNUC__)
@@ -4346,7 +4346,7 @@ urProgramRetain(
43464346
/// + `NULL == hProgram`
43474347
UR_APIEXPORT ur_result_t UR_APICALL
43484348
urProgramRelease(
4349-
ur_program_handle_t hProgram ///< [in] handle for the Program to release
4349+
ur_program_handle_t hProgram ///< [in][release] handle for the Program to release
43504350
);
43514351

43524352
///////////////////////////////////////////////////////////////////////////////
@@ -4993,7 +4993,7 @@ urKernelRetain(
49934993
/// + `NULL == hKernel`
49944994
UR_APIEXPORT ur_result_t UR_APICALL
49954995
urKernelRelease(
4996-
ur_kernel_handle_t hKernel ///< [in] handle for the Kernel to release
4996+
ur_kernel_handle_t hKernel ///< [in][release] handle for the Kernel to release
49974997
);
49984998

49994999
///////////////////////////////////////////////////////////////////////////////
@@ -5504,7 +5504,7 @@ urQueueRetain(
55045504
/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
55055505
UR_APIEXPORT ur_result_t UR_APICALL
55065506
urQueueRelease(
5507-
ur_queue_handle_t hQueue ///< [in] handle of the queue object to release
5507+
ur_queue_handle_t hQueue ///< [in][release] handle of the queue object to release
55085508
);
55095509

55105510
///////////////////////////////////////////////////////////////////////////////
@@ -5893,7 +5893,7 @@ urEventRetain(
58935893
/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
58945894
UR_APIEXPORT ur_result_t UR_APICALL
58955895
urEventRelease(
5896-
ur_event_handle_t hEvent ///< [in] handle of the event object
5896+
ur_event_handle_t hEvent ///< [in][release] handle of the event object
58975897
);
58985898

58995899
///////////////////////////////////////////////////////////////////////////////
@@ -7929,7 +7929,7 @@ UR_APIEXPORT ur_result_t UR_APICALL
79297929
urBindlessImagesReleaseInteropExp(
79307930
ur_context_handle_t hContext, ///< [in] handle of the context object
79317931
ur_device_handle_t hDevice, ///< [in] handle of the device object
7932-
ur_exp_interop_mem_handle_t hInteropMem ///< [in] handle of interop memory to be freed
7932+
ur_exp_interop_mem_handle_t hInteropMem ///< [in][release] handle of interop memory to be freed
79337933
);
79347934

79357935
///////////////////////////////////////////////////////////////////////////////
@@ -8259,7 +8259,7 @@ urCommandBufferRetainExp(
82598259
/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
82608260
UR_APIEXPORT ur_result_t UR_APICALL
82618261
urCommandBufferReleaseExp(
8262-
ur_exp_command_buffer_handle_t hCommandBuffer ///< [in] Handle of the command-buffer object.
8262+
ur_exp_command_buffer_handle_t hCommandBuffer ///< [in][release] Handle of the command-buffer object.
82638263
);
82648264

82658265
///////////////////////////////////////////////////////////////////////////////
@@ -8807,7 +8807,7 @@ urCommandBufferRetainCommandExp(
88078807
/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
88088808
UR_APIEXPORT ur_result_t UR_APICALL
88098809
urCommandBufferReleaseCommandExp(
8810-
ur_exp_command_buffer_command_handle_t hCommand ///< [in] Handle of the command-buffer command.
8810+
ur_exp_command_buffer_command_handle_t hCommand ///< [in][release] Handle of the command-buffer command.
88118811
);
88128812

88138813
///////////////////////////////////////////////////////////////////////////////

scripts/core/adapter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ params:
5656
- type: "$x_adapter_handle_t"
5757
name: hAdapter
5858
desc: |
59-
[in] Adapter handle to release
59+
[in][release] Adapter handle to release
6060
--- #--------------------------------------------------------------------------
6161
type: function
6262
desc: "Get a reference to the adapter handle."

scripts/core/context.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ params:
129129
- type: "$x_context_handle_t"
130130
name: hContext
131131
desc: |
132-
[in] handle of the context to release.
132+
[in][release] handle of the context to release.
133133
--- #--------------------------------------------------------------------------
134134
type: function
135135
desc: "Retrieves various information about context"

scripts/core/device.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ params:
522522
- type: "$x_device_handle_t"
523523
name: hDevice
524524
desc: |
525-
[in] handle of the device to release.
525+
[in][release] handle of the device to release.
526526
--- #--------------------------------------------------------------------------
527527
type: enum
528528
desc: "Device affinity domain"

scripts/core/event.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ analogue:
246246
params:
247247
- type: $x_event_handle_t
248248
name: hEvent
249-
desc: "[in] handle of the event object"
249+
desc: "[in][release] handle of the event object"
250250
returns:
251251
- $X_RESULT_ERROR_INVALID_EVENT
252252
- $X_RESULT_ERROR_OUT_OF_RESOURCES

scripts/core/exp-bindless-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ params:
727727
desc: "[in] handle of the device object"
728728
- type: $x_exp_interop_mem_handle_t
729729
name: hInteropMem
730-
desc: "[in] handle of interop memory to be freed"
730+
desc: "[in][release] handle of interop memory to be freed"
731731
returns:
732732
- $X_RESULT_ERROR_INVALID_CONTEXT
733733
- $X_RESULT_ERROR_INVALID_VALUE

scripts/core/exp-command-buffer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ name: ReleaseExp
265265
params:
266266
- type: $x_exp_command_buffer_handle_t
267267
name: hCommandBuffer
268-
desc: "[in] Handle of the command-buffer object."
268+
desc: "[in][release] Handle of the command-buffer object."
269269
returns:
270270
- $X_RESULT_ERROR_INVALID_COMMAND_BUFFER_EXP
271271
- $X_RESULT_ERROR_OUT_OF_RESOURCES
@@ -893,7 +893,7 @@ name: ReleaseCommandExp
893893
params:
894894
- type: $x_exp_command_buffer_command_handle_t
895895
name: hCommand
896-
desc: "[in] Handle of the command-buffer command."
896+
desc: "[in][release] Handle of the command-buffer command."
897897
returns:
898898
- $X_RESULT_ERROR_INVALID_COMMAND_BUFFER_COMMAND_HANDLE_EXP
899899
- $X_RESULT_ERROR_OUT_OF_RESOURCES

scripts/core/kernel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ details:
309309
params:
310310
- type: $x_kernel_handle_t
311311
name: hKernel
312-
desc: "[in] handle for the Kernel to release"
312+
desc: "[in][release] handle for the Kernel to release"
313313
--- #--------------------------------------------------------------------------
314314
type: struct
315315
desc: "Properties for for $xKernelSetArgPointer."

scripts/core/loader.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ details:
6767
params:
6868
- type: $x_loader_config_handle_t
6969
name: hLoaderConfig
70-
desc: "[in] config handle to release"
70+
desc: "[in][release] config handle to release"
7171
--- #--------------------------------------------------------------------------
7272
type: enum
7373
desc: "Supported loader info"

scripts/core/memory.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ analogue:
364364
params:
365365
- type: $x_mem_handle_t
366366
name: hMem
367-
desc: "[in] handle of the memory object to release"
367+
desc: "[in][release] handle of the memory object to release"
368368
returns:
369369
- $X_RESULT_ERROR_INVALID_MEM_OBJECT
370370
- $X_RESULT_ERROR_OUT_OF_HOST_MEMORY

0 commit comments

Comments
 (0)