Skip to content

Commit a69adbb

Browse files
author
Chip-Kerchner
committed
Merge branch 'develop' of https://github.com/openmathlib/openblas into develop
2 parents 32ed6e3 + 99ef76f commit a69adbb

30 files changed

+20280
-169
lines changed

.github/workflows/riscv64_vector.yml

Lines changed: 253 additions & 0 deletions
Large diffs are not rendered by default.

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ In chronological order:
219219

220220
* Mark Seminatore <https://github.com/mseminatore>
221221
* [2023-11-09] Improve Windows threading performance scaling
222+
* [2024-02-09] Introduce MT_TRACE facility and improve code consistency
222223

223224
* Dirreke <https://github.com/mseminatore>
224225
* [2024-01-16] Add basic support for the CSKY architecture

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,16 @@ Please read `GotoBLAS_01Readme.txt` for older CPU models already supported by th
203203
make HOSTCC=gcc TARGET=x280 NUM_THREADS=8 CC=riscv64-unknown-linux-gnu-clang FC=riscv64-unknown-linux-gnu-gfortran
204204
```
205205

206+
- **ZVL???B**: Level-3 BLAS and Level-1,2 including vectorised kernels targeting generic RISCV cores with vector support with registers of at least the corresponding width; ZVL128B and ZVL256B are available.
207+
e.g.:
208+
```sh
209+
make TARGET=RISCV64_ZVL256B CFLAGS="-DTARGET=RISCV64_ZVL256B" \
210+
BINARY=64 ARCH=riscv64 CC='clang -target riscv64-unknown-linux-gnu' \
211+
AR=riscv64-unknown-linux-gnu-ar AS=riscv64-unknown-linux-gnu-gcc \
212+
LD=riscv64-unknown-linux-gnu-gcc FC=riscv64-unknown-linux-gnu-gfortran \
213+
HOSTCC=gcc HOSTFC=gfortran -j
214+
```
215+
206216
### Support for multiple targets in a single library
207217

208218
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.

common_riscv64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static inline int blas_quickdivide(blasint x, blasint y){
9191
#define BUFFER_SIZE ( 32 << 20)
9292
#define SEEK_ADDRESS
9393

94-
#if defined(C910V) || (defined(RISCV64_ZVL256B) && (defined(__clang__) || defined(RVV_COMPATIBLE_GCC))) || defined(RISCV64_ZVL128B) || defined(x280)
94+
#if defined(C910V) || defined(RISCV64_ZVL256B) || defined(RISCV64_ZVL128B) || defined(x280)
9595
# include <riscv_vector.h>
9696
#endif
9797

0 commit comments

Comments
 (0)