Skip to content

Commit 8539350

Browse files
rename structure
Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova@intel.com>
1 parent 051b0c0 commit 8539350

File tree

12 files changed

+33
-31
lines changed

12 files changed

+33
-31
lines changed

include/ur.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class ur_structure_type_v(IntEnum):
233233
DEVICE_PARTITION_PROPERTIES = 26 ## ::ur_device_partition_properties_t
234234
EXP_COMMAND_BUFFER_DESC = 27 ## ::ur_exp_command_buffer_desc_t
235235
EXP_SAMPLER_MIP_PROPERTIES = 28 ## ::ur_exp_sampler_mip_properties_t
236-
MEM_OBJ_PROPERTIES = 29 ## ::ur_mem_obj_properties_t
236+
MEM_OBJ_PROPERTIES = 29 ## ::ur_kernel_arg_mem_obj_properties_t
237237

238238
class ur_structure_type_t(c_int):
239239
def __str__(self):
@@ -1517,10 +1517,10 @@ def __str__(self):
15171517

15181518
###############################################################################
15191519
## @brief Properties for for ::urKernelSetArgMemObj.
1520-
class ur_mem_obj_properties_t(Structure):
1520+
class ur_kernel_arg_mem_obj_properties_t(Structure):
15211521
_fields_ = [
15221522
("stype", ur_structure_type_t), ## [in] type of this structure, must be
1523-
## ::UR_STRUCTURE_TYPE_MEM_OBJ_PROPERTIES
1523+
## ::UR_STRUCTURE_TYPE_KERNEL_ARG_MEM_OBJ_PROPERTIES
15241524
("pNext", c_void_p), ## [in,out][optional] pointer to extension-specific structure
15251525
("memoryAccess", ur_mem_flags_t) ## [in] Memory access flag. Allowed values are: ::UR_MEM_FLAG_READ_WRITE,
15261526
## ::UR_MEM_FLAG_WRITE_ONLY, ::UR_MEM_FLAG_READ_ONLY.
@@ -2400,9 +2400,9 @@ class ur_program_dditable_t(Structure):
24002400
###############################################################################
24012401
## @brief Function-pointer for urKernelSetArgMemObj
24022402
if __use_win_types:
2403-
_urKernelSetArgMemObj_t = WINFUNCTYPE( ur_result_t, ur_kernel_handle_t, c_ulong, POINTER(ur_mem_obj_properties_t), ur_mem_handle_t )
2403+
_urKernelSetArgMemObj_t = WINFUNCTYPE( ur_result_t, ur_kernel_handle_t, c_ulong, POINTER(ur_kernel_arg_mem_obj_properties_t), ur_mem_handle_t )
24042404
else:
2405-
_urKernelSetArgMemObj_t = CFUNCTYPE( ur_result_t, ur_kernel_handle_t, c_ulong, POINTER(ur_mem_obj_properties_t), ur_mem_handle_t )
2405+
_urKernelSetArgMemObj_t = CFUNCTYPE( ur_result_t, ur_kernel_handle_t, c_ulong, POINTER(ur_kernel_arg_mem_obj_properties_t), ur_mem_handle_t )
24062406

24072407
###############################################################################
24082408
## @brief Function-pointer for urKernelSetSpecializationConstants

include/ur_api.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ typedef enum ur_structure_type_t {
257257
UR_STRUCTURE_TYPE_DEVICE_PARTITION_PROPERTIES = 26, ///< ::ur_device_partition_properties_t
258258
UR_STRUCTURE_TYPE_EXP_COMMAND_BUFFER_DESC = 27, ///< ::ur_exp_command_buffer_desc_t
259259
UR_STRUCTURE_TYPE_EXP_SAMPLER_MIP_PROPERTIES = 28, ///< ::ur_exp_sampler_mip_properties_t
260-
UR_STRUCTURE_TYPE_MEM_OBJ_PROPERTIES = 29, ///< ::ur_mem_obj_properties_t
260+
UR_STRUCTURE_TYPE_MEM_OBJ_PROPERTIES = 29, ///< ::ur_kernel_arg_mem_obj_properties_t
261261
/// @cond
262262
UR_STRUCTURE_TYPE_FORCE_UINT32 = 0x7fffffff
263263
/// @endcond
@@ -3880,14 +3880,14 @@ urKernelSetArgSampler(
38803880

38813881
///////////////////////////////////////////////////////////////////////////////
38823882
/// @brief Properties for for ::urKernelSetArgMemObj.
3883-
typedef struct ur_mem_obj_properties_t {
3883+
typedef struct ur_kernel_arg_mem_obj_properties_t {
38843884
ur_structure_type_t stype; ///< [in] type of this structure, must be
3885-
///< ::UR_STRUCTURE_TYPE_MEM_OBJ_PROPERTIES
3885+
///< ::UR_STRUCTURE_TYPE_KERNEL_ARG_MEM_OBJ_PROPERTIES
38863886
void *pNext; ///< [in,out][optional] pointer to extension-specific structure
38873887
ur_mem_flags_t memoryAccess; ///< [in] Memory access flag. Allowed values are: ::UR_MEM_FLAG_READ_WRITE,
38883888
///< ::UR_MEM_FLAG_WRITE_ONLY, ::UR_MEM_FLAG_READ_ONLY.
38893889

3890-
} ur_mem_obj_properties_t;
3890+
} ur_kernel_arg_mem_obj_properties_t;
38913891

38923892
///////////////////////////////////////////////////////////////////////////////
38933893
/// @brief Set a Memory object as the argument value of a Kernel.
@@ -3906,10 +3906,10 @@ typedef struct ur_mem_obj_properties_t {
39063906
/// - ::UR_RESULT_ERROR_INVALID_KERNEL_ARGUMENT_INDEX
39073907
UR_APIEXPORT ur_result_t UR_APICALL
39083908
urKernelSetArgMemObj(
3909-
ur_kernel_handle_t hKernel, ///< [in] handle of the kernel object
3910-
uint32_t argIndex, ///< [in] argument index in range [0, num args - 1]
3911-
const ur_mem_obj_properties_t *pProperties, ///< [in][optional] pointer to Memory object properties.
3912-
ur_mem_handle_t hArgValue ///< [in][optional] handle of Memory object.
3909+
ur_kernel_handle_t hKernel, ///< [in] handle of the kernel object
3910+
uint32_t argIndex, ///< [in] argument index in range [0, num args - 1]
3911+
const ur_kernel_arg_mem_obj_properties_t *pProperties, ///< [in][optional] pointer to Memory object properties.
3912+
ur_mem_handle_t hArgValue ///< [in][optional] handle of Memory object.
39133913
);
39143914

39153915
///////////////////////////////////////////////////////////////////////////////
@@ -7418,7 +7418,7 @@ typedef struct ur_kernel_set_arg_sampler_params_t {
74187418
typedef struct ur_kernel_set_arg_mem_obj_params_t {
74197419
ur_kernel_handle_t *phKernel;
74207420
uint32_t *pargIndex;
7421-
const ur_mem_obj_properties_t **ppProperties;
7421+
const ur_kernel_arg_mem_obj_properties_t **ppProperties;
74227422
ur_mem_handle_t *phArgValue;
74237423
} ur_kernel_set_arg_mem_obj_params_t;
74247424

include/ur_ddi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ typedef ur_result_t(UR_APICALL *ur_pfnKernelSetArgSampler_t)(
509509
typedef ur_result_t(UR_APICALL *ur_pfnKernelSetArgMemObj_t)(
510510
ur_kernel_handle_t,
511511
uint32_t,
512-
const ur_mem_obj_properties_t *,
512+
const ur_kernel_arg_mem_obj_properties_t *,
513513
ur_mem_handle_t);
514514

515515
///////////////////////////////////////////////////////////////////////////////

scripts/core/common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ etors:
332332
- name: EXP_SAMPLER_MIP_PROPERTIES
333333
desc: $x_exp_sampler_mip_properties_t
334334
- name: MEM_OBJ_PROPERTIES
335-
desc: $x_mem_obj_properties_t
335+
desc: $x_kernel_arg_mem_obj_properties_t
336336
--- #--------------------------------------------------------------------------
337337
type: struct
338338
desc: "Base for all properties types"

scripts/core/kernel.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ returns:
361361
type: struct
362362
desc: "Properties for for $xKernelSetArgMemObj."
363363
class: $xKernel
364-
name: $x_mem_obj_properties_t
364+
name: $x_kernel_arg_mem_obj_properties_t
365365
base: $x_base_properties_t
366366
members:
367367
- type: $x_mem_flags_t
@@ -382,7 +382,7 @@ params:
382382
- type: "uint32_t"
383383
name: argIndex
384384
desc: "[in] argument index in range [0, num args - 1]"
385-
- type: "const $x_mem_obj_properties_t*"
385+
- type: "const $x_kernel_arg_mem_obj_properties_t*"
386386
name: pProperties
387387
desc: "[in][optional] pointer to Memory object properties."
388388
- type: "$x_mem_handle_t"

source/adapters/null/ur_nullddi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,7 @@ __urdlllocal ur_result_t UR_APICALL urKernelSetArgSampler(
19511951
__urdlllocal ur_result_t UR_APICALL urKernelSetArgMemObj(
19521952
ur_kernel_handle_t hKernel, ///< [in] handle of the kernel object
19531953
uint32_t argIndex, ///< [in] argument index in range [0, num args - 1]
1954-
const ur_mem_obj_properties_t
1954+
const ur_kernel_arg_mem_obj_properties_t
19551955
*pProperties, ///< [in][optional] pointer to Memory object properties.
19561956
ur_mem_handle_t hArgValue ///< [in][optional] handle of Memory object.
19571957
) try {

source/common/ur_params.hpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,9 @@ inline std::ostream &operator<<(std::ostream &os,
309309
enum ur_kernel_cache_config_t value);
310310
inline std::ostream &operator<<(std::ostream &os,
311311
enum ur_kernel_exec_info_t value);
312-
inline std::ostream &operator<<(std::ostream &os,
313-
const struct ur_mem_obj_properties_t params);
312+
inline std::ostream &
313+
operator<<(std::ostream &os,
314+
const struct ur_kernel_arg_mem_obj_properties_t params);
314315
inline std::ostream &
315316
operator<<(std::ostream &os, const struct ur_kernel_native_properties_t params);
316317
inline std::ostream &operator<<(std::ostream &os, enum ur_queue_info_t value);
@@ -946,8 +947,8 @@ inline void serializeStruct(std::ostream &os, const void *ptr) {
946947
} break;
947948

948949
case UR_STRUCTURE_TYPE_MEM_OBJ_PROPERTIES: {
949-
const ur_mem_obj_properties_t *pstruct =
950-
(const ur_mem_obj_properties_t *)ptr;
950+
const ur_kernel_arg_mem_obj_properties_t *pstruct =
951+
(const ur_kernel_arg_mem_obj_properties_t *)ptr;
951952
ur_params::serializePtr(os, pstruct);
952953
} break;
953954
default:
@@ -7252,9 +7253,10 @@ inline void serializeTagged(std::ostream &os, const void *ptr,
72527253
}
72537254
}
72547255
} // namespace ur_params
7255-
inline std::ostream &operator<<(std::ostream &os,
7256-
const struct ur_mem_obj_properties_t params) {
7257-
os << "(struct ur_mem_obj_properties_t){";
7256+
inline std::ostream &
7257+
operator<<(std::ostream &os,
7258+
const struct ur_kernel_arg_mem_obj_properties_t params) {
7259+
os << "(struct ur_kernel_arg_mem_obj_properties_t){";
72587260

72597261
os << ".stype = ";
72607262

source/loader/layers/tracing/ur_trcddi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2223,7 +2223,7 @@ __urdlllocal ur_result_t UR_APICALL urKernelSetArgSampler(
22232223
__urdlllocal ur_result_t UR_APICALL urKernelSetArgMemObj(
22242224
ur_kernel_handle_t hKernel, ///< [in] handle of the kernel object
22252225
uint32_t argIndex, ///< [in] argument index in range [0, num args - 1]
2226-
const ur_mem_obj_properties_t
2226+
const ur_kernel_arg_mem_obj_properties_t
22272227
*pProperties, ///< [in][optional] pointer to Memory object properties.
22282228
ur_mem_handle_t hArgValue ///< [in][optional] handle of Memory object.
22292229
) {

source/loader/layers/validation/ur_valddi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2729,7 +2729,7 @@ __urdlllocal ur_result_t UR_APICALL urKernelSetArgSampler(
27292729
__urdlllocal ur_result_t UR_APICALL urKernelSetArgMemObj(
27302730
ur_kernel_handle_t hKernel, ///< [in] handle of the kernel object
27312731
uint32_t argIndex, ///< [in] argument index in range [0, num args - 1]
2732-
const ur_mem_obj_properties_t
2732+
const ur_kernel_arg_mem_obj_properties_t
27332733
*pProperties, ///< [in][optional] pointer to Memory object properties.
27342734
ur_mem_handle_t hArgValue ///< [in][optional] handle of Memory object.
27352735
) {

source/loader/ur_ldrddi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2565,7 +2565,7 @@ __urdlllocal ur_result_t UR_APICALL urKernelSetArgSampler(
25652565
__urdlllocal ur_result_t UR_APICALL urKernelSetArgMemObj(
25662566
ur_kernel_handle_t hKernel, ///< [in] handle of the kernel object
25672567
uint32_t argIndex, ///< [in] argument index in range [0, num args - 1]
2568-
const ur_mem_obj_properties_t
2568+
const ur_kernel_arg_mem_obj_properties_t
25692569
*pProperties, ///< [in][optional] pointer to Memory object properties.
25702570
ur_mem_handle_t hArgValue ///< [in][optional] handle of Memory object.
25712571
) {

0 commit comments

Comments
 (0)