Skip to content

Commit 1659750

Browse files
authored
Add ARMV5 to CMAKE prebuild.cmake for cross-compiles (#3959)
* Add ARMV5
1 parent 7f56c31 commit 1659750

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

cmake/prebuild.cmake

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,23 @@ if (DEFINED CORE AND CMAKE_CROSSCOMPILING AND NOT (${HOST_OS} STREQUAL "WINDOWSS
823823
set(CGEMM3M_UNROLL_N 4)
824824
set(ZGEMM3M_UNROLL_M 4)
825825
set(ZGEMM3M_UNROLL_N 4)
826+
elseif ("${TCORE}" STREQUAL "ARMV5")
827+
file(APPEND ${TARGET_CONF_TEMP}
828+
"#define L1_DATA_SIZE\t65536\n"
829+
"#define L1_DATA_LINESIZE\t32\n"
830+
"#define L2_SIZE\t512488\n"
831+
"#define L2_LINESIZE\t32\n"
832+
"#define DTB_DEFAULT_ENTRIES\t64\n"
833+
"#define DTB_SIZE\t4096\n"
834+
"#define L2_ASSOCIATIVE\t4\n")
835+
set(SGEMM_UNROLL_M 2)
836+
set(SGEMM_UNROLL_N 2)
837+
set(DGEMM_UNROLL_M 2)
838+
set(DGEMM_UNROLL_N 2)
839+
set(CGEMM_UNROLL_M 2)
840+
set(CGEMM_UNROLL_N 2)
841+
set(ZGEMM_UNROLL_M 2)
842+
set(ZGEMM_UNROLL_N 2)
826843
elseif ("${TCORE}" STREQUAL "ARMV6")
827844
file(APPEND ${TARGET_CONF_TEMP}
828845
"#define L1_DATA_SIZE\t65536\n"

0 commit comments

Comments
 (0)