OpenBLAS/lapack/laswp
Mark Ryan 3b715e6162 Add autodetection for riscv64
Implement DYNAMIC_ARCH support for riscv64.  Three cpu types are
supported, riscv64_generic, riscv64_zvl256b, riscv64_zvl128b.
The two non-generic kernels require CPU support for RVV 1.0 to
function correctly.  Detecting that a riscv64 device supports
RVV 1.0 is a little complicated as there are some boards on the
market that advertise support for V via hwcap but only support
RVV 0.7.1, which is not binary compatible with RVV 1.0.  The
approach taken is to first try hwprobe.  If hwprobe is not
available, we fall back to hwcap + an additional check to distinguish
between RVV 1.0 and RVV 0.7.1.

Tested on a VM with VLEN=256, a CanMV K230 with VLEN=128 (with only
the big core enabled), a Lichee Pi with RVV 0.7.1 and a VF2 with no
vector.

A compiler with RVV 1.0 support must be used to build OpenBLAS for
riscv64 when DYNAMIC_ARCH=1.

Signed-off-by: Mark Ryan <markdryan@rivosinc.com>
2024-07-15 14:24:22 +00:00
..
alpha Import GotoBLAS2 1.13 BSD version codes. 2011-01-24 14:54:24 +00:00
arm added missing file arm/Makefile in lapack/laswp 2013-11-03 11:19:32 +01:00
arm64 added experimental support for ARMV8 2013-11-24 15:47:00 +01:00
csky Add CSKY support 2024-01-16 23:45:06 +08:00
generic Fix pivot offset calculation for negative incx 2022-01-17 00:11:18 +01:00
ia64 Import GotoBLAS2 1.13 BSD version codes. 2011-01-24 14:54:24 +00:00
loongarch64 LoongArch64: Fixed compilation issues when enable DYNAMIC_ARCH 2023-09-27 10:05:27 +08:00
mips MIPS P5600(32 bit) and I6400(64 bit) cores support added. 2016-04-22 14:03:18 +05:30
mips64 Import GotoBLAS2 1.13 BSD version codes. 2011-01-24 14:54:24 +00:00
power Import GotoBLAS2 1.13 BSD version codes. 2011-01-24 14:54:24 +00:00
riscv64 Add autodetection for riscv64 2024-07-15 14:24:22 +00:00
sparc Import GotoBLAS2 1.13 BSD version codes. 2011-01-24 14:54:24 +00:00
x86 Refs #130 Fixed laswp building bug with DYNAMIC_ARCH=1. 2012-08-09 20:36:29 +08:00
x86_64 Refs #130 Fixed laswp building bug with DYNAMIC_ARCH=1. 2012-08-09 20:36:29 +08:00
zarch add lapack laswp for zarch 2017-04-13 15:38:59 +02:00
Makefile Adapt to having only a subset of variable types supported 2020-10-11 14:44:13 +02:00