Skip to content

Commit 89d5832

Browse files
committed
[ur] unify usm_advice naming
1 parent 7dd41b0 commit 89d5832

File tree

17 files changed

+163
-164
lines changed

17 files changed

+163
-164
lines changed

include/ur.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -984,20 +984,20 @@ def __str__(self):
984984

985985
###############################################################################
986986
## @brief USM memory advice
987-
class ur_mem_advice_v(IntEnum):
987+
class ur_usm_advice_v(IntEnum):
988988
DEFAULT = 0 ## The USM memory advice is default
989989
SET_READ_MOSTLY = 1 ## Hint that memory will be read from frequently and written to rarely
990-
CLEAR_READ_MOSTLY = 2 ## Removes the affect of ::::UR_MEM_ADVICE_SET_READ_MOSTLY
990+
CLEAR_READ_MOSTLY = 2 ## Removes the affect of ::::UR_USM_ADVICE_SET_READ_MOSTLY
991991
SET_PREFERRED_LOCATION = 3 ## Hint that the preferred memory location is the specified device
992-
CLEAR_PREFERRED_LOCATION = 4 ## Removes the affect of ::::UR_MEM_ADVICE_SET_PREFERRED_LOCATION
992+
CLEAR_PREFERRED_LOCATION = 4 ## Removes the affect of ::::UR_USM_ADVICE_SET_PREFERRED_LOCATION
993993
SET_NON_ATOMIC_MOSTLY = 5 ## Hints that memory will mostly be accessed non-atomically
994-
CLEAR_NON_ATOMIC_MOSTLY = 6 ## Removes the affect of ::::UR_MEM_ADVICE_SET_NON_ATOMIC_MOSTLY
994+
CLEAR_NON_ATOMIC_MOSTLY = 6 ## Removes the affect of ::::UR_USM_ADVICE_SET_NON_ATOMIC_MOSTLY
995995
BIAS_CACHED = 7 ## Hints that memory should be cached
996996
BIAS_UNCACHED = 8 ## Hints that memory should be not be cached
997997

998-
class ur_mem_advice_t(c_int):
998+
class ur_usm_advice_t(c_int):
999999
def __str__(self):
1000-
return str(ur_mem_advice_v(self.value))
1000+
return str(ur_usm_advice_v(self.value))
10011001

10021002

10031003
###############################################################################
@@ -1012,7 +1012,7 @@ class ur_usm_desc_t(Structure):
10121012
("stype", ur_structure_type_t), ## [in] type of this structure, must be ::UR_STRUCTURE_TYPE_USM_DESC
10131013
("pNext", c_void_p), ## [in][optional] pointer to extension-specific structure
10141014
("flags", ur_usm_flags_t), ## [in] memory allocation flags.
1015-
("hints", ur_mem_advice_t), ## [in] Memory advice hints
1015+
("hints", ur_usm_advice_t), ## [in] Memory advice hints
10161016
("align", c_ulong) ## [in] memory advice hints.
10171017
]
10181018

@@ -1314,7 +1314,7 @@ class ur_command_v(IntEnum):
13141314
USM_FILL = 17 ## Event created by ::urEnqueueUSMFill
13151315
USM_MEMCPY = 18 ## Event created by ::urEnqueueUSMMemcpy
13161316
USM_PREFETCH = 19 ## Event created by ::urEnqueueUSMPrefetch
1317-
USM_MEM_ADVISE = 20 ## Event created by ::urEnqueueUSMMemAdvise
1317+
USM_ADVISE = 20 ## Event created by ::urEnqueueUSMAdvise
13181318
USM_FILL_2D = 21 ## Event created by ::urEnqueueUSMFill2D
13191319
USM_MEMCPY_2D = 22 ## Event created by ::urEnqueueUSMMemcpy2D
13201320
DEVICE_GLOBAL_VARIABLE_WRITE = 23 ## Event created by ::urEnqueueDeviceGlobalVariableWrite
@@ -1431,7 +1431,7 @@ class ur_function_v(IntEnum):
14311431
ENQUEUE_USM_FILL = 32 ## Enumerator for ::urEnqueueUSMFill
14321432
ENQUEUE_USM_MEMCPY = 33 ## Enumerator for ::urEnqueueUSMMemcpy
14331433
ENQUEUE_USM_PREFETCH = 34 ## Enumerator for ::urEnqueueUSMPrefetch
1434-
ENQUEUE_USM_MEM_ADVISE = 35 ## Enumerator for ::urEnqueueUSMMemAdvise
1434+
ENQUEUE_USM_ADVISE = 35 ## Enumerator for ::urEnqueueUSMAdvise
14351435
ENQUEUE_USM_FILL2_D = 36 ## Enumerator for ::urEnqueueUSMFill2D
14361436
ENQUEUE_USM_MEMCPY2_D = 37 ## Enumerator for ::urEnqueueUSMMemcpy2D
14371437
ENQUEUE_DEVICE_GLOBAL_VARIABLE_WRITE = 38 ## Enumerator for ::urEnqueueDeviceGlobalVariableWrite
@@ -2220,11 +2220,11 @@ class ur_mem_dditable_t(Structure):
22202220
_urEnqueueUSMPrefetch_t = CFUNCTYPE( ur_result_t, ur_queue_handle_t, c_void_p, c_size_t, ur_usm_migration_flags_t, c_ulong, POINTER(ur_event_handle_t), POINTER(ur_event_handle_t) )
22212221

