Skip to content

Commit 11aeaec

Browse files
fix code-review comments
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
1 parent 4584ea1 commit 11aeaec

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

sycl/include/sycl/detail/pi.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,13 @@
9292
// 12.30 Added PI_EXT_INTEL_DEVICE_INFO_MEM_CHANNEL_SUPPORT device info query.
9393
// 12.31 Added PI_EXT_CODEPLAY_DEVICE_INFO_MAX_REGISTERS_PER_WORK_GROUP device
9494
// info query.
95-
// 12.32 Removed backwards compatibility of piextQueueCreateWithNativeHandle and
95+
// 13.32 Removed backwards compatibility of piextQueueCreateWithNativeHandle and
9696
// piextQueueGetNativeHandle
97+
// 14.33 Added new parameter (memory object properties) to
98+
// piextKernelSetArgMemObj
9799

98-
#define _PI_H_VERSION_MAJOR 13
99-
#define _PI_H_VERSION_MINOR 32
100+
#define _PI_H_VERSION_MAJOR 14
101+
#define _PI_H_VERSION_MINOR 33
100102

101103
#define _PI_STRING_HELPER(a) #a
102104
#define _PI_CONCAT(a, b) _PI_STRING_HELPER(a.b)

sycl/plugins/unified_runtime/ur/adapters/level_zero/ur_level_zero_kernel.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -684,11 +684,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urKernelSetArgMemObj(
684684

685685
ur_mem_handle_t_::access_mode_t UrAccessMode = ur_mem_handle_t_::read_write;
686686
if (Properties) {
687-
assert(Properties->stype ==
688-
UR_STRUCTURE_TYPE_KERNEL_ARG_MEM_OBJ_PROPERTIES);
689687
switch (Properties->memoryAccess) {
690-
case 0:
691-
break;
692688
case UR_MEM_FLAG_READ_WRITE:
693689
UrAccessMode = ur_mem_handle_t_::read_write;
694690
break;

0 commit comments

Comments
 (0)