Skip to content

Commit 1ed2107

Browse files
Fixes opencl stubs
1 parent ff8f410 commit 1ed2107

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/adapters/opencl/command_buffer.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,24 +311,24 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferAppendUSMPrefetchExp(
311311
(void)pSyncPoint;
312312

313313
// Not implemented
314-
return PI_ERROR_INVALID_OPERATION;
314+
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
315315
}
316316

317-
UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferAppendUSMPrefetchExp(
317+
UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferAppendUSMAdviseExp(
318318
ur_exp_command_buffer_handle_t hCommandBuffer, const void *mem, size_t size,
319-
ur_usm_migration_flags_t flags, uint32_t numSyncPointsInWaitList,
319+
ur_usm_advice_flags_t advice, uint32_t numSyncPointsInWaitList,
320320
const ur_exp_command_buffer_sync_point_t *pSyncPointWaitList,
321321
ur_exp_command_buffer_sync_point_t *pSyncPoint) {
322322
(void)hCommandBuffer;
323323
(void)mem;
324324
(void)size;
325-
(void)flags;
325+
(void)advice;
326326
(void)numSyncPointsInWaitList;
327327
(void)pSyncPointWaitList;
328328
(void)pSyncPoint;
329329

330330
// Not implemented
331-
return PI_ERROR_INVALID_OPERATION;
331+
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
332332
}
333333

334334
UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferEnqueueExp(

0 commit comments

Comments
 (0)