Skip to content

Commit d9993e2

Browse files
committed
Refs #3825 Merge branch 'HellerZheng-develop' into risc-v
2 parents e284c04 + e5313f5 commit d9993e2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+16070
-3439
lines changed

Makefile.prebuild

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ ifeq ($(TARGET), C910V)
5555
TARGET_FLAGS = -march=rv64gcv0p7_zfh_xtheadc -mabi=lp64d
5656
endif
5757

58+
ifeq ($(TARGET), x280)
59+
TARGET_FLAGS = -march=rv64imafdcv_zba_zbb_zfh -mabi=lp64d
60+
endif
61+
62+
ifeq ($(TARGET), RISCV64_GENERIC)
63+
TARGET_FLAGS = -march=rv64imafdc -mabi=lp64d
64+
endif
65+
5866
all: getarch_2nd
5967
./getarch_2nd 0 >> $(TARGET_MAKE)
6068
./getarch_2nd 1 >> $(TARGET_CONF)

Makefile.riscv64

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@ ifeq ($(CORE), C910V)
22
CCOMMON_OPT += -march=rv64imafdcv0p7_zfh_xtheadc -mabi=lp64d -mtune=c920
33
FCOMMON_OPT += -march=rv64imafdcv0p7_zfh_xtheadc -mabi=lp64d -mtune=c920 -static
44
endif
5+
ifeq ($(CORE), x280)
6+
CCOMMON_OPT += -march=rv64imafdcv_zba_zbb_zfh -mabi=lp64d -mllvm --riscv-v-vector-bits-min=512 -ffast-math
7+
FCOMMON_OPT += -march=rv64imafdcv_zba_zbb_zfh -mabi=lp64d -static
8+
endif
9+
ifeq ($(CORE), RISCV64_GENERIC)
10+
CCOMMON_OPT += -march=rv64imafdc -mabi=lp64d
11+
FCOMMON_OPT += -march=rv64imafdc -mabi=lp64d -static
12+
endif

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ Please read `GotoBLAS_01Readme.txt` for older CPU models already supported by th
186186
```
187187
(also known to work on C906)
188188

189+
- **x280**: LLVM auto-vectorization using RISC-V Vector extension 1.0.
190+
```sh
191+
make HOSTCC=gcc TARGET=x280 NUM_THREADS=8 CC=riscv64-unknown-linux-gnu-clang FC=riscv64-unknown-linux-gnu-gfortran
192+
```
193+
189194
### Support for multiple targets in a single library
190195

191196
OpenBLAS can be built for multiple targets with runtime detection of the target cpu by specifiying `DYNAMIC_ARCH=1` in Makefile.rule, on the gmake command line or as `-DDYNAMIC_ARCH=TRUE` in cmake.

TargetList.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ Z14
120120
10.RISC-V 64:
121121
RISCV64_GENERIC (e.g. PolarFire Soc/SiFive U54)
122122
C910V
123+
x280
123124

124125
11.LOONGARCH64:
125126
LOONGSONGENERIC

0 commit comments

Comments
 (0)