BLIS on RISC-V: RVV build + DGEMM performance A/B vs OpenBLAS#19
Merged
Conversation
Build BLIS (flame/blis rv64iv, RVV 1.0 hand-written asm gemm kernels) under EESSI GCC 14.3.0 with OpenMP threading, validate correctness, and A/B its DGEMM throughput against the patched RVV OpenBLAS on the SpaceMiT X60. Measured (Orange Pi RV2, VLEN=256, -O3 -march=rv64imafdcv_zvl256b): - 1 thread: BLIS beats OpenBLAS 1.21-1.29x at N>=2048 (RVV asm microkernel) - 8 threads: OpenBLAS scales better, BLIS 0.80-0.89x - CTRSM correctness: 2400 cases, 0 fails, worst_resid 2.55e-07 No FlexiBLAS on the board, so the A/B links the same backend-agnostic bench_dgemm.c against each library in turn (one variable = the BLAS impl). Documents the two EESSI GCC14 link gotchas (-L/-B $GCC14/lib for libgcc_s/libatomic/libgomp.spec) and the module-load PATH trap.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
BLIS/benchmark package: builds BLIS (flame/blis,rv64ivtarget — RVV 1.0 with the hand-written RVV assembly gemm microkernels inkernels/rviv/3/) under the EESSI GCC 14.3.0 toolchain with OpenMP threading, verifies numerical correctness, and A/Bs its DGEMM throughput against the patched RVV OpenBLAS on the SpaceMiT X60 (Orange Pi RV2, VLEN=256).Why link, not FlexiBLAS
FlexiBLAS is not installed on the RV2, so the A/B links the same backend-agnostic
bench_dgemm.cagainst each library in turn — one variable changed (the BLAS impl), source and flags held constant.Results (Orange Pi RV2 / X60,
-O3 -march=rv64imafdcv_zvl256b, EESSI GCC 14.3.0)DGEMM GFLOP/s:
C[0]=245.24identical for both backends at every size — no NaN.Correctness (
verify_ctrsm, BLISrv64iv): 2400 cases, 0 fails, worst_resid=2.55e-07.Contents
build-blis.sh— clone + configure (rv64iv --enable-cblas --enable-blas --enable-threading=openmp) + build under EESSI GCC 14.3.0.run-ab.sh— linkbench_dgemm.cagainst BLIS and OpenBLAS, sweep sizes × threads, print GFLOP/s + ratio.bench_dgemm.c/difftest.c/verify_ctrsm.c— backend-agnostic perf + correctness harnesses (shared withOpenBLAS/).README.md— build/run/A-B methodology, results, and the two EESSI GCC14 link gotchas (-L/-B $GCC14/libforlibgcc_s/libatomic/libgomp.spec; themodule loadPATH trap).Branched off the same clean base as #18 (no unrelated gromacs history).