Skip to content

Commit ca4f7dc

Browse files
authored
Add parameters for EMAG8180 DYNAMIC_ARCH support with cmake
1 parent 1ddf9f1 commit ca4f7dc

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

cmake/prebuild.cmake

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,29 @@ if (DEFINED CORE AND CMAKE_CROSSCOMPILING AND NOT (${HOST_OS} STREQUAL "WINDOWSS
332332
set(ZGEMM_UNROLL_M 4)
333333
set(ZGEMM_UNROLL_N 4)
334334
set(SYMV_P 16)
335+
elseif ("${TCORE}" STREQUAL "EMAG8180")
336+
file(APPEND ${TARGET_CONF_TEMP}
337+
"#define ARMV8\n"
338+
"#define L1_CODE_SIZE\t32768\n"
339+
"#define L1_CODE_LINESIZE\t64\n"
340+
"#define L1_CODE_ASSOCIATIVE\t4\n"
341+
"#define L1_DATA_SIZE\t32768\n"
342+
"#define L1_DATA_LINESIZE\t64\n"
343+
"#define L1_DATA_ASSOCIATIVE\t4\n"
344+
"#define L2_SIZE\t5262144\n"
345+
"#define L2_LINESIZE\t64\n"
346+
"#define L2_ASSOCIATIVE\t8\n"
347+
"#define DTB_DEFAULT_ENTRIES\t64\n"
348+
"#define DTB_SIZE\t4096\n")
349+
set(SGEMM_UNROLL_M 16)
350+
set(SGEMM_UNROLL_N 4)
351+
set(DGEMM_UNROLL_M 8)
352+
set(DGEMM_UNROLL_N 4)
353+
set(CGEMM_UNROLL_M 8)
354+
set(CGEMM_UNROLL_N 4)
355+
set(ZGEMM_UNROLL_M 4)
356+
set(ZGEMM_UNROLL_N 4)
357+
set(SYMV_P 16)
335358
elseif ("${TCORE}" STREQUAL "POWER6")
336359
file(APPEND ${TARGET_CONF_TEMP}
337360
"#define L1_DATA_SIZE 32768\n"

0 commit comments

Comments
 (0)