You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -221,6 +221,26 @@ e.g.:
221
221
HOSTCC=gcc HOSTFC=gfortran -j
222
222
```
223
223
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
+
224
244
### Support for multiple targets in a single library
225
245
226
246
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.
238
258
239
259
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.
240
260
261
+
On **LoongArch64**, it comprises LA264 and LA464 as well as generic LoongArch64 support.
262
+
241
263
The `TARGET` option can be used in conjunction with `DYNAMIC_ARCH=1` to specify which cpu model should be assumed for all the
242
264
common code in the library, usually you will want to set this to the oldest model you expect to encounter.
243
265
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