22222222
###############################################################################
2223-
## @brief Function-pointer for urEnqueueUSMMemAdvise
2223+
## @brief Function-pointer for urEnqueueUSMAdvise
22242224
if __use_win_types:
2225-
_urEnqueueUSMMemAdvise_t = WINFUNCTYPE( ur_result_t, ur_queue_handle_t, c_void_p, c_size_t, ur_mem_advice_t, POINTER(ur_event_handle_t) )
2225+
_urEnqueueUSMAdvise_t = WINFUNCTYPE( ur_result_t, ur_queue_handle_t, c_void_p, c_size_t, ur_usm_advice_t, POINTER(ur_event_handle_t) )
22262226
else:
2227-
_urEnqueueUSMMemAdvise_t = CFUNCTYPE( ur_result_t, ur_queue_handle_t, c_void_p, c_size_t, ur_mem_advice_t, POINTER(ur_event_handle_t) )
2227+
_urEnqueueUSMAdvise_t = CFUNCTYPE( ur_result_t, ur_queue_handle_t, c_void_p, c_size_t, ur_usm_advice_t, POINTER(ur_event_handle_t) )
22282228

22292229
###############################################################################
22302230
## @brief Function-pointer for urEnqueueUSMFill2D
@@ -2277,7 +2277,7 @@ class ur_enqueue_dditable_t(Structure):
22772277
("pfnUSMFill", c_void_p), ## _urEnqueueUSMFill_t
22782278
("pfnUSMMemcpy", c_void_p), ## _urEnqueueUSMMemcpy_t
22792279
("pfnUSMPrefetch", c_void_p), ## _urEnqueueUSMPrefetch_t
2280-
("pfnUSMMemAdvise", c_void_p), ## _urEnqueueUSMMemAdvise_t
2280+
("pfnUSMAdvise", c_void_p), ## _urEnqueueUSMAdvise_t
22812281
("pfnUSMFill2D", c_void_p), ## _urEnqueueUSMFill2D_t
22822282
("pfnUSMMemcpy2D", c_void_p), ## _urEnqueueUSMMemcpy2D_t
22832283
("pfnDeviceGlobalVariableWrite", c_void_p), ## _urEnqueueDeviceGlobalVariableWrite_t
@@ -2713,7 +2713,7 @@ def __init__(self, version : ur_api_version_t):
27132713
self.urEnqueueUSMFill = _urEnqueueUSMFill_t(self.__dditable.Enqueue.pfnUSMFill)
27142714
self.urEnqueueUSMMemcpy = _urEnqueueUSMMemcpy_t(self.__dditable.Enqueue.pfnUSMMemcpy)
27152715
self.urEnqueueUSMPrefetch = _urEnqueueUSMPrefetch_t(self.__dditable.Enqueue.pfnUSMPrefetch)
2716-
self.urEnqueueUSMMemAdvise = _urEnqueueUSMMemAdvise_t(self.__dditable.Enqueue.pfnUSMMemAdvise)
2716+
self.urEnqueueUSMAdvise = _urEnqueueUSMAdvise_t(self.__dditable.Enqueue.pfnUSMAdvise)
27172717
self.urEnqueueUSMFill2D = _urEnqueueUSMFill2D_t(self.__dditable.Enqueue.pfnUSMFill2D)
27182718
self.urEnqueueUSMMemcpy2D = _urEnqueueUSMMemcpy2D_t(self.__dditable.Enqueue.pfnUSMMemcpy2D)
27192719
self.urEnqueueDeviceGlobalVariableWrite = _urEnqueueDeviceGlobalVariableWrite_t(self.__dditable.Enqueue.pfnDeviceGlobalVariableWrite)

