Skip to content

Commit cdca7c1

Browse files
authored
Merge pull request #372 from igchor/usm_rename
[ur] unify usm_advice naming
2 parents a5e5b8f + 89d5832 commit cdca7c1

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
@@ -988,20 +988,20 @@ def __str__(self):
988988

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

1002-
class ur_mem_advice_t(c_int):
1002+
class ur_usm_advice_t(c_int):
10031003
def __str__(self):
1004-
return str(ur_mem_advice_v(self.value))
1004+
return str(ur_usm_advice_v(self.value))
10051005

10061006

10071007
###############################################################################
@@ -1016,7 +1016,7 @@ class ur_usm_desc_t(Structure):
10161016
("stype", ur_structure_type_t), ## [in] type of this structure, must be ::UR_STRUCTURE_TYPE_USM_DESC
10171017
("pNext", c_void_p), ## [in][optional] pointer to extension-specific structure
10181018
("flags", ur_usm_flags_t), ## [in] memory allocation flags.
1019-
("hints", ur_mem_advice_t), ## [in] Memory advice hints
1019+
("hints", ur_usm_advice_t), ## [in] Memory advice hints
10201020
("align", c_ulong) ## [in] memory advice hints.
10211021
]
10221022

@@ -1316,7 +1316,7 @@ class ur_command_v(IntEnum):
13161316
USM_FILL = 17 ## Event created by ::urEnqueueUSMFill
13171317
USM_MEMCPY = 18 ## Event created by ::urEnqueueUSMMemcpy
13181318
USM_PREFETCH = 19 ## Event created by ::urEnqueueUSMPrefetch
1319-
USM_MEM_ADVISE = 20 ## Event created by ::urEnqueueUSMMemAdvise
1319+
USM_ADVISE = 20 ## Event created by ::urEnqueueUSMAdvise
13201320
USM_FILL_2D = 21 ## Event created by ::urEnqueueUSMFill2D
13211321
USM_MEMCPY_2D = 22 ## Event created by ::urEnqueueUSMMemcpy2D
13221322
DEVICE_GLOBAL_VARIABLE_WRITE = 23 ## Event created by ::urEnqueueDeviceGlobalVariableWrite
@@ -1433,7 +1433,7 @@ class ur_function_v(IntEnum):
14331433
ENQUEUE_USM_FILL = 32 ## Enumerator for ::urEnqueueUSMFill
14341434
ENQUEUE_USM_MEMCPY = 33 ## Enumerator for ::urEnqueueUSMMemcpy
14351435
ENQUEUE_USM_PREFETCH = 34 ## Enumerator for ::urEnqueueUSMPrefetch
1436-
ENQUEUE_USM_MEM_ADVISE = 35 ## Enumerator for ::urEnqueueUSMMemAdvise
1436+
ENQUEUE_USM_ADVISE = 35 ## Enumerator for ::urEnqueueUSMAdvise
14371437
ENQUEUE_USM_FILL2_D = 36 ## Enumerator for ::urEnqueueUSMFill2D
14381438
ENQUEUE_USM_MEMCPY2_D = 37 ## Enumerator for ::urEnqueueUSMMemcpy2D
14391439
ENQUEUE_DEVICE_GLOBAL_VARIABLE_WRITE = 38 ## Enumerator for ::urEnqueueDeviceGlobalVariableWrite
@@ -2222,11 +2222,11 @@ class ur_mem_dditable_t(Structure):
22222222
_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) )
22232223

22242224
###############################################################################
2225-
## @brief Function-pointer for urEnqueueUSMMemAdvise
2225+
## @brief Function-pointer for urEnqueueUSMAdvise
22262226
if __use_win_types:
2227-
_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) )
2227+
_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) )
22282228
else:
2229-
_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) )
2229+
_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) )
22302230

22312231
###############################################################################
22322232
## @brief Function-pointer for urEnqueueUSMFill2D
@@ -2279,7 +2279,7 @@ class ur_enqueue_dditable_t(Structure):
22792279
("pfnUSMFill", c_void_p), ## _urEnqueueUSMFill_t
22802280
("pfnUSMMemcpy", c_void_p), ## _urEnqueueUSMMemcpy_t
22812281
("pfnUSMPrefetch", c_void_p), ## _urEnqueueUSMPrefetch_t
2282-
("pfnUSMMemAdvise", c_void_p), ## _urEnqueueUSMMemAdvise_t
2282+
("pfnUSMAdvise", c_void_p), ## _urEnqueueUSMAdvise_t
22832283
("pfnUSMFill2D", c_void_p), ## _urEnqueueUSMFill2D_t
22842284
("pfnUSMMemcpy2D", c_void_p), ## _urEnqueueUSMMemcpy2D_t
22852285
("pfnDeviceGlobalVariableWrite", c_void_p), ## _urEnqueueDeviceGlobalVariableWrite_t
@@ -2715,7 +2715,7 @@ def __init__(self, version : ur_api_version_t):
27152715
self.urEnqueueUSMFill = _urEnqueueUSMFill_t(self.__dditable.Enqueue.pfnUSMFill)
27162716
self.urEnqueueUSMMemcpy = _urEnqueueUSMMemcpy_t(self.__dditable.Enqueue.pfnUSMMemcpy)
27172717
self.urEnqueueUSMPrefetch = _urEnqueueUSMPrefetch_t(self.__dditable.Enqueue.pfnUSMPrefetch)
2718-
self.urEnqueueUSMMemAdvise = _urEnqueueUSMMemAdvise_t(self.__dditable.Enqueue.pfnUSMMemAdvise)
2718+
self.urEnqueueUSMAdvise = _urEnqueueUSMAdvise_t(self.__dditable.Enqueue.pfnUSMAdvise)
27192719
self.urEnqueueUSMFill2D = _urEnqueueUSMFill2D_t(self.__dditable.Enqueue.pfnUSMFill2D)
27202720
self.urEnqueueUSMMemcpy2D = _urEnqueueUSMMemcpy2D_t(self.__dditable.Enqueue.pfnUSMMemcpy2D)
27212721
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
@@ -2199,21 +2199,21 @@ typedef enum ur_usm_alloc_info_t {
21992199

22002200
///////////////////////////////////////////////////////////////////////////////
22012201
/// @brief USM memory advice
2202-
typedef enum ur_mem_advice_t {
2203-
UR_MEM_ADVICE_DEFAULT = 0, ///< The USM memory advice is default
2204-
UR_MEM_ADVICE_SET_READ_MOSTLY = 1, ///< Hint that memory will be read from frequently and written to rarely
2205-
UR_MEM_ADVICE_CLEAR_READ_MOSTLY = 2, ///< Removes the affect of ::::UR_MEM_ADVICE_SET_READ_MOSTLY
2206-
UR_MEM_ADVICE_SET_PREFERRED_LOCATION = 3, ///< Hint that the preferred memory location is the specified device
2207-
UR_MEM_ADVICE_CLEAR_PREFERRED_LOCATION = 4, ///< Removes the affect of ::::UR_MEM_ADVICE_SET_PREFERRED_LOCATION
2208-
UR_MEM_ADVICE_SET_NON_ATOMIC_MOSTLY = 5, ///< Hints that memory will mostly be accessed non-atomically
2209-
UR_MEM_ADVICE_CLEAR_NON_ATOMIC_MOSTLY = 6, ///< Removes the affect of ::::UR_MEM_ADVICE_SET_NON_ATOMIC_MOSTLY
2210-
UR_MEM_ADVICE_BIAS_CACHED = 7, ///< Hints that memory should be cached
2211-
UR_MEM_ADVICE_BIAS_UNCACHED = 8, ///< Hints that memory should be not be cached
2202+
typedef enum ur_usm_advice_t {
2203+
UR_USM_ADVICE_DEFAULT = 0, ///< The USM memory advice is default
2204+
UR_USM_ADVICE_SET_READ_MOSTLY = 1, ///< Hint that memory will be read from frequently and written to rarely
2205+
UR_USM_ADVICE_CLEAR_READ_MOSTLY = 2, ///< Removes the affect of ::::UR_USM_ADVICE_SET_READ_MOSTLY
2206+
UR_USM_ADVICE_SET_PREFERRED_LOCATION = 3, ///< Hint that the preferred memory location is the specified device
2207+
UR_USM_ADVICE_CLEAR_PREFERRED_LOCATION = 4, ///< Removes the affect of ::::UR_USM_ADVICE_SET_PREFERRED_LOCATION
2208+
UR_USM_ADVICE_SET_NON_ATOMIC_MOSTLY = 5, ///< Hints that memory will mostly be accessed non-atomically
2209+
UR_USM_ADVICE_CLEAR_NON_ATOMIC_MOSTLY = 6, ///< Removes the affect of ::::UR_USM_ADVICE_SET_NON_ATOMIC_MOSTLY
2210+
UR_USM_ADVICE_BIAS_CACHED = 7, ///< Hints that memory should be cached
2211+
UR_USM_ADVICE_BIAS_UNCACHED = 8, ///< Hints that memory should be not be cached
22122212
/// @cond
2213-
UR_MEM_ADVICE_FORCE_UINT32 = 0x7fffffff
2213+
UR_USM_ADVICE_FORCE_UINT32 = 0x7fffffff
22142214
/// @endcond
22152215

2216-
} ur_mem_advice_t;
2216+
} ur_usm_advice_t;
22172217

22182218
///////////////////////////////////////////////////////////////////////////////
22192219
/// @brief Handle of USM pool
@@ -2225,7 +2225,7 @@ typedef struct ur_usm_desc_t {
22252225
ur_structure_type_t stype; ///< [in] type of this structure, must be ::UR_STRUCTURE_TYPE_USM_DESC
22262226
const void *pNext; ///< [in][optional] pointer to extension-specific structure
22272227
ur_usm_flags_t flags; ///< [in] memory allocation flags.
2228-
ur_mem_advice_t hints; ///< [in] Memory advice hints
2228+
ur_usm_advice_t hints; ///< [in] Memory advice hints
22292229
uint32_t align; ///< [in] memory advice hints.
22302230

22312231
} ur_usm_desc_t;
@@ -3788,7 +3788,7 @@ typedef enum ur_command_t {
37883788
UR_COMMAND_USM_FILL = 17, ///< Event created by ::urEnqueueUSMFill
37893789
UR_COMMAND_USM_MEMCPY = 18, ///< Event created by ::urEnqueueUSMMemcpy
37903790
UR_COMMAND_USM_PREFETCH = 19, ///< Event created by ::urEnqueueUSMPrefetch
3791-
UR_COMMAND_USM_MEM_ADVISE = 20, ///< Event created by ::urEnqueueUSMMemAdvise
3791+
UR_COMMAND_USM_ADVISE = 20, ///< Event created by ::urEnqueueUSMAdvise
37923792
UR_COMMAND_USM_FILL_2D = 21, ///< Event created by ::urEnqueueUSMFill2D
37933793
UR_COMMAND_USM_MEMCPY_2D = 22, ///< Event created by ::urEnqueueUSMMemcpy2D
37943794
UR_COMMAND_DEVICE_GLOBAL_VARIABLE_WRITE = 23, ///< Event created by ::urEnqueueDeviceGlobalVariableWrite
@@ -4123,7 +4123,7 @@ typedef enum ur_function_t {
41234123
UR_FUNCTION_ENQUEUE_USM_FILL = 32, ///< Enumerator for ::urEnqueueUSMFill
41244124
UR_FUNCTION_ENQUEUE_USM_MEMCPY = 33, ///< Enumerator for ::urEnqueueUSMMemcpy
41254125
UR_FUNCTION_ENQUEUE_USM_PREFETCH = 34, ///< Enumerator for ::urEnqueueUSMPrefetch
4126-
UR_FUNCTION_ENQUEUE_USM_MEM_ADVISE = 35, ///< Enumerator for ::urEnqueueUSMMemAdvise
4126+
UR_FUNCTION_ENQUEUE_USM_ADVISE = 35, ///< Enumerator for ::urEnqueueUSMAdvise
41274127
UR_FUNCTION_ENQUEUE_USM_FILL2_D = 36, ///< Enumerator for ::urEnqueueUSMFill2D
41284128
UR_FUNCTION_ENQUEUE_USM_MEMCPY2_D = 37, ///< Enumerator for ::urEnqueueUSMMemcpy2D
41294129
UR_FUNCTION_ENQUEUE_DEVICE_GLOBAL_VARIABLE_WRITE = 38, ///< Enumerator for ::urEnqueueDeviceGlobalVariableWrite
@@ -5125,7 +5125,7 @@ urEnqueueUSMPrefetch(
51255125
/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
51265126
/// + `NULL == pMem`
51275127
/// - ::UR_RESULT_ERROR_INVALID_ENUMERATION
5128-
/// + `::UR_MEM_ADVICE_BIAS_UNCACHED < advice`
5128+
/// + `::UR_USM_ADVICE_BIAS_UNCACHED < advice`
51295129
/// - ::UR_RESULT_ERROR_INVALID_QUEUE
51305130
/// - ::UR_RESULT_ERROR_INVALID_EVENT
51315131
/// - ::UR_RESULT_ERROR_INVALID_SIZE
@@ -5135,11 +5135,11 @@ urEnqueueUSMPrefetch(
51355135
/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
51365136
/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
51375137
UR_APIEXPORT ur_result_t UR_APICALL
5138-
urEnqueueUSMMemAdvise(
5138+
urEnqueueUSMAdvise(
51395139
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
51405140
const void *pMem, ///< [in] pointer to the USM memory object
51415141
size_t size, ///< [in] size in bytes to be advised
5142-
ur_mem_advice_t advice, ///< [in] USM memory advice
5142+
ur_usm_advice_t advice, ///< [in] USM memory advice
51435143
ur_event_handle_t *phEvent ///< [out][optional] return an event object that identifies this particular
51445144
///< command instance.
51455145
);
@@ -7322,25 +7322,25 @@ typedef void(UR_APICALL *ur_pfnEnqueueUSMPrefetchCb_t)(
73227322
void **ppTracerInstanceUserData);
73237323

73247324
///////////////////////////////////////////////////////////////////////////////
7325-
/// @brief Callback function parameters for urEnqueueUSMMemAdvise
7325+
/// @brief Callback function parameters for urEnqueueUSMAdvise
73267326
/// @details Each entry is a pointer to the parameter passed to the function;
73277327
/// allowing the callback the ability to modify the parameter's value
7328-
typedef struct ur_enqueue_usm_mem_advise_params_t {
7328+
typedef struct ur_enqueue_usm_advise_params_t {
73297329
ur_queue_handle_t *phQueue;
73307330
const void **ppMem;
73317331
size_t *psize;
7332-
ur_mem_advice_t *padvice;
7332+
ur_usm_advice_t *padvice;
73337333
ur_event_handle_t **pphEvent;
7334-
} ur_enqueue_usm_mem_advise_params_t;
7334+
} ur_enqueue_usm_advise_params_t;
73357335

73367336
///////////////////////////////////////////////////////////////////////////////
7337-
/// @brief Callback function-pointer for urEnqueueUSMMemAdvise
7337+
/// @brief Callback function-pointer for urEnqueueUSMAdvise
73387338
/// @param[in] params Parameters passed to this instance
73397339
/// @param[in] result Return value
73407340
/// @param[in] pTracerUserData Per-Tracer user data
73417341
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data
7342-
typedef void(UR_APICALL *ur_pfnEnqueueUSMMemAdviseCb_t)(
7343-
ur_enqueue_usm_mem_advise_params_t *params,
7342+
typedef void(UR_APICALL *ur_pfnEnqueueUSMAdviseCb_t)(
7343+
ur_enqueue_usm_advise_params_t *params,
73447344
ur_result_t result,
73457345
void *pTracerUserData,
73467346
void **ppTracerInstanceUserData);
@@ -7483,7 +7483,7 @@ typedef struct ur_enqueue_callbacks_t {
74837483
ur_pfnEnqueueUSMFillCb_t pfnUSMFillCb;
74847484
ur_pfnEnqueueUSMMemcpyCb_t pfnUSMMemcpyCb;
74857485
ur_pfnEnqueueUSMPrefetchCb_t pfnUSMPrefetchCb;
7486-
ur_pfnEnqueueUSMMemAdviseCb_t pfnUSMMemAdviseCb;
7486+
ur_pfnEnqueueUSMAdviseCb_t pfnUSMAdviseCb;
74877487
ur_pfnEnqueueUSMFill2DCb_t pfnUSMFill2DCb;
74887488
ur_pfnEnqueueUSMMemcpy2DCb_t pfnUSMMemcpy2DCb;
74897489
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)