Skip to content

Commit 78639a2

Browse files
[SYCL][Graph] Defines dest mem pointer as a const pointer
1 parent b12b606 commit 78639a2

File tree

9 files changed

+32
-32
lines changed

9 files changed

+32
-32
lines changed

include/ur_api.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8194,7 +8194,7 @@ urCommandBufferAppendMemBufferFillExp(
81948194
UR_APIEXPORT ur_result_t UR_APICALL
81958195
urCommandBufferAppendUSMPrefetchExp(
81968196
ur_exp_command_buffer_handle_t hCommandBuffer, ///< [in] handle of the command-buffer object.
8197-
void *pMemory, ///< [in] pointer to USM allocated memory to prefetch.
8197+
const void *pMemory, ///< [in] pointer to USM allocated memory to prefetch.
81988198
size_t size, ///< [in] size in bytes to be fetched.
81998199
ur_usm_migration_flags_t flags, ///< [in] USM prefetch flags
82008200
uint32_t numSyncPointsInWaitList, ///< [in] The number of sync points in the provided dependency list.
@@ -8232,7 +8232,7 @@ urCommandBufferAppendUSMPrefetchExp(
82328232
UR_APIEXPORT ur_result_t UR_APICALL
82338233
urCommandBufferAppendUSMAdviseExp(
82348234
ur_exp_command_buffer_handle_t hCommandBuffer, ///< [in] handle of the command-buffer object.
8235-
void *pMemory, ///< [in] pointer to the USM memory object.
8235+
const void *pMemory, ///< [in] pointer to the USM memory object.
82368236
size_t size, ///< [in] size in bytes to be advised.
82378237
ur_usm_advice_flags_t advice, ///< [in] USM memory advice
82388238
uint32_t numSyncPointsInWaitList, ///< [in] The number of sync points in the provided dependency list.
@@ -10419,7 +10419,7 @@ typedef struct ur_command_buffer_append_mem_buffer_fill_exp_params_t {
1041910419
/// allowing the callback the ability to modify the parameter's value
1042010420
typedef struct ur_command_buffer_append_usm_prefetch_exp_params_t {
1042110421
ur_exp_command_buffer_handle_t *phCommandBuffer;
10422-
void **ppMemory;
10422+
const void **ppMemory;
1042310423
size_t *psize;
1042410424
ur_usm_migration_flags_t *pflags;
1042510425
uint32_t *pnumSyncPointsInWaitList;
@@ -10433,7 +10433,7 @@ typedef struct ur_command_buffer_append_usm_prefetch_exp_params_t {
1043310433
/// allowing the callback the ability to modify the parameter's value
1043410434
typedef struct ur_command_buffer_append_usm_advise_exp_params_t {
1043510435
ur_exp_command_buffer_handle_t *phCommandBuffer;
10436-
void **ppMemory;
10436+
const void **ppMemory;
1043710437
size_t *psize;
1043810438
ur_usm_advice_flags_t *padvice;
1043910439
uint32_t *pnumSyncPointsInWaitList;

include/ur_ddi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,7 @@ typedef ur_result_t(UR_APICALL *ur_pfnCommandBufferAppendMemBufferFillExp_t)(
19271927
/// @brief Function-pointer for urCommandBufferAppendUSMPrefetchExp
19281928
typedef ur_result_t(UR_APICALL *ur_pfnCommandBufferAppendUSMPrefetchExp_t)(
19291929
ur_exp_command_buffer_handle_t,
1930-
void *,
1930+
const void *,
19311931
size_t,
19321932
ur_usm_migration_flags_t,
19331933
uint32_t,
@@ -1938,7 +1938,7 @@ typedef ur_result_t(UR_APICALL *ur_pfnCommandBufferAppendUSMPrefetchExp_t)(
19381938
/// @brief Function-pointer for urCommandBufferAppendUSMAdviseExp
19391939
typedef ur_result_t(UR_APICALL *ur_pfnCommandBufferAppendUSMAdviseExp_t)(
19401940
ur_exp_command_buffer_handle_t,
1941-
void *,
1941+
const void *,
19421942
size_t,
19431943
ur_usm_advice_flags_t,
19441944
uint32_t,

scripts/core/exp-command-buffer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ params:
598598
- type: $x_exp_command_buffer_handle_t
599599
name: hCommandBuffer
600600
desc: "[in] handle of the command-buffer object."
601-
- type: "void*"
601+
- type: "const void*"
602602
name: pMemory
603603
desc: "[in] pointer to USM allocated memory to prefetch."
604604
- type: "size_t"
@@ -640,7 +640,7 @@ params:
640640
- type: $x_exp_command_buffer_handle_t
641641
name: hCommandBuffer
642642
desc: "[in] handle of the command-buffer object."
643-
- type: "void*"
643+
- type: "const void*"
644644
name: pMemory
645645
desc: "[in] pointer to the USM memory object."
646646
- type: "size_t"

source/adapters/null/ur_nullddi.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4897,9 +4897,9 @@ __urdlllocal ur_result_t UR_APICALL urCommandBufferAppendMemBufferFillExp(
48974897
/// @brief Intercept function for urCommandBufferAppendUSMPrefetchExp
48984898
__urdlllocal ur_result_t UR_APICALL urCommandBufferAppendUSMPrefetchExp(
48994899
ur_exp_command_buffer_handle_t
4900-
hCommandBuffer, ///< [in] handle of the command-buffer object.
4901-
void *pMemory, ///< [in] pointer to USM allocated memory to prefetch.
4902-
size_t size, ///< [in] size in bytes to be fetched.
4900+
hCommandBuffer, ///< [in] handle of the command-buffer object.
4901+
const void *pMemory, ///< [in] pointer to USM allocated memory to prefetch.
4902+
size_t size, ///< [in] size in bytes to be fetched.
49034903
ur_usm_migration_flags_t flags, ///< [in] USM prefetch flags
49044904
uint32_t
49054905
numSyncPointsInWaitList, ///< [in] The number of sync points in the provided dependency list.
@@ -4931,7 +4931,7 @@ __urdlllocal ur_result_t UR_APICALL urCommandBufferAppendUSMPrefetchExp(
49314931
__urdlllocal ur_result_t UR_APICALL urCommandBufferAppendUSMAdviseExp(
49324932
ur_exp_command_buffer_handle_t
49334933
hCommandBuffer, ///< [in] handle of the command-buffer object.
4934-
void *pMemory, ///< [in] pointer to the USM memory object.
4934+
const void *pMemory, ///< [in] pointer to the USM memory object.
49354935
size_t size, ///< [in] size in bytes to be advised.
49364936
ur_usm_advice_flags_t advice, ///< [in] USM memory advice
49374937
uint32_t

source/loader/layers/tracing/ur_trcddi.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5660,9 +5660,9 @@ __urdlllocal ur_result_t UR_APICALL urCommandBufferAppendMemBufferFillExp(
56605660
/// @brief Intercept function for urCommandBufferAppendUSMPrefetchExp
56615661
__urdlllocal ur_result_t UR_APICALL urCommandBufferAppendUSMPrefetchExp(
56625662
ur_exp_command_buffer_handle_t
5663-
hCommandBuffer, ///< [in] handle of the command-buffer object.
5664-
void *pMemory, ///< [in] pointer to USM allocated memory to prefetch.
5665-
size_t size, ///< [in] size in bytes to be fetched.
5663+
hCommandBuffer, ///< [in] handle of the command-buffer object.
5664+
const void *pMemory, ///< [in] pointer to USM allocated memory to prefetch.
5665+
size_t size, ///< [in] size in bytes to be fetched.
56665666
ur_usm_migration_flags_t flags, ///< [in] USM prefetch flags
56675667
uint32_t
56685668
numSyncPointsInWaitList, ///< [in] The number of sync points in the provided dependency list.
@@ -5706,7 +5706,7 @@ __urdlllocal ur_result_t UR_APICALL urCommandBufferAppendUSMPrefetchExp(
57065706
__urdlllocal ur_result_t UR_APICALL urCommandBufferAppendUSMAdviseExp(
57075707
ur_exp_command_buffer_handle_t
57085708
hCommandBuffer, ///< [in] handle of the command-buffer object.
5709-
void *pMemory, ///< [in] pointer to the USM memory object.
5709+
const void *pMemory, ///< [in] pointer to the USM memory object.
57105710
size_t size, ///< [in] size in bytes to be advised.
57115711
ur_usm_advice_flags_t advice, ///< [in] USM memory advice
57125712
uint32_t

source/loader/layers/validation/ur_valddi.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7103,9 +7103,9 @@ __urdlllocal ur_result_t UR_APICALL urCommandBufferAppendMemBufferFillExp(
71037103
/// @brief Intercept function for urCommandBufferAppendUSMPrefetchExp
71047104
__urdlllocal ur_result_t UR_APICALL urCommandBufferAppendUSMPrefetchExp(
71057105
ur_exp_command_buffer_handle_t
7106-
hCommandBuffer, ///< [in] handle of the command-buffer object.
7107-
void *pMemory, ///< [in] pointer to USM allocated memory to prefetch.
7108-
size_t size, ///< [in] size in bytes to be fetched.
7106+
hCommandBuffer, ///< [in] handle of the command-buffer object.
7107+
const void *pMemory, ///< [in] pointer to USM allocated memory to prefetch.
7108+
size_t size, ///< [in] size in bytes to be fetched.
71097109
ur_usm_migration_flags_t flags, ///< [in] USM prefetch flags
71107110
uint32_t
71117111
numSyncPointsInWaitList, ///< [in] The number of sync points in the provided dependency list.
@@ -7159,7 +7159,7 @@ __urdlllocal ur_result_t UR_APICALL urCommandBufferAppendUSMPrefetchExp(
71597159
__urdlllocal ur_result_t UR_APICALL urCommandBufferAppendUSMAdviseExp(
71607160
ur_exp_command_buffer_handle_t
71617161
hCommandBuffer, ///< [in] handle of the command-buffer object.
7162-
void *pMemory, ///< [in] pointer to the USM memory object.
7162+
const void *pMemory, ///< [in] pointer to the USM memory object.
71637163
size_t size, ///< [in] size in bytes to be advised.
71647164
ur_usm_advice_flags_t advice, ///< [in] USM memory advice
71657165
uint32_t

source/loader/ur_ldrddi.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6787,9 +6787,9 @@ __urdlllocal ur_result_t UR_APICALL urCommandBufferAppendMemBufferFillExp(
67876787
/// @brief Intercept function for urCommandBufferAppendUSMPrefetchExp
67886788
__urdlllocal ur_result_t UR_APICALL urCommandBufferAppendUSMPrefetchExp(
67896789
ur_exp_command_buffer_handle_t
6790-
hCommandBuffer, ///< [in] handle of the command-buffer object.
6791-
void *pMemory, ///< [in] pointer to USM allocated memory to prefetch.
6792-
size_t size, ///< [in] size in bytes to be fetched.
6790+
hCommandBuffer, ///< [in] handle of the command-buffer object.
6791+
const void *pMemory, ///< [in] pointer to USM allocated memory to prefetch.
6792+
size_t size, ///< [in] size in bytes to be fetched.
67936793
ur_usm_migration_flags_t flags, ///< [in] USM prefetch flags
67946794
uint32_t
67956795
numSyncPointsInWaitList, ///< [in] The number of sync points in the provided dependency list.
@@ -6828,7 +6828,7 @@ __urdlllocal ur_result_t UR_APICALL urCommandBufferAppendUSMPrefetchExp(
68286828
__urdlllocal ur_result_t UR_APICALL urCommandBufferAppendUSMAdviseExp(
68296829
ur_exp_command_buffer_handle_t
68306830
hCommandBuffer, ///< [in] handle of the command-buffer object.
6831-
void *pMemory, ///< [in] pointer to the USM memory object.
6831+
const void *pMemory, ///< [in] pointer to the USM memory object.
68326832
size_t size, ///< [in] size in bytes to be advised.
68336833
ur_usm_advice_flags_t advice, ///< [in] USM memory advice
68346834
uint32_t

source/loader/ur_libapi.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7643,9 +7643,9 @@ ur_result_t UR_APICALL urCommandBufferAppendMemBufferFillExp(
76437643
/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
76447644
ur_result_t UR_APICALL urCommandBufferAppendUSMPrefetchExp(
76457645
ur_exp_command_buffer_handle_t
7646-
hCommandBuffer, ///< [in] handle of the command-buffer object.
7647-
void *pMemory, ///< [in] pointer to USM allocated memory to prefetch.
7648-
size_t size, ///< [in] size in bytes to be fetched.
7646+
hCommandBuffer, ///< [in] handle of the command-buffer object.
7647+
const void *pMemory, ///< [in] pointer to USM allocated memory to prefetch.
7648+
size_t size, ///< [in] size in bytes to be fetched.
76497649
ur_usm_migration_flags_t flags, ///< [in] USM prefetch flags
76507650
uint32_t
76517651
numSyncPointsInWaitList, ///< [in] The number of sync points in the provided dependency list.
@@ -7697,7 +7697,7 @@ ur_result_t UR_APICALL urCommandBufferAppendUSMPrefetchExp(
76977697
ur_result_t UR_APICALL urCommandBufferAppendUSMAdviseExp(
76987698
ur_exp_command_buffer_handle_t
76997699
hCommandBuffer, ///< [in] handle of the command-buffer object.
7700-
void *pMemory, ///< [in] pointer to the USM memory object.
7700+
const void *pMemory, ///< [in] pointer to the USM memory object.
77017701
size_t size, ///< [in] size in bytes to be advised.
77027702
ur_usm_advice_flags_t advice, ///< [in] USM memory advice
77037703
uint32_t

source/ur_api.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6456,9 +6456,9 @@ ur_result_t UR_APICALL urCommandBufferAppendMemBufferFillExp(
64566456
/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
64576457
ur_result_t UR_APICALL urCommandBufferAppendUSMPrefetchExp(
64586458
ur_exp_command_buffer_handle_t
6459-
hCommandBuffer, ///< [in] handle of the command-buffer object.
6460-
void *pMemory, ///< [in] pointer to USM allocated memory to prefetch.
6461-
size_t size, ///< [in] size in bytes to be fetched.
6459+
hCommandBuffer, ///< [in] handle of the command-buffer object.
6460+
const void *pMemory, ///< [in] pointer to USM allocated memory to prefetch.
6461+
size_t size, ///< [in] size in bytes to be fetched.
64626462
ur_usm_migration_flags_t flags, ///< [in] USM prefetch flags
64636463
uint32_t
64646464
numSyncPointsInWaitList, ///< [in] The number of sync points in the provided dependency list.
@@ -6501,7 +6501,7 @@ ur_result_t UR_APICALL urCommandBufferAppendUSMPrefetchExp(
65016501
ur_result_t UR_APICALL urCommandBufferAppendUSMAdviseExp(
65026502
ur_exp_command_buffer_handle_t
65036503
hCommandBuffer, ///< [in] handle of the command-buffer object.
6504-
void *pMemory, ///< [in] pointer to the USM memory object.
6504+
const void *pMemory, ///< [in] pointer to the USM memory object.
65056505
size_t size, ///< [in] size in bytes to be advised.
65066506
ur_usm_advice_flags_t advice, ///< [in] USM memory advice
65076507
uint32_t

0 commit comments

Comments
 (0)