We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eef3a4 commit 9d5586aCopy full SHA for 9d5586a
mlir/cmake/modules/FindLevelZeroRuntime.cmake
@@ -74,22 +74,17 @@ function(compare_versions VERSION_STR1 VERSION_STR2 OUTPUT)
74
# If they differ in size pad the shorter list with 0s
75
if(VL1_LEN GREATER VL2_LEN)
76
math(EXPR DIFF "${VL1_LEN} - ${VL2_LEN}" OUTPUT_FORMAT DECIMAL)
77
-
78
foreach(IDX RANGE 1 ${DIFF} 1)
79
list(APPEND VL2 "0")
80
endforeach()
81
elseif(VL2_LEN GREATER VL2_LEN)
82
83
84
85
86
87
88
set(LEN ${VL2_LEN})
89
endif()
90
91
math(EXPR LEN_SUB_ONE "${LEN}-1")
92
93
foreach(IDX RANGE 0 ${LEN_SUB_ONE} 1)
94
list(GET VL1 ${IDX} VAL1)
95
list(GET VL2 ${IDX} VAL2)
0 commit comments