include/ur_api.h

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2192,21 +2192,21 @@ typedef enum ur_usm_alloc_info_t {
21922192

21932193
///////////////////////////////////////////////////////////////////////////////
21942194
/// @brief USM memory advice
2195-
typedef enum ur_mem_advice_t {
2196-
UR_MEM_ADVICE_DEFAULT = 0, ///< The USM memory advice is default
2197-
UR_MEM_ADVICE_SET_READ_MOSTLY = 1, ///< Hint that memory will be read from frequently and written to rarely
2198-
UR_MEM_ADVICE_CLEAR_READ_MOSTLY = 2, ///< Removes the affect of ::::UR_MEM_ADVICE_SET_READ_MOSTLY
2199-
UR_MEM_ADVICE_SET_PREFERRED_LOCATION = 3, ///< Hint that the preferred memory location is the specified device
2200-
UR_MEM_ADVICE_CLEAR_PREFERRED_LOCATION = 4, ///< Removes the affect of ::::UR_MEM_ADVICE_SET_PREFERRED_LOCATION
2201-
UR_MEM_ADVICE_SET_NON_ATOMIC_MOSTLY = 5, ///< Hints that memory will mostly be accessed non-atomically
2202-
UR_MEM_ADVICE_CLEAR_NON_ATOMIC_MOSTLY = 6, ///< Removes the affect of ::::UR_MEM_ADVICE_SET_NON_ATOMIC_MOSTLY
2203-
UR_MEM_ADVICE_BIAS_CACHED = 7, ///< Hints that memory should be cached
2204-
UR_MEM_ADVICE_BIAS_UNCACHED = 8, ///< Hints that memory should be not be cached
2195+
typedef enum ur_usm_advice_t {
2196+
UR_USM_ADVICE_DEFAULT = 0, ///< The USM memory advice is default
2197+
UR_USM_ADVICE_SET_READ_MOSTLY = 1, ///< Hint that memory will be read from frequently and written to rarely
2198+
UR_USM_ADVICE_CLEAR_READ_MOSTLY = 2, ///< Removes the affect of ::::UR_USM_ADVICE_SET_READ_MOSTLY
2199+
UR_USM_ADVICE_SET_PREFERRED_LOCATION = 3, ///< Hint that the preferred memory location is the specified device
2200+
UR_USM_ADVICE_CLEAR_PREFERRED_LOCATION = 4, ///< Removes the affect of ::::UR_USM_ADVICE_SET_PREFERRED_LOCATION
2201+
UR_USM_ADVICE_SET_NON_ATOMIC_MOSTLY = 5, ///< Hints that memory will mostly be accessed non-atomically
2202+
UR_USM_ADVICE_CLEAR_NON_ATOMIC_MOSTLY = 6, ///< Removes the affect of ::::UR_USM_ADVICE_SET_NON_ATOMIC_MOSTLY
2203+
UR_USM_ADVICE_BIAS_CACHED = 7, ///< Hints that memory should be cached
2204+
UR_USM_ADVICE_BIAS_UNCACHED = 8, ///< Hints that memory should be not be cached
22052205
/// @cond
2206-
UR_MEM_ADVICE_FORCE_UINT32 = 0x7fffffff
2206+
UR_USM_ADVICE_FORCE_UINT32 = 0x7fffffff
22072207
/// @endcond
22082208

2209-
} ur_mem_advice_t;
2209+
} ur_usm_advice_t;
22102210

22112211
///////////////////////////////////////////////////////////////////////////////
22122212
/// @brief Handle of USM pool
@@ -2218,7 +2218,7 @@ typedef struct ur_usm_desc_t {
22182218
ur_structure_type_t stype; ///< [in] type of this structure, must be ::UR_STRUCTURE_TYPE_USM_DESC
22192219
const void *pNext; ///< [in][optional] pointer to extension-specific structure
22202220
ur_usm_flags_t flags; ///< [in] memory allocation flags.
2221-
ur_mem_advice_t hints; ///< [in] Memory advice hints
2221+
ur_usm_advice_t hints; ///< [in] Memory advice hints
22222222
uint32_t align; ///< [in] memory advice hints.
22232223

22242224
} ur_usm_desc_t;
@@ -3783,7 +3783,7 @@ typedef enum ur_command_t {
37833783
UR_COMMAND_USM_FILL = 17, ///< Event created by ::urEnqueueUSMFill
37843784
UR_COMMAND_USM_MEMCPY = 18, ///< Event created by ::urEnqueueUSMMemcpy
37853785
UR_COMMAND_USM_PREFETCH = 19, ///< Event created by ::urEnqueueUSMPrefetch
3786-
UR_COMMAND_USM_MEM_ADVISE = 20, ///< Event created by ::urEnqueueUSMMemAdvise
3786+
UR_COMMAND_USM_ADVISE = 20, ///< Event created by ::urEnqueueUSMAdvise
37873787
UR_COMMAND_USM_FILL_2D = 21, ///< Event created by ::urEnqueueUSMFill2D
37883788
UR_COMMAND_USM_MEMCPY_2D = 22, ///< Event created by ::urEnqueueUSMMemcpy2D
37893789
UR_COMMAND_DEVICE_GLOBAL_VARIABLE_WRITE = 23, ///< Event created by ::urEnqueueDeviceGlobalVariableWrite
@@ -4115,7 +4115,7 @@ typedef enum ur_function_t {
41154115
UR_FUNCTION_ENQUEUE_USM_FILL = 32, ///< Enumerator for ::urEnqueueUSMFill
41164116
UR_FUNCTION_ENQUEUE_USM_MEMCPY = 33, ///< Enumerator for ::urEnqueueUSMMemcpy
41174117
UR_FUNCTION_ENQUEUE_USM_PREFETCH = 34, ///< Enumerator for ::urEnqueueUSMPrefetch
4118-
UR_FUNCTION_ENQUEUE_USM_MEM_ADVISE = 35, ///< Enumerator for ::urEnqueueUSMMemAdvise
4118+
UR_FUNCTION_ENQUEUE_USM_ADVISE = 35, ///< Enumerator for ::urEnqueueUSMAdvise
41194119
UR_FUNCTION_ENQUEUE_USM_FILL2_D = 36, ///< Enumerator for ::urEnqueueUSMFill2D
41204120
UR_FUNCTION_ENQUEUE_USM_MEMCPY2_D = 37, ///< Enumerator for ::urEnqueueUSMMemcpy2D
41214121
UR_FUNCTION_ENQUEUE_DEVICE_GLOBAL_VARIABLE_WRITE = 38, ///< Enumerator for ::urEnqueueDeviceGlobalVariableWrite
@@ -5117,7 +5117,7 @@ urEnqueueUSMPrefetch(
51175117
/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
51185118
/// + `NULL == pMem`
51195119
/// - ::UR_RESULT_ERROR_INVALID_ENUMERATION
5120-
/// + `::UR_MEM_ADVICE_BIAS_UNCACHED < advice`
5120+
/// + `::UR_USM_ADVICE_BIAS_UNCACHED < advice`
51215121
/// - ::UR_RESULT_ERROR_INVALID_QUEUE
51225122
/// - ::UR_RESULT_ERROR_INVALID_EVENT
51235123
/// - ::UR_RESULT_ERROR_INVALID_SIZE
@@ -5127,11 +5127,11 @@ urEnqueueUSMPrefetch(
51275127
/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
51285128
/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
51295129
UR_APIEXPORT ur_result_t UR_APICALL
5130-
urEnqueueUSMMemAdvise(
5130+
urEnqueueUSMAdvise(
51315131
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
51325132
const void *pMem, ///< [in] pointer to the USM memory object
51335133
size_t size, ///< [in] size in bytes to be advised
5134-
ur_mem_advice_t advice, ///< [in] USM memory advice
5134+
ur_usm_advice_t advice, ///< [in] USM memory advice
51355135
ur_event_handle_t *phEvent ///< [out][optional] return an event object that identifies this particular
51365136
///< command instance.
51375137
);
@@ -7314,25 +7314,25 @@ typedef void(UR_APICALL *ur_pfnEnqueueUSMPrefetchCb_t)(
73147314
void **ppTracerInstanceUserData);
73157315

73167316
///////////////////////////////////////////////////////////////////////////////
7317-
/// @brief Callback function parameters for urEnqueueUSMMemAdvise
7317+
/// @brief Callback function parameters for urEnqueueUSMAdvise
73187318
/// @details Each entry is a pointer to the parameter passed to the function;
73197319
/// allowing the callback the ability to modify the parameter's value
7320-
typedef struct ur_enqueue_usm_mem_advise_params_t {
7320+
typedef struct ur_enqueue_usm_advise_params_t {
73217321
ur_queue_handle_t *phQueue;
73227322
const void **ppMem;
73237323
size_t *psize;
7324-
ur_mem_advice_t *padvice;
7324+
ur_usm_advice_t *padvice;
73257325
ur_event_handle_t **pphEvent;
7326-
} ur_enqueue_usm_mem_advise_params_t;
7326+
} ur_enqueue_usm_advise_params_t;
73277327

73287328
///////////////////////////////////////////////////////////////////////////////
7329-
/// @brief Callback function-pointer for urEnqueueUSMMemAdvise
7329+
/// @brief Callback function-pointer for urEnqueueUSMAdvise
73307330
/// @param[in] params Parameters passed to this instance
73317331
/// @param[in] result Return value
73327332
/// @param[in] pTracerUserData Per-Tracer user data
73337333
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data
7334-
typedef void(UR_APICALL *ur_pfnEnqueueUSMMemAdviseCb_t)(
7335-
ur_enqueue_usm_mem_advise_params_t *params,
7334+
typedef void(UR_APICALL *ur_pfnEnqueueUSMAdviseCb_t)(
7335+
ur_enqueue_usm_advise_params_t *params,
73367336
ur_result_t result,
73377337
void *pTracerUserData,
73387338
void **ppTracerInstanceUserData);
@@ -7475,7 +7475,7 @@ typedef struct ur_enqueue_callbacks_t {
74757475
ur_pfnEnqueueUSMFillCb_t pfnUSMFillCb;
74767476
ur_pfnEnqueueUSMMemcpyCb_t pfnUSMMemcpyCb;
74777477
ur_pfnEnqueueUSMPrefetchCb_t pfnUSMPrefetchCb;
7478-
ur_pfnEnqueueUSMMemAdviseCb_t pfnUSMMemAdviseCb;
7478+
ur_pfnEnqueueUSMAdviseCb_t pfnUSMAdviseCb;
74797479
ur_pfnEnqueueUSMFill2DCb_t pfnUSMFill2DCb;
74807480
ur_pfnEnqueueUSMMemcpy2DCb_t pfnUSMMemcpy2DCb;
74817481
ur_pfnEnqueueDeviceGlobalVariableWriteCb_t pfnDeviceGlobalVariableWriteCb;

include/ur_ddi.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -953,12 +953,12 @@ typedef ur_result_t(UR_APICALL *ur_pfnEnqueueUSMPrefetch_t)(
953953
ur_event_handle_t *);
954954

955955
///////////////////////////////////////////////////////////////////////////////
956-
/// @brief Function-pointer for urEnqueueUSMMemAdvise
957-
typedef ur_result_t(UR_APICALL *ur_pfnEnqueueUSMMemAdvise_t)(
956+
/// @brief Function-pointer for urEnqueueUSMAdvise
957+
typedef ur_result_t(UR_APICALL *ur_pfnEnqueueUSMAdvise_t)(
958958
ur_queue_handle_t,
959959
const void *,
960960
size_t,
961-
ur_mem_advice_t,
961+
ur_usm_advice_t,
962962
ur_event_handle_t *);
963963

964964
///////////////////////////////////////////////////////////////////////////////
@@ -1039,7 +1039,7 @@ typedef struct ur_enqueue_dditable_t {
10391039
ur_pfnEnqueueUSMFill_t pfnUSMFill;
10401040
ur_pfnEnqueueUSMMemcpy_t pfnUSMMemcpy;
10411041
ur_pfnEnqueueUSMPrefetch_t pfnUSMPrefetch;
1042-
ur_pfnEnqueueUSMMemAdvise_t pfnUSMMemAdvise;
1042+
ur_pfnEnqueueUSMAdvise_t pfnUSMAdvise;
10431043
ur_pfnEnqueueUSMFill2D_t pfnUSMFill2D;
10441044
ur_pfnEnqueueUSMMemcpy2D_t pfnUSMMemcpy2D;
10451045
ur_pfnEnqueueDeviceGlobalVariableWrite_t pfnDeviceGlobalVariableWrite;

scripts/core/enqueue.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ returns:
11151115
type: function
11161116
desc: "Enqueue a command to set USM memory advice"
11171117
class: $xEnqueue
1118-
name: USMMemAdvise
1118+
name: USMAdvise
11191119
ordinal: "0"
11201120
params:
11211121
- type: $x_queue_handle_t
@@ -1127,7 +1127,7 @@ params:
11271127
- type: size_t
11281128
name: size
11291129
desc: "[in] size in bytes to be advised"
1130-
- type: $x_mem_advice_t
1130+
- type: $x_usm_advice_t
11311131
name: advice
11321132
desc: "[in] USM memory advice"
11331133
- type: $x_event_handle_t*

scripts/core/event.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ etors:
5757
desc: Event created by $xEnqueueUSMMemcpy
5858
- name: USM_PREFETCH
5959
desc: Event created by $xEnqueueUSMPrefetch
60-
- name: USM_MEM_ADVISE
61-
desc: Event created by $xEnqueueUSMMemAdvise
60+
- name: USM_ADVISE
61+
desc: Event created by $xEnqueueUSMAdvise
6262
- name: USM_FILL_2D
6363
desc: Event created by $xEnqueueUSMFill2D
6464
- name: USM_MEMCPY_2D

scripts/core/registry.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ etors:
109109
- name: ENQUEUE_USM_PREFETCH
110110
desc: Enumerator for $xEnqueueUSMPrefetch
111111
value: '34'
112-
- name: ENQUEUE_USM_MEM_ADVISE
113-
desc: Enumerator for $xEnqueueUSMMemAdvise
112+
- name: ENQUEUE_USM_ADVISE
113+
desc: Enumerator for $xEnqueueUSMAdvise
114114
value: '35'
115115
- name: ENQUEUE_USM_FILL2_D
116116
desc: Enumerator for $xEnqueueUSMFill2D

scripts/core/usm.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,22 @@ etors:
8888
type: enum
8989
desc: "USM memory advice"
9090
class: $xUSM
91-
name: $x_mem_advice_t
91+
name: $x_usm_advice_t
9292
etors:
9393
- name: DEFAULT
9494
desc: "The USM memory advice is default"
9595
- name: SET_READ_MOSTLY
9696
desc: "Hint that memory will be read from frequently and written to rarely"
9797
- name: CLEAR_READ_MOSTLY
98-
desc: "Removes the affect of ::$X_MEM_ADVICE_SET_READ_MOSTLY"
98+
desc: "Removes the affect of ::$X_USM_ADVICE_SET_READ_MOSTLY"
9999
- name: SET_PREFERRED_LOCATION
100100
desc: "Hint that the preferred memory location is the specified device"
101101
- name: CLEAR_PREFERRED_LOCATION
102-
desc: "Removes the affect of ::$X_MEM_ADVICE_SET_PREFERRED_LOCATION"
102+
desc: "Removes the affect of ::$X_USM_ADVICE_SET_PREFERRED_LOCATION"
103103
- name: SET_NON_ATOMIC_MOSTLY
104104
desc: "Hints that memory will mostly be accessed non-atomically"
105105
- name: CLEAR_NON_ATOMIC_MOSTLY
106-
desc: "Removes the affect of ::$X_MEM_ADVICE_SET_NON_ATOMIC_MOSTLY"
106+
desc: "Removes the affect of ::$X_USM_ADVICE_SET_NON_ATOMIC_MOSTLY"
107107
- name: BIAS_CACHED
108108
desc: "Hints that memory should be cached"
109109
- name: BIAS_UNCACHED
@@ -123,7 +123,7 @@ members:
123123
- type: $x_usm_flags_t
124124
name: flags
125125
desc: "[in] memory allocation flags."
126-
- type: $x_mem_advice_t
126+
- type: $x_usm_advice_t
127127
name: hints
128128
desc: "[in] Memory advice hints"
129129
- type: uint32_t

0 commit comments

Comments
 (0)