Skip to content

Commit 7cee71f

Browse files
committed
Fix enum ordering for tensor map
1 parent 990c713 commit 7cee71f

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

include/ur_api.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,7 @@ typedef enum ur_function_t {
215215
UR_FUNCTION_ENQUEUE_NATIVE_COMMAND_EXP = 228, ///< Enumerator for ::urEnqueueNativeCommandExp
216216
UR_FUNCTION_LOADER_CONFIG_SET_MOCKING_ENABLED = 229, ///< Enumerator for ::urLoaderConfigSetMockingEnabled
217217
UR_FUNCTION_BINDLESS_IMAGES_RELEASE_EXTERNAL_MEMORY_EXP = 230, ///< Enumerator for ::urBindlessImagesReleaseExternalMemoryExp
218-
UR_FUNCTION_TENSOR_MAP_ENCODE_IM_2_COL_EXP = 230, ///< Enumerator for ::urTensorMapEncodeIm2ColExp
219218
UR_FUNCTION_COMMAND_BUFFER_APPEND_USM_MEMCPY_EXP = 231, ///< Enumerator for ::urCommandBufferAppendUSMMemcpyExp
220-
UR_FUNCTION_TENSOR_MAP_ENCODE_TILED_EXP = 231, ///< Enumerator for ::urTensorMapEncodeTiledExp
221219
UR_FUNCTION_COMMAND_BUFFER_APPEND_USM_FILL_EXP = 232, ///< Enumerator for ::urCommandBufferAppendUSMFillExp
222220
UR_FUNCTION_COMMAND_BUFFER_APPEND_MEM_BUFFER_COPY_EXP = 233, ///< Enumerator for ::urCommandBufferAppendMemBufferCopyExp
223221
UR_FUNCTION_COMMAND_BUFFER_APPEND_MEM_BUFFER_WRITE_EXP = 234, ///< Enumerator for ::urCommandBufferAppendMemBufferWriteExp
@@ -233,6 +231,8 @@ typedef enum ur_function_t {
233231
UR_FUNCTION_COMMAND_BUFFER_UPDATE_WAIT_EVENTS_EXP = 244, ///< Enumerator for ::urCommandBufferUpdateWaitEventsExp
234232
UR_FUNCTION_BINDLESS_IMAGES_MAP_EXTERNAL_LINEAR_MEMORY_EXP = 245, ///< Enumerator for ::urBindlessImagesMapExternalLinearMemoryExp
235233
UR_FUNCTION_ENQUEUE_EVENTS_WAIT_WITH_BARRIER_EXT = 246, ///< Enumerator for ::urEnqueueEventsWaitWithBarrierExt
234+
UR_FUNCTION_TENSOR_MAP_ENCODE_IM_2_COL_EXP = 247, ///< Enumerator for ::urTensorMapEncodeIm2ColExp
235+
UR_FUNCTION_TENSOR_MAP_ENCODE_TILED_EXP = 248, ///< Enumerator for ::urTensorMapEncodeTiledExp
236236
/// @cond
237237
UR_FUNCTION_FORCE_UINT32 = 0x7fffffff
238238
/// @endcond

include/ur_print.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -940,15 +940,9 @@ inline std::ostream &operator<<(std::ostream &os, enum ur_function_t value) {
940940
case UR_FUNCTION_BINDLESS_IMAGES_RELEASE_EXTERNAL_MEMORY_EXP:
941941
os << "UR_FUNCTION_BINDLESS_IMAGES_RELEASE_EXTERNAL_MEMORY_EXP";
942942
break;
943-
case UR_FUNCTION_TENSOR_MAP_ENCODE_IM_2_COL_EXP:
944-
os << "UR_FUNCTION_TENSOR_MAP_ENCODE_IM_2_COL_EXP";
945-
break;
946943
case UR_FUNCTION_COMMAND_BUFFER_APPEND_USM_MEMCPY_EXP:
947944
os << "UR_FUNCTION_COMMAND_BUFFER_APPEND_USM_MEMCPY_EXP";
948945
break;
949-
case UR_FUNCTION_TENSOR_MAP_ENCODE_TILED_EXP:
950-
os << "UR_FUNCTION_TENSOR_MAP_ENCODE_TILED_EXP";
951-
break;
952946
case UR_FUNCTION_COMMAND_BUFFER_APPEND_USM_FILL_EXP:
953947
os << "UR_FUNCTION_COMMAND_BUFFER_APPEND_USM_FILL_EXP";
954948
break;
@@ -994,6 +988,12 @@ inline std::ostream &operator<<(std::ostream &os, enum ur_function_t value) {
994988
case UR_FUNCTION_ENQUEUE_EVENTS_WAIT_WITH_BARRIER_EXT:
995989
os << "UR_FUNCTION_ENQUEUE_EVENTS_WAIT_WITH_BARRIER_EXT";
996990
break;
991+
case UR_FUNCTION_TENSOR_MAP_ENCODE_IM_2_COL_EXP:
992+
os << "UR_FUNCTION_TENSOR_MAP_ENCODE_IM_2_COL_EXP";
993+
break;
994+
case UR_FUNCTION_TENSOR_MAP_ENCODE_TILED_EXP:
995+
os << "UR_FUNCTION_TENSOR_MAP_ENCODE_TILED_EXP";
996+
break;
997997
default:
998998
os << "unknown enumerator";
999999
break;

scripts/core/registry.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -559,15 +559,9 @@ etors:
559559
- name: BINDLESS_IMAGES_RELEASE_EXTERNAL_MEMORY_EXP
560560
desc: Enumerator for $xBindlessImagesReleaseExternalMemoryExp
561561
value: '230'
562-
- name: TENSOR_MAP_ENCODE_IM_2_COL_EXP
563-
desc: Enumerator for $xTensorMapEncodeIm2ColExp
564-
value: '230'
565562
- name: COMMAND_BUFFER_APPEND_USM_MEMCPY_EXP
566563
desc: Enumerator for $xCommandBufferAppendUSMMemcpyExp
567564
value: '231'
568-
- name: TENSOR_MAP_ENCODE_TILED_EXP
569-
desc: Enumerator for $xTensorMapEncodeTiledExp
570-
value: '231'
571565
- name: COMMAND_BUFFER_APPEND_USM_FILL_EXP
572566
desc: Enumerator for $xCommandBufferAppendUSMFillExp
573567
value: '232'
@@ -613,6 +607,12 @@ etors:
613607
- name: ENQUEUE_EVENTS_WAIT_WITH_BARRIER_EXT
614608
desc: Enumerator for $xEnqueueEventsWaitWithBarrierExt
615609
value: '246'
610+
- name: TENSOR_MAP_ENCODE_IM_2_COL_EXP
611+
desc: Enumerator for $xTensorMapEncodeIm2ColExp
612+
value: '247'
613+
- name: TENSOR_MAP_ENCODE_TILED_EXP
614+
desc: Enumerator for $xTensorMapEncodeTiledExp
615+
value: '248'
616616
---
617617
type: enum
618618
desc: Defines structure types

0 commit comments

Comments
 (0)