From a7ac252fd97f57f27e481cdd75158b774c63c6be Mon Sep 17 00:00:00 2001 From: Nursultan Zarlyk Date: Tue, 2 Aug 2022 10:50:58 +0200 Subject: [PATCH] Add TCORE Generic in prebuild.cmake During the cross-compilation on x64 host with MSVC for ARMv8, the build fails as there is no define directives for Generic core. --- cmake/prebuild.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmake/prebuild.cmake b/cmake/prebuild.cmake index 993919d66..a6b568701 100644 --- a/cmake/prebuild.cmake +++ b/cmake/prebuild.cmake @@ -581,6 +581,15 @@ endif () set(ZGEMM_UNROLL_M 8) set(ZGEMM_UNROLL_N 2) set(SYMV_P 8) + elseif ("${TCORE}" STREQUAL "GENERIC") + file(APPEND ${TARGET_CONF_TEMP} + "#define L1_DATA_SIZE 32768\n" + "#define L1_DATA_LINESIZE 128\n" + "#define L2_SIZE 524288\n" + "#define L2_LINESIZE 128 \n" + "#define DTB_DEFAULT_ENTRIES 128\n" + "#define DTB_SIZE 4096\n" + "#define L2_ASSOCIATIVE 8\n") endif() set(SBGEMM_UNROLL_M 8) set(SBGEMM_UNROLL_N 4)