Skip to content

Commit f5902ab

Browse files
authored
Support cross-compiling for Apple Vortex
1 parent 1a0c185 commit f5902ab

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

cmake/prebuild.cmake

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,29 @@ endif ()
416416
set(ZGEMM_UNROLL_M 4)
417417
set(ZGEMM_UNROLL_N 4)
418418
set(SYMV_P 16)
419+
elseif ("${TCORE}" STREQUAL "VORTEX")
420+
file(APPEND ${TARGET_CONF_TEMP}
421+
"#define ARMV8\n"
422+
"#define L1_CODE_SIZE\t32768\n"
423+
"#define L1_CODE_LINESIZE\t64\n"
424+
"#define L1_CODE_ASSOCIATIVE\t4\n"
425+
"#define L1_DATA_SIZE\t32768\n"
426+
"#define L1_DATA_LINESIZE\t64\n"
427+
"#define L1_DATA_ASSOCIATIVE\t4\n"
428+
"#define L2_SIZE\t5262144\n"
429+
"#define L2_LINESIZE\t64\n"
430+
"#define L2_ASSOCIATIVE\t8\n"
431+
"#define DTB_DEFAULT_ENTRIES\t64\n"
432+
"#define DTB_SIZE\t4096\n")
433+
set(SGEMM_UNROLL_M 16)
434+
set(SGEMM_UNROLL_N 4)
435+
set(DGEMM_UNROLL_M 8)
436+
set(DGEMM_UNROLL_N 4)
437+
set(CGEMM_UNROLL_M 8)
438+
set(CGEMM_UNROLL_N 4)
439+
set(ZGEMM_UNROLL_M 4)
440+
set(ZGEMM_UNROLL_N 4)
441+
set(SYMV_P 16)
419442
elseif ("${TCORE}" STREQUAL "POWER6")
420443
file(APPEND ${TARGET_CONF_TEMP}
421444
"#define L1_DATA_SIZE 32768\n"

0 commit comments

Comments
 (0)