File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,18 @@ if (${CORE} STREQUAL NEOVERSEN1)
236
236
endif ()
237
237
endif ()
238
238
239
+ if (${CORE} STREQUAL AMPEREONE )
240
+ if (NOT DYNAMIC_ARCH )
241
+ if (${CMAKE_C_COMPILER_ID} STREQUAL "NVC" )
242
+ set (CCOMMON_OPT "${CCOMMON_OPT} -tp=neoverse-n1" )
243
+ elseif (${GCC_VERSION} VERSION_GREATER 12.1 )
244
+ set (CCOMMON_OPT "${CCOMMON_OPT} -march=armv8.6-a+crypto+crc+fp16+sha3+rng -mtune=ampereone" )
245
+ else ()
246
+ set (CCOMMON_OPT "${CCOMMON_OPT} -march=armv8.6-a+fp16" )
247
+ endif ()
248
+ endif ()
249
+ endif ()
250
+
239
251
if (${CORE} STREQUAL ARMV8SVE )
240
252
if (NOT DYNAMIC_ARCH )
241
253
if (${CMAKE_C_COMPILER_ID} STREQUAL "PGI" AND NOT NO_SVE )
Original file line number Diff line number Diff line change @@ -1195,6 +1195,33 @@ endif ()
1195
1195
set (ZGEMM_UNROLL_M 4 )
1196
1196
set (ZGEMM_UNROLL_N 4 )
1197
1197
set (SYMV_P 16 )
1198
+ elseif ("${TCORE} " STREQUAL "AMPEREONE" )
1199
+ file (APPEND ${TARGET_CONF_TEMP}
1200
+ "#define L1_CODE_SIZE\t 16384\n "
1201
+ "#define L1_CODE_LINESIZE\t 64\n "
1202
+ "#define L1_CODE_ASSOCIATIVE\t 4\n "
1203
+ "#define L1_DATA_SIZE\t 65536\n "
1204
+ "#define L1_DATA_LINESIZE\t 64\n "
1205
+ "#define L1_DATA_ASSOCIATIVE\t 4\n "
1206
+ "#define L2_SIZE\t 2097152\n\n "
1207
+ "#define L2_LINESIZE\t 64\n "
1208
+ "#define L2_ASSOCIATIVE\t 8\n "
1209
+ "#define DTB_DEFAULT_ENTRIES\t 64\n "
1210
+ "#define DTB_SIZE\t 4096\n "
1211
+ "#define HAVE_VFPV4\n "
1212
+ "#define HAVE_VFPV3\n "
1213
+ "#define HAVE_VFP\n "
1214
+ "#define HAVE_NEON\n "
1215
+ "#define ARMV8\n " )
1216
+ set (SGEMM_UNROLL_M 16 )
1217
+ set (SGEMM_UNROLL_N 4 )
1218
+ set (DGEMM_UNROLL_M 8 )
1219
+ set (DGEMM_UNROLL_N 4 )
1220
+ set (CGEMM_UNROLL_M 8 )
1221
+ set (CGEMM_UNROLL_N 4 )
1222
+ set (ZGEMM_UNROLL_M 4 )
1223
+ set (ZGEMM_UNROLL_N 4 )
1224
+ set (SYMV_P 16 )
1198
1225
elseif ("${TCORE} " STREQUAL "VORTEX" )
1199
1226
file (APPEND ${TARGET_CONF_TEMP}
1200
1227
"#define ARMV8\n "
You can’t perform that action at this time.
0 commit comments