Skip to content

Commit 6a60eb1

Browse files
authored
Merge pull request #4924 from XiWeiGu/la64_readme
LoongArch64: Update README.md
2 parents 8483a71 + 3ab8b14 commit 6a60eb1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,26 @@ e.g.:
221221
HOSTCC=gcc HOSTFC=gfortran -j
222222
```
223223

224+
#### LOONGARCH64
225+
226+
- **LA64_GENERIC**: Optimized Level-3, Level-2 and Level-1 BLAS with scalar instruction
227+
```sh
228+
make HOSTCC=gcc TARGET=LA64_GENERIC CC=loongarch64-unknown-linux-gnu-gcc FC=loongarch64-unknown-linux-gnu-gfortran USE_SIMPLE_THREADED_LEVEL3=1
229+
```
230+
The old-style TARGET=LOONGSONGENERIC is still supported
231+
232+
- **LA264**: Optimized Level-3, Level-2 and Level-1 BLAS with LSX instruction
233+
```sh
234+
make HOSTCC=gcc TARGET=LA264 CC=loongarch64-unknown-linux-gnu-gcc FC=loongarch64-unknown-linux-gnu-gfortran USE_SIMPLE_THREADED_LEVEL3=1
235+
```
236+
The old-style TARGET=LOONGSON2K1000 is still supported
237+
238+
- **LA464**: Optimized Level-3, Level-2 and Level-1 BLAS with LASX instruction
239+
```sh
240+
make HOSTCC=gcc TARGET=LA464 CC=loongarch64-unknown-linux-gnu-gcc FC=loongarch64-unknown-linux-gnu-gfortran USE_SIMPLE_THREADED_LEVEL3=1
241+
```
242+
The old-style TARGET=LOONGSON3R5 is still supported
243+
224244
### Support for multiple targets in a single library
225245

226246
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.
@@ -238,6 +258,8 @@ on **ZARCH** it comprises Z13 and Z14 as well as generic zarch support.
238258

239259
On **riscv64**, DYNAMIC_ARCH enables support for riscv64_zvl128b and riscv64_zvl256b in addition to generic riscv64 support. A compiler that supports RVV 1.0 is required to build OpenBLAS for riscv64 when DYNAMIC_ARCH is enabled.
240260

261+
On **LoongArch64**, it comprises LA264 and LA464 as well as generic LoongArch64 support.
262+
241263
The `TARGET` option can be used in conjunction with `DYNAMIC_ARCH=1` to specify which cpu model should be assumed for all the
242264
common code in the library, usually you will want to set this to the oldest model you expect to encounter.
243265
Please note that it is not possible to combine support for different architectures, so no combined 32 and 64 bit or x86_64 and arm64 in the same library.

0 commit comments

Comments
 (0)