@@ -326,6 +326,16 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
326
326
#define FORCE
327
327
#define FORCE_INTEL
328
328
#define ARCHITECTURE "X86"
329
+ #ifdef NO_AVX2
330
+ #define SUBARCHITECTURE "SANDYBRIDGE"
331
+ #define ARCHCONFIG "-DSANDYBRIDGE " \
332
+ "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
333
+ "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
334
+ "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
335
+ "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 -DHAVE_AVX"
336
+ #define LIBNAME "sandybridge"
337
+ #define CORENAME "SANDYBRIDGE"
338
+ #else
329
339
#define SUBARCHITECTURE "HASWELL"
330
340
#define ARCHCONFIG "-DHASWELL " \
331
341
"-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
@@ -336,6 +346,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
336
346
#define LIBNAME "haswell"
337
347
#define CORENAME "HASWELL"
338
348
#endif
349
+ #endif
339
350
340
351
#ifdef FORCE_SKYLAKEX
341
352
#ifdef NO_AVX512
@@ -551,6 +562,16 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
551
562
#define FORCE
552
563
#define FORCE_INTEL
553
564
#define ARCHITECTURE "X86"
565
+ #ifdef NO_AVX2
566
+ #define SUBARCHITECTURE "SANDYBRIDGE"
567
+ #define ARCHCONFIG "-DSANDYBRIDGE " \
568
+ "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \
569
+ "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \
570
+ "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
571
+ "-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_SSE3 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 -DHAVE_AVX"
572
+ #define LIBNAME "sandybridge"
573
+ #define CORENAME "SANDYBRIDGE"
574
+ #else
554
575
#define SUBARCHITECTURE "ZEN"
555
576
#define ARCHCONFIG "-DZEN " \
556
577
"-DL1_CODE_SIZE=32768 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=8 " \
@@ -565,6 +586,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
565
586
#define LIBNAME "zen"
566
587
#define CORENAME "ZEN"
567
588
#endif
589
+ #endif
568
590
569
591
570
592
#ifdef FORCE_SSE_GENERIC
@@ -983,6 +1005,20 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
983
1005
#else
984
1006
#endif
985
1007
1008
+ #ifdef FORCE_RISCV64_GENERIC
1009
+ #define FORCE
1010
+ #define ARCHITECTURE "RISCV64"
1011
+ #define SUBARCHITECTURE "RISCV64_GENERIC"
1012
+ #define SUBDIRNAME "riscv64"
1013
+ #define ARCHCONFIG "-DRISCV64_GENERIC " \
1014
+ "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=32 " \
1015
+ "-DL2_SIZE=1048576 -DL2_LINESIZE=32 " \
1016
+ "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=4 "
1017
+ #define LIBNAME "riscv64_generic"
1018
+ #define CORENAME "RISCV64_GENERIC"
1019
+ #else
1020
+ #endif
1021
+
986
1022
#ifdef FORCE_CORTEXA15
987
1023
#define FORCE
988
1024
#define ARCHITECTURE "ARM"
@@ -1268,6 +1304,21 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1268
1304
#define CORENAME "Z14"
1269
1305
#endif
1270
1306
1307
+ #ifdef FORCE_C910V
1308
+ #define FORCE
1309
+ #define ARCHITECTURE "RISCV64"
1310
+ #define SUBARCHITECTURE "C910V"
1311
+ #define SUBDIRNAME "riscv64"
1312
+ #define ARCHCONFIG "-DC910V " \
1313
+ "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=32 " \
1314
+ "-DL2_SIZE=1048576 -DL2_LINESIZE=32 " \
1315
+ "-DDTB_DEFAULT_ENTRIES=128 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=4 "
1316
+ #define LIBNAME "c910v"
1317
+ #define CORENAME "C910V"
1318
+ #else
1319
+ #endif
1320
+
1321
+
1271
1322
#ifndef FORCE
1272
1323
1273
1324
#ifdef USER_TARGET
@@ -1322,6 +1373,10 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1322
1373
#define OPENBLAS_SUPPORTED
1323
1374
#endif
1324
1375
1376
+ #ifdef __riscv
1377
+ #include "cpuid_riscv64.c"
1378
+ #endif
1379
+
1325
1380
#ifdef __arm__
1326
1381
#include "cpuid_arm.c"
1327
1382
#define OPENBLAS_SUPPORTED
0 commit comments