You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CMake "TARGET_CORE" variables stores the "generic" target name in all lowercase letters, but gets compared to an all uppercase string, which results in the wrong TRMM kernel being selected.
This commit converts the TARGET_CORE to all uppercase before comparing its value to make sure case mismatches are not an issue in the future anymore.
Copy file name to clipboardExpand all lines: kernel/CMakeLists.txt
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -187,10 +187,11 @@ function (build_core TARGET_CORE KDIR TSUFFIX KERNEL_DEFINITIONS)
187
187
endif ()
188
188
# Makefile.L3
189
189
set(USE_TRMMfalse)
190
-
if (ARMORARM64OR (TARGET_COREMATCHESLONGSOON3B) OR (TARGET_COREMATCHESGENERIC) OR (TARGET_COREMATCHESHASWELL) OR (TARGET_COREMATCHESZEN) OR (TARGET_COREMATCHESSKYLAKEX) OR (TARGET_COREMATCHESCOOPERLAKE))
190
+
string(TOUPPER${TARGET_CORE}UC_TARGET_CORE)
191
+
if (ARMORARM64OR (UC_TARGET_COREMATCHESLONGSOON3B) OR (UC_TARGET_COREMATCHESGENERIC) OR (UC_TARGET_COREMATCHESHASWELL) OR (UC_TARGET_COREMATCHESZEN) OR (UC_TARGET_COREMATCHESSKYLAKEX) OR (UC_TARGET_COREMATCHESCOOPERLAKE))
191
192
set(USE_TRMMtrue)
192
193
endif ()
193
-
if (ZARCHOR (TARGET_COREMATCHESPOWER8) OR (TARGET_COREMATCHESPOWER9) OR (TARGET_COREMATCHESPOWER10))
194
+
if (ZARCHOR (UC_TARGET_COREMATCHESPOWER8) OR (UC_TARGET_COREMATCHESPOWER9) OR (UC_TARGET_COREMATCHESPOWER10))
0 commit